#withSecretVariable delta does not bust cache

1 messages · Page 1 of 1 (latest)

leaden lintel
#

I am running a workflow where I obtain an oauth token from one container and then use it in another in intermediate dagger stages. I am setting the token from one container in the other container as setSecretVariable. However, a change in the secret does not seem to bust the cache of the second container as I expected. Shouldn't this work the same way as withEnvVariable?

celest coral
#

See if this helps: https://github.com/moby/buildkit/issues/2547

Changing a value of a secret does not invalidate the cache. Doing so would be an information leak. If you need this behavior you need to add another "non-secret" build-arg that you change as well to trigger cache invalidation.