Are there any smarter ways to read secret from vault without having large secrets block in pipeline stage?
I need to read and assign variable in config file for 10+ secrets.
-
What version are you on? Are you using self-managed or GitLab.com?
- GitLab (Hint:
/help
): GitLab Enterprise Edition [v16.3.5-ee]
- GitLab (Hint:
-
This is sample of my
.gitlab-ci.yml
I’ll need to add secret block for each secret, eventually I’ll end up with large block of secrets for this job
job_read_secret_qa:
secrets:
TEST_SECRET:
vault:
engine:
name: kv-v1
path: secret
path: path/to/your/secret1
field: password
file: false
TEST_SECRET_2:
vault:
engine:
name: kv-v1
path: secret
path: path/to/your/secret2
field: password
file: false
variables:
VAULT_SERVER_URL: "vault_server_url"