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

Invalidate the buildkit cache when the content of a build secret changes #3641

Open
pchico83 opened this issue May 22, 2023 · 2 comments
Open

Comments

@pchico83
Copy link
Contributor

pchico83 commented May 22, 2023

Is your feature request related to a problem? Please describe.
By default, buildkit doesn't invalidate the content of the build cache when using build secrets, and the content of the secret changes.
This is creating friction in our users, because OKTETO_NAMESPACE is commonly part of the secret (and then, we are reusing builds between namespaces). Or if an admin updates a build secret value, it's hard to understand why the build is caching the previous build.

Describe the solution you'd like
In validate the build cache if the content of the secret changes.
One option to do this is to use as the id of the mount syntax a hash generated from the content of the secret.

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days

@github-actions github-actions bot added the stale label Jul 22, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2023
@jLopezbarb jLopezbarb reopened this Jul 31, 2023
@github-actions github-actions bot removed the stale label Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2023

This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days

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

No branches or pull requests

2 participants