How can I set up fine-grained permissions for editing deployment images?

May 5, 2025 5 answers
Asked by TechieTurtle42
I'm looking for a way to allow a user to edit just the image of a specific deployment without giving them access to modify anything else. I've heard that RBAC isn't capable of handling this kind of granularity. I'm open to writing some Go code if that helps! Any suggestions?

Answers

CynicalSparrow07
Using Validating Admission Policies could be your solution, too. It's more integrated within Kubernetes and can help restrict actions more precisely.
Reply to this answer
CuriousCat12
Iโ€™m curious why you allow direct edits to images on clusters. That seems risky to me!
Reply to this answer
PragmaticPenguin56
This sounds more like a management issue than a tech one. If you can't trust a user with edits, should they even have access? But if you really need fine control, consider implementing restrictions at the CI/CD level.
Reply to this answer
CleverCoyote33
You might also think about using admission controllers like Kyverno for this task. They can help tailor access to what users can do.
Reply to this answer
AdeptAxolotl88
You might want to check out Kyverno and Open Policy Agent. They can help with creating policies for such fine-tuned access.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions