Open luk-ada opened 1 year ago
Thanks for this report @mulat666 . The secret names are limited to the same set of characters as environment variable names (alphanumeric and _
s). I don't see why we couldn't expand this set for secrets though.
Perhaps, for internal consistency, the name should be treated as a VRL path expression - which would require -
to be quoted.
However with the given example...
source: |-
.secret = "SECRET[az_secret.ling-dev-elk-0]"
Escaping quotes may be awkward?
A note for the community
Problem
Hello
I have a test secret "ling-dev-elk-0". Vector is skipping secret resolution due to the dash in the name: No secret placeholder found, skipping secret resolution.
_"SECRET[azsecret.ling-dev-elk-0]" - not working
I created second secret lingdevelk0 and it's working as expected.
_"SECRET[azsecret.lingdevelk0]" - working
I did not find any info about the dashes support, only about the multiple dots: https://github.com/vectordotdev/vector/blob/master/rfcs/2022-02-24-11552-dd-agent-style-secret-management.md
Configuration
Version
vector 0.26.0 (x86_64-unknown-linux-gnu c6b5bc2 2022-12-05)
Debug Output
Example Data
No response
Additional Context
No response
References
No response