-
Notifications
You must be signed in to change notification settings - Fork 99
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 per-project authorization for CI builds #737
Conversation
This config field expects a string of XML that is valid when nested within a `<hudson.security.AuthorizationMatrixProperty>`.
Please add the new config option to the docs. |
Added the documentation. I could see the logic in moving the block for this option into the CI build files section but I started with it in the general options since it's defined in the base build file. |
@@ -76,6 +76,13 @@ A set of options which can be used in any build file. | |||
Note that yaml will turn bare words like ``yes`` into boolean values so it | |||
is recommended to quote values to avoid interpretation. | |||
|
|||
* ``project_authorization_xml``: an XML blob which will be nested within a | |||
``<hudson.security.AuthorizationMatrixProperty>`` in job builds. | |||
This property is definied for all build files but as of `#737`_ is only |
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.
This property is definied for all build files but as of `#737`_ is only | |
This property is defined for all build files but as of `#737`_ is only |
Adds the ability to specify per-job (per-project in Jenkins parlance) XML configuration for access control.
I've added config field
project_authorization_xml
to the base BuildFile class but only wired it through for CI jobs where we currently want it.In order for this configuration to be honored Jenkins Authorization must be configured to use the Project-based Matrix Authorization Strategy whereas the current buildfarm deployment default is Matrix-based security without per-project settings.