-
Notifications
You must be signed in to change notification settings - Fork 50
Description
We use apply-time-mutation to copy the oauth secret from an IAPIdentityAwareProxyClient into a Secret so that it can be referenced by a GCPBackendPolicy. As that secret value is plain text, the apply-time-mutation target writes the value to .stringData. We have a client.lifecycle.config.k8s.io/mutation=ignore annotation to prevent Config Sync from trying to set the Secret back to the pre-mutated state from git.
That has worked well for a while, but upon upgrading to Config Sync 1.21 sync fails with KNV2009: failed to apply Secret, grafana/oauth-client-secret: failed to mutate "grafana_oauth-client-secret__Secret" with "ApplyTimeMutator": failed to read field ($.stringData.clientSecret)
This is only affecting Secrets where we are writing to the write-only .stringData. Other uses of mutate then ignore sill work, e.g. copying the oauth client id from the IAPIdentityAwareProxyClient directly to the GCPBackendPolicy.