From the course: Learning HashiCorp Vault

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding policies to Vault

Adding policies to Vault - Vault Tutorial

From the course: Learning HashiCorp Vault

Start my 1-month free trial

Adding policies to Vault

- [Instructor] Let's demonstrate the process of defining and uploading policies to Vault. We'll then create some users in the user pass authentication system, and show how to manually associate those users to a policy. When that's done we can see how the policies affect what those tokens can do in Vault. First start a new dev server in a terminal with vault server -dev. I'm going to use Visual Studio Code to demonstrate using the integrated terminal. Open the exercise files with Visual Studio Code. You can open the integrated terminal by going to the view menu and select integrated terminal. Here in integrated terminal let's execute vault status to make sure that the server's running and we're good. We'll clear that out. First let's look at the policies we'll be uploading. App-policy.hcl is the policy for an application and can only read from secret/dev. Dev/policy.hcl is the policy a developer would use to write to secret/dev. One thing to note, the dev server we started uses the KV…

Contents