Repository navigation
feat(gitops-values-validation): accept a full self-service path in secretsManagerPath (PTFM-26625) - #89
Merged
nterlemes-kp merged 1 commit intoOct 27, 2026
Conversation
…cretsManagerPath (PTFM-26625) Charts before 0.1.318 pass secretsManagerPath to the ExternalSecret as is, so selfservice/k8s/<env>/<application>/<service>/<secret> works at runtime, but their published schemas only allow k8s/ paths. The legacy-secrets migration keeps those services on their chart and points them at self-service this way, without a restart. The hook now widens each such pattern after download; a malformed self-service path is still refused.
nterlemes-kp
deleted the
fix/ptfm-26625-accept-selfservice-secret-paths
branch
October 27, 2026 13:07
|
@nterlemes-kp @leo-dur is it fine that this repo is public? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PTFM-26625
The legacy-secrets migration points services at the secrets kp writes. A service on platform-managed-chart 0.1.318 or later names its secret by leaf (
secret: env). An older chart has no short form, so the migration names it in full and keeps the chart as it is, so the service doesn't restart:Those charts copy
secretsManagerPathinto the ExternalSecret as is, so this renders and syncs (checked on 0.1.213: the ExternalSecret readsselfservice/k8s/dev/…). But every published schema pins the field to^k8s/(app/…/)?(dev|prod|…)/(common|main|…)/, sogitops-values-validationrefuses it: about 270 errors across 8 of this week's migration PRs.What changed
After download, every
secretsManagerPathpattern that starts with^k8s/also acceptsselfservice/k8s/<env>/<application>/<service or _shared>/<secret>, the layout kp writes. The disk cache keeps the schema as published. OthersecretsManagerPathpatterns, like the Okta one that already expectsselfservice/, are left alone.Tests:
Run against the 9 failing migration branches (api-platform, cargo, cloud-platform, compliance, defense, maritime-models, maritime-web, mobile, notifications): no errors left.
After merge
The repos pick this up with a
revbump ofkp-pre-commit-hooksin their.pre-commit-config.yaml. The migration PRs carry that bump.