You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When data injected from vault are binary, they mess with the syntax of the file they are injected to. The plugin fails with an error that does not quite point out the problem (ex.: "Error: ToYAML: could not export Secret into YAML: error converting JSON to YAML: yaml: control characters are not allowed").
Passing in --verbose-sensitive-output might be cumbersome and unsafe in production.
Describe the solution you'd like
Provided AVP replaces placeholders in plain text files, injecting binary content is an error in all cases. Error out in case the placeholder resolves into a binary content.
Describe alternatives you've considered
Keep as is and confuse/frustrate users.
Do not error, just print warning - easy to overlook, still breaks a little later.
Provide a CLI option if this behavior is better implemented as opt-in/opt-out.
Additional context
Used as ArgoCD plugin: kustomize build . | argocd-vault-plugin generate -.
The text was updated successfully, but these errors were encountered:
olivergondza
added a commit
to olivergondza/argocd-vault-plugin
that referenced
this issue
Nov 24, 2024
Is your feature request related to a problem? Please describe.
When data injected from vault are binary, they mess with the syntax of the file they are injected to. The plugin fails with an error that does not quite point out the problem (ex.: "Error: ToYAML: could not export Secret into YAML: error converting JSON to YAML: yaml: control characters are not allowed").
Passing in
--verbose-sensitive-output
might be cumbersome and unsafe in production.Describe the solution you'd like
Provided AVP replaces placeholders in plain text files, injecting binary content is an error in all cases. Error out in case the placeholder resolves into a binary content.
Describe alternatives you've considered
Additional context
Used as ArgoCD plugin:
kustomize build . | argocd-vault-plugin generate -
.The text was updated successfully, but these errors were encountered: