The desire is to have allow-anonymous be the default behaviour. Current issue is the templates have AMQ_ALLOW_ANONYMOUS=true set. If that is removed (instead of set to false), we still set allow-anonymous by default. The only time allow-anonymous is not set is if AMQ_ALLOW_ANONYMOUS=false.
As pointed out by Marek Schmidt, this will confuse users, when they remove the line AMQ_ALLOW_ANONYMOUS=true, and no behaviour changes.
In artemis, the opposite of allow-anonymous is require-login. Have the templates and launch script use AMQ_REQUIRE_LOGIN instead, will solve this. By default require-login will be set to false, and the templates have it set to false. In order to require-login, they will need to set AMQ_REQUIRE_LOGIN=true.