HashiCorp Vault from helm values

1 · Thiago Perrotta · April 23, 2025, 2:56 p.m.
Summary
Problem statement: Populate HashiCorp Vault with select keys from helm get values for a given chart release. The following script works: #!/bin/bash # Usage: Tweak entries as needed and then run the script. set -euo pipefail # It's an associative array: a dictionary, a hash map # # Key: the entry to be populated in vault # Value: a `jq` JSON selector from the output of `helm get values -o json` declare -A entries=( # keep-sorted start [config.aws.accessKey]=".config.aws.accessKey" [config.a...