Skip to content
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

Add class to manage security-role in web.xml #86

Merged

Conversation

wcooley
Copy link
Contributor

@wcooley wcooley commented May 28, 2015

To change the security-role currently one must edit web.xml directly, and reapply the change upon upgrade, as that file is version-specific and must be kept in sync with the application. I have opened an issue with rundeck to make that configurable via something in /etc/rundeck (rundeck/rundeck#1261), but unless or until that is resolved, I need to be able to manage it.

This creates a rundeck::config::global::web class with this as the sole parameter which is also added and passed through rundeck and rundeck::config. I chose to use an augeas resource because the file is XML and needs to be replaced outside of Puppet, so a template would not work. Many people have an aversion to augeas because it can get complicated; I find that for certain classes of problems it can be fairly easy. The only hitch is that testing augeas commands is non-trivial (requires rspec-puppet-augeas which was broken for a while due to rspec-puppet).

I would also like to be able to set the session-timeout in web.xml so if this approach is acceptable I will add that to the ...::web class.

@liamjbennett liamjbennett added the enhancement New feature or request label Jun 5, 2015
@jyaworski
Copy link
Member

It took me a while to figure out why I couldn't log into Rundeck at first, and got burned by this. Is there a chance of this getting merged?

@@ -106,6 +106,9 @@ A hash of the notification email configuraton.
#####`security_config`
A hash of the rundeck security configuration.

#####`security_role`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i read this as security_hole

@igalic
Copy link
Contributor

igalic commented Oct 14, 2015

@wcooley could you please rebase this against the current master?


@jyaworski if @wcooley has no time, or doesn't respond, maybe you could take over?

@wcooley wcooley force-pushed the wcooley/feature-security-role-webxml branch from 13c3afb to 07616f8 Compare October 14, 2015 17:24
@wcooley
Copy link
Contributor Author

wcooley commented Oct 14, 2015

There you go -- it's rebased onto master now.

igalic added a commit that referenced this pull request Oct 14, 2015
Add class to manage security-role in web.xml
@igalic igalic merged commit b410913 into voxpupuli:master Oct 14, 2015
@igalic
Copy link
Contributor

igalic commented Oct 14, 2015

thank you so much @wcooley!

@wcooley wcooley deleted the wcooley/feature-security-role-webxml branch October 16, 2015 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants