Skip to content

How decrypt vault secrets before executing the helm template command #712

Description

@RafSad

We used avp-generate.sh from link

But now we've rendered our own script.
avp.yaml

We encountered a problem where if, after running the Helm template command, the password is hidden under sha256sum, i.e., of the form #fafadgsdgsdfgnbsvcs, then the avp no longer sees it, which is logical, and authentication doesn't work for us.

user {{ .username }} {{ default "on" .enabled }} {{ if $userPassword }}#{{ sha256sum $userPassword }}{{ else }}nopass{{ end }} {{ default "~*" .keys }} {{ default "&*" .channels }} {{ default "+@all" .commands }}

From: https://artifacthub.io/packages/helm/bitnami/redis/24.1.0?modal=template&template=configmap.yaml

Please tell me how to rewrite the avp-generate.sh to get around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions