jkroepke / helm-secrets

A helm plugin that help manage secrets with Git workflow and store them anywhere
https://github.com/jkroepke/helm-secrets/wiki
Apache License 2.0
1.46k stars 127 forks source link

Resolving multiple values creates invalid resources #434

Closed cromega closed 6 months ago

cromega commented 7 months ago

Current Behavior

When I have the following template:

apiVersion: v1
kind: Secret
metadata:
  name: test
stringData: ref+awsssm://test

With a value in Parameter Store in YAML format:

value1: secret
value2: secret

I get the following rendered secret:

apiVersion: v1
kind: Secret
metadata:
  name: test
stringData: |-
  value1: secret
  value2: secret

Is there a way I can extract multiple keys from a single stored parameter and render them as a map as opposed to a string?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Anything else?

No response

cromega commented 7 months ago

Sorry, I didn't mean to mark it s a bug.

jkroepke commented 6 months ago

As I know, its not possible. I created an upstream issue, since helm-secret pass everything to vals.

https://github.com/helmfile/vals/issues/205

I will close the issue here, since there is no action todo, even the feature is implement upstream.