Skip to content

Commit

Permalink
fix: Fix json secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Seguin authored Aug 19, 2021
1 parent 3261c55 commit 7b8709e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mutate.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ export AWS_SECRET_ACCESS_KEY="{{ .Data.secretAccessKey }}"
{{- end }}
`, instance, roleName, instanceId),
})

patches = append(patches, map[string]interface{}{
"op": "add",
"path": fmt.Sprintf("/metadata/annotations/vault.hashicorp.com~1agent-inject-secret-%s.json", instanceId),
"value": fmt.Sprintf("%s/keys/%s", instance, roleName),
})

patches = append(patches, map[string]interface{}{
"op": "add",
Expand Down

0 comments on commit 7b8709e

Please sign in to comment.