-
Notifications
You must be signed in to change notification settings - Fork 18
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
Use token based approach for system-agent #769
Use token based approach for system-agent #769
Conversation
6b5657a
to
c9eeb3c
Compare
To test issuing token we need a change which is not yet released in CR: kubernetes-sigs/controller-runtime#2969 Getting “ fakeSubResourceWriter does not support create for token” |
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.
lgtm, no comments are blocking merging this PR
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.
LGTM but it needs a rebase.
Reduce the footprint of the system-agent RBAC Per each cluster there will be created: - 1 system-agent ServiceAccount Per each plan there will be temporarily created: - 1 Role with access to all plan secrets for each machine - 1 Rolebinging for the role and the cluster system-agent ServiceAccount On plan completion/failure the role and rolebinding will be rewoked Per each machine there will be created: - 1 Secret for the system-agent authentication, with unique JWT bound to the secret existence in the API server, and a namespace/name pointer to the plan secret - 1 Secret for the plan execution Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
c405e0e
977573c
to
c405e0e
Compare
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
exp/etcdrestore/controllers/etcdsnapshotrestore_controller_test.go
Outdated
Show resolved
Hide resolved
c405e0e
to
32dc863
Compare
I’ll try to address the rest of the comments in the followup PRs. |
What this PR does / why we need it:
Reduce the footprint of the system-agent RBAC.
Per each cluster there will be created:
Per each plan there will be temporarily created:
On plan completion/failure the role and rolebinding will be revoked
Per each machine there will be created:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #756
Special notes for your reviewer:
Checklist: