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

How can I disable mutation for managed sidecars #1220

Open
BitRacer opened this issue Jan 26, 2024 · 2 comments
Open

How can I disable mutation for managed sidecars #1220

BitRacer opened this issue Jan 26, 2024 · 2 comments
Labels
question Further information is requested

Comments

@BitRacer
Copy link

I'm using a managed version of service mesh in GKE, Anthos Service Mesh. The managed service mesh injects envoy sidecars and references the containers by tag, not with a sha. The result of mutating the sha on the sidecar is that ASM cannot determine what version is installed and chaos ensues.

Is there a way to disable mutation for a container, or set of containers. for example gcr.io/releases/asm*

I only want to skip this mutation for theses sidecars. Not for the main container, which is signed and delivered with a sha

I can't find any examples of how to set this in the cluster policy or mutating webhook config.

@BitRacer BitRacer added the question Further information is requested label Jan 26, 2024
@hectorj2f
Copy link
Collaborator

@BitRacer I wouldn't recommend to disable the mutation for a container. In addition to that, I won't recommend it as a security best practice consists on relying on digests instead of tags.

@hectorj2f
Copy link
Collaborator

It is not possible today to disable it with the existing source code. Feel free to make any changes to that logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants