#vault - August 2021

vaultArchived
1 messages

:vault: Discussions related to Hashicorp Vault

August 2021
michael sew
michael sewabout 5 years ago
Question: How would you manage vault configuration in a CI/CD pipeline? every example/tutorial I see shows how to write a single simple policy with a single command. ie.
vault policy write my-policy ./my-policy.hcl

..but my company's vault github repo has dozens of .hcl files in multiple subdirectories:
/vault
  /identities
    /roles
      app1.yml
      app2.yml
    /teams
      app1.yml
      app2.yml;
  /policies
    /program
      /app1
        app1.hcl
      /app2
        app2.hcl

There's this whole structure, but I have no idea how a github action, or jenkins pipeline handles it. Does it recursively go through every file in the directory? Can you ask vault to search an entire directory for .hcl policies?
Are there any examples or github repos out there that show such a setup?