-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Add format-specific annotations to override secret file names #572
Conversation
The path traversal check will be replaced in a followup PR by a better suited solution which leverages capabilities-based filesystem operations. See #572 (comment). |
Path::canonicalize will return an error if the path does not exist. The path we are checking obviously doesn't exist yet, because we want to prevent path traversals and the file at that path will only exist after we are done with the check. So using canonicalize does not work in this use-case.
LGTM, assuming tests pass on your end. |
Actually - just noticed that you forgot to add it to the changelog. |
You are right, I will add it right away. |
Can you please link docs and add a release note snippet? |
Link to docs: https://docs.stackable.tech/home/nightly/secret-operator/volume/ Release NotesAdd support for format-specific annotations to override secret file names.
Names can be customized using secret volume annotations which are listed xref:secret-operator:volume.adoc[in our documentation].
See https://github.com/stackabletech/secret-operator/pull/572[secret-operator#572]. |
This PR adds support to customize the secret file names using
secrets.stackable.tech
annotations on the volume. The following attributes were added:secrets.stackable.tech/format.tls-pkcs12.keystore-name
secrets.stackable.tech/format.tls-pkcs12.truststore-name
secrets.stackable.tech/format.tls-pem.cert-name
secrets.stackable.tech/format.tls-pem.key-name
secrets.stackable.tech/format.tls-pem.ca-name
This came up in demo testing during the 25.3.0 SPD release, see stackabletech/demos#157 (comment).
This PR adds a new test dimension which is used in the
tls
tests. All adjusted tests pass: