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

Feature Request: skip digester resolution for images from certain repo base paths #22

Closed
iamasmith opened this issue Nov 20, 2023 · 2 comments

Comments

@iamasmith
Copy link
Contributor

We have been experiencing an issue, supposedly resolved by a recent release of Anthos Service Mesh mdp-controller, where mdp-controller would restart pods which it believed to be out of date against the current version of the mesh deployed.

Having continued to experience this issue we checked further into this.

It appears that mdp-controller is not aware of the @sha256 form of the image and instead inspects running pods for tag version and if this does not match then it deems the pod out of date, patches the deployment and restarts the pod... digester then patches this to a @sha256 and the process starts again with the already updated pod being restarted once more because mdp-controller does not yet support the resolved @sha256 form of the image.

The actual images concerned fall within the default Binary Authorisation whitelist paths being under gcr.io/gke/releaase/asm/proxyv2 so skipping digester functionality for these paths should allow the container to start using those paths for the sidecar whilst allowing it to function for our main container images.

I'll monitor this thread and perhaps raise a pull request for this in a couple of days if nobody can get to it. In the meantime I believe that the ASM product team are now aware of the issue and a fix may be in the works but that may take longer to arrive. In any case this seems like it might be a sensible feature for images within the Binary Auth whitelist section.

The proposal would be to be able to specify a user provided list of prefix paths that filterImage in resolve.go could use to selectively skip processing.

@iamasmith iamasmith changed the title Feature Requesr: skip digester resolution for images from certain repo base paths Feature Requetr: skip digester resolution for images from certain repo base paths Nov 20, 2023
@iamasmith iamasmith changed the title Feature Requetr: skip digester resolution for images from certain repo base paths Feature Request: skip digester resolution for images from certain repo base paths Nov 20, 2023
@iamasmith
Copy link
Contributor Author

iamasmith commented Nov 22, 2023

Pull request associated #23

@halvards
Copy link
Member

Thanks for bringing this up @iamasmith, it sounds like a good feature to add to digester. Looking at the PR now.

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

No branches or pull requests

2 participants