Add support for allowing anonymous ViewStatus permission#29
Conversation
|
plugins » github-oauth-plugin #59 SUCCESS |
|
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
|
Is this intended to be the continuation of #8? |
|
(And also see jenkinsci/embeddable-build-status-plugin#4.) |
|
@jglick yes it is. With this PR applied you can embed status badges in Github README's etc without granting any other access to anonymous users. Currently with this plugin you can only give the READ permission to anonymous users but that opens up a lot of information to see for anonymous users. |
|
Hi folks. Will this be merged into the master any time soon? Thanks! |
|
Would like to know this as well. @jyjohnson if you really needs this functionality but can live without using the |
|
+1 |
1 similar comment
|
+1 |
|
FWIW, I've dropped this and went to Project Matrix Security instead and have been much happier overall. |
|
@wavded agreed that using the matrix security is much more powerful. Perhaps this PR can be replaced by a doc patch that documents that workflow. |
|
I can confirm the "matrix security" works well! My <authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
<permission>hudson.model.Item.ViewStatus:anonymous</permission>
<permission>hudson.model.Item.Read:[GITHUB-ORG-FOR-READ-ACCESS]</permission>
<permission>hudson.model.Hudson.Read:[GITHUB-ORG-FOR-READ-ACCESS]</permission>
<permission>hudson.model.Hudson.Administer:[GITHUB-USER-FOR-ADMIN-ACCESS]</permission>
</authorizationStrategy> |
|
When merging this into Here's the error I see. I ran I don't feel comfortable merging this unless I can get it to build and pass |
|
@pascalw can you please update this pull request? Rebase it on the current master as well as ensure no unit tests are failing. |
|
@samrocketman I'll try to have a look at it this week. |
716ad3f to
0913867
Compare
This is especially useful to work with plugins that require these permissions, for example for the [Embeddable Build Status Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin) that requires this permission if you want badges to be reachable for anonymous users.
|
@samrocketman I rebased against master, tests are green. |
|
I successfully tested it. |
|
I have created a new minor release 0.21.1 which contains only this fix. It should be available in the Jenkins update center typically within 8-9 hours. |
This PR adds support for allowing anonymous ViewStatus permissions.
This is especially useful to work with plugins that require these permissions, for example for the Embeddable Build Status Plugin that requires this permission if you want badges to be reachable for anonymous users.
Fixes JENKINS-24010.