Issue #5010 has been updated by Markus Roberts. Subject changed from Trailing whitespace is not allowed in namespaceauth.conf file to Trailing whitespace is not allowed in auth.conf files
Reproduction details & stack trace added to description. ---------------------------------------- Bug #5010: Trailing whitespace is not allowed in auth.conf files https://projects.puppetlabs.com/issues/5010 Author: Ian Burrell Status: Accepted Priority: Normal Assignee: Category: Target version: Affected Puppet version: 0.25.5 Keywords: Branch: Trailing whitespace is not handled well in auth.conf and namespaceauth.conf. Depending on the code path and the location of the whitespace it results in a parse error, a misleading "incorrect authenticated value" error, etc. It would be nice if the config files ignored trailing whitespace. On 2.6.x connecting with this auth.conf: <pre> path / auth no␢ allow * </pre> Where the "␢" indicates a literal (trailing) blank, the following error occurs on the master: <pre> ./lib/puppet/network/rights.rb:242:in `restrict_authenticated' ./lib/puppet/network/authconfig.rb:163:in `send' ./lib/puppet/network/authconfig.rb:163:in `modify_right' ./lib/puppet/network/authconfig.rb:160:in `each' ./lib/puppet/network/authconfig.rb:160:in `modify_right' ./lib/puppet/network/authconfig.rb:152:in `parse_right_directive' ./lib/puppet/network/authconfig.rb:106:in `parse' ./lib/puppet/network/authconfig.rb:92:in `each' ./lib/puppet/network/authconfig.rb:92:in `parse' ./lib/puppet/network/authconfig.rb:89:in `open' ./lib/puppet/network/authconfig.rb:89:in `parse' ./lib/puppet/network/rest_authconfig.rb:56:in `parse' ./lib/puppet/network/authconfig.rb:78:in `read' ./lib/puppet/network/authconfig.rb:52:in `initialize' ./lib/puppet/network/rest_authconfig.rb:48:in `initialize' ./lib/puppet/network/authconfig.rb:9:in `new' ./lib/puppet/network/authconfig.rb:9:in `main' ./lib/puppet/network/rest_authconfig.rb:25:in `main' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' ./lib/puppet/network/rest_authconfig.rb:23:in `main' ./lib/puppet/network/rest_authorization.rb:12:in `authconfig' ./lib/puppet/network/rest_authorization.rb:19:in `check_authorization' ./lib/puppet/network/http/handler.rb:66:in `process' ./lib/puppet/network/http/webrick/rest.rb:24:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' ./lib/puppet/network/http/webrick.rb:45 /usr/lib/ruby/1.8/webrick/server.rb:173:in `call' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' ./lib/puppet/network/http/webrick.rb:42:in `listen' ./lib/puppet/network/http/webrick.rb:41:in `initialize' ./lib/puppet/network/http/webrick.rb:41:in `new' ./lib/puppet/network/http/webrick.rb:41:in `listen' ./lib/puppet/network/http/webrick.rb:38:in `synchronize' ./lib/puppet/network/http/webrick.rb:38:in `listen' ./lib/puppet/network/server.rb:127:in `listen' ./lib/puppet/network/server.rb:142:in `start' ./lib/puppet/daemon.rb:124:in `start' ./lib/puppet/application/master.rb:114:in `main' ./lib/puppet/application/master.rb:46:in `run_command' ./lib/puppet/application.rb:304:in `run' ./lib/puppet/application.rb:410:in `exit_on_fail' ./lib/puppet/application.rb:304:in `run' sbin/puppetmasterd:4 err: '/' incorrect authenticated value: no </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
