Skip to content
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

lock on a separate/safe object rather than DaemonSet #25

Open
anguslees opened this issue Aug 4, 2018 · 9 comments
Open

lock on a separate/safe object rather than DaemonSet #25

anguslees opened this issue Aug 4, 2018 · 9 comments
Labels
enhancement keep This won't be closed by the stale bot.

Comments

@anguslees
Copy link

Current locking approach requires the kured job to have the RBAC privilege to be able to update its own DaemonSet. This means a compromised kured job could redefine itself to (eg) elevate host access further(*).

Better (from an RBAC pov) would be to use a "harmless" resource type to store the lock annotation. A ConfigMap (empty/dedicated for this purpose) would be ideal.

(*) I acknowledge that kured also needs other scary privileges (patch nodes) in order to conduct a drain/uncordon, and these won't be improved by this suggestion. Small steps.

@awh
Copy link
Contributor

awh commented Oct 26, 2018

Hi @anguslees - good thought, thanks. For other reasons I've been mulling introducing a kured CRD for a while, and that would make a good place to put the lock.

The node resource patching route is interesting - it's not immediately obvious to me how you could exploit that, any thoughts (other than just a plan denial of service attack I mean)?

@github-actions
Copy link

This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).

@kfox1111
Copy link

still relevant.

@github-actions
Copy link

This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).

@kfox1111
Copy link

kfox1111 commented Feb 1, 2021

still relevant.

@github-actions
Copy link

github-actions bot commented Apr 4, 2021

This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).

@kfox1111
Copy link

kfox1111 commented Apr 5, 2021

still relevant.

@evrardjp
Copy link
Collaborator

evrardjp commented Apr 6, 2021

Agreed.

@github-actions
Copy link

github-actions bot commented Jun 6, 2021

This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement keep This won't be closed by the stale bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants