Last active
February 13, 2024 02:20
-
-
Save Neutrollized/79a31dcaedebd53c94488dfea6c9f632 to your computer and use it in GitHub Desktop.
Medium: Securing your workflow using Vault Agent with GCP Auth Method on HashiCorp Vault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vault { | |
| address = "https://10.234.56.78:8200" | |
| retry { | |
| num_retries = 3 | |
| } | |
| } | |
| auto_auth { | |
| method "gcp" { | |
| mount_path = "auth/my-project-123" | |
| config = { | |
| type = "gce" | |
| role = "gce-role" | |
| } | |
| } | |
| sink "file" { | |
| config = { | |
| path = "/path/to/dir/vault-token-via-agent" | |
| mode = 0644 | |
| } | |
| } | |
| } | |
| cache { | |
| use_auth_auth_token = true | |
| } | |
| listener "tcp" { | |
| address = "127.0.0.1:8100" | |
| tls_disable = true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment