-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove auth-constraint from web.xml if preauthenticated mode enabled #190
Conversation
d81fe75
to
4f9842d
Compare
Can you add something to reinstate it if one chooses to not use preauthenticated mode? |
4f9842d
to
13607c2
Compare
@jyaworski let me know what you think |
lens => 'Xml.lns', | ||
incl => $rundeck::params::web_xml, | ||
changes => [ "set web-app/security-constraint[last()+1]/auth-constraint/role-name/#text '*'" ], | ||
onlyif => 'match web-app/security-constraint/auth-constraint/role-name size == 0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to do this without an onlyif?
https://projects.puppetlabs.com/projects/1/wiki/puppet_augeas#A-Better-Way
If not, it's not a blocker.
Tests fail. |
13607c2
to
880809b
Compare
Tests are broken. Even master fails.
Same for #192 |
I'm going to revert it. It's a lot more sinister to fix than I originally thought.
|
880809b
to
b710ab3
Compare
Remove auth-constraint from web.xml if preauthenticated mode enabled
When I opened the PR for configuring preauthenticated mode (#175), I forgot this:
From the rundeck docs:
The file WEB-INF/web.xml inside the war contents must be modified to remove the <auth-constraint> element. This disables the behavior which causes the Container to trigger its authentication mechanism when a user browses to a Rundeck page requiring authorizaton.
This patch should take of it.