-
Notifications
You must be signed in to change notification settings - Fork 172
Give HNC permission to all verbs on all resources #1311
Comments
Thanks @0xVox ! We've tried to make the default HNC permissions equivalent to the builtin |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
This one seems doable in the next release.
…On Tue, Mar 16, 2021 at 9:19 AM Yiqi Gao ***@***.***> wrote:
/remove-lifecycle stale
@adrianludwin <https://github.com/adrianludwin> move this to backlog?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1311 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE43PZDRE44WRHNSDDCYO5DTD5LG7ANCNFSM4UTJ6JAQ>
.
|
@0xVox - it turns out we already do document the permissions (here), but I think it makes sense to just grant HNC permission to all verbs. There's no particular reason to exclude anything. I verified that once I did this, HNC was able to propagate |
/assign |
Rather than continuing to play whack-a-mole with the list of verbs HNC can propagate, this change allows it to perform all verbs on all resources. This is equivalent to `cluster-admin` so I've updated the docs accordingly (see also issue kubernetes-retired#1311). I also noticed that the docs referred to K8s v1.15, which is no longer supported, so I updated them to v1.16. Finally, this change adds the `HNC_FOCUS` makefile var, allowing you to say something like: ``` HNC_FOCUS=772 make test ``` which only runs the e2e tests with "772" in the title. Tested: All quickstart e2e tests pass. Updated the test for issue kubernetes-retired#772 and verified that it failed without the other changes in this commit, and passed with them.
user "system:serviceaccount:hnc-system:default" (groups=["system:serviceaccounts" "system:serviceaccounts:hnc-system" "system:authenticated"]) is attempting to grant RBAC permissions not currently held
When a sub-namespace is created under a parent namespace containing RoleBindings that are attached to a Role that have permissions such as:
The hnc-controller will not have enough permissions to propogate the rolebinding. Note the key problem here is that the hnc-manager-role does not have
verbs: '*'
permissions itself.I don't suspect adding this permission is desirable, and this error has given me some roles to review, but I do think it would be desirable to note somewhere in the documentation or installation guide that this might be among the first issues a new user might come across if they've got some quite permissive roles hanging around, created by themselves or through third-party controller installs.
Thank you for your work on this project!
The text was updated successfully, but these errors were encountered: