lemon-plastic-54522
07/22/2026, 12:46 PMflyte delete secret <SECRET_NAME> the secret is not actually deleted and is cached for 24 hours.
Even if you run flyte create secret <SECRET_NAME> and set a new value, the old value of <SECRET_NAME> will not be overridden. Is this expected behavior?lemon-plastic-54522
07/22/2026, 12:48 PMThe secret value is cached with a 24h TTL, and delete does not evict it. This is the real reason the pod execution is still working after your delete:
• The pod mutator/webhook resolves secrets via`EmbeddedSecretManagerInjector.lookUpSecret`(). It checks an in-memory cache first, only hitting the fetchers on a miss.embedded_secret_manager.go:114
• That cache comes from`flytestdlib/cache`, whose defaultis 24 hours (DefaultExpiration).config.go:30-31
•goes to a different process — the secret service (flyte delete secret), which only doessecret/service/secret_service.goDeleteSecreton the backing k8s Secret. There is no cache-invalidation signal to the webhook. So any run within 24h of a prior successful fetch keeps getting the cached credential.k8sClient.Delete(...)
glamorous-carpet-83516
07/22/2026, 5:42 PM