Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Allow "Build Now" when disable_admin_ui is enabled #87

Open
tcwitte opened this issue Jan 5, 2012 · 3 comments
Open

Allow "Build Now" when disable_admin_ui is enabled #87

tcwitte opened this issue Jan 5, 2012 · 3 comments

Comments

@tcwitte
Copy link
Contributor

tcwitte commented Jan 5, 2012

On my build server I've disabled "dangerous" actions with disable_admin_ui. However, this also disables the "Build Now" button. I want to allow that because it's useful and not dangerous.

What do you think about this? I can contribute code if I know what would be accepted. Locally I've changed the code to always allow "Build Now" even when disable_admin_ui is true.

@bguthrie
Copy link
Contributor

bguthrie commented Jan 6, 2012

I debated whether or not to split the "build now" permission out and ultimately decided against it because it seemed like it was dangerous "enough" - if you're hosting a CC.rb instance publicly, you don't necessarily want people to be able to spam that button, and CC.rb doesn't provide any kind of authentication or access control out of the box.

Any other strong opinions?

@tcwitte
Copy link
Contributor Author

tcwitte commented Jan 6, 2012

It's a way to interact with CC.rb, true. In my reasoning I made a distinction between actions that can make the build server unreliable (removing and altering projects, stopping builders) and actions that don't (Build now, starting builders). The reason I like to provide the users of the build server access to "Build Now" is that sometimes random build failures occur (some tests involve Selenium).

Also, only authorized people can access the build server in my case. It's accessed by VPN.

An alternative could be to have two configuration options: one for making the CC.rb interface read-only and one for disabling the administrative functions (i.e. altering projects and starting/stopping builders)?

@tcwitte
Copy link
Contributor Author

tcwitte commented Feb 8, 2012

What's your idea about having two configuration options? (one to make the interface completely read-only and one to disable the administrative functions excluding build now) If you don't like it that's ok. It's just that I'd like to know before putting time in a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants