Creating a policy for encrypting and decrypting

Now we need to create a policy which restricts Jerakia to using only the encryption and decryption endpoints.

In order to create this policy, we'll create a new file, jerakia_policy.hcl, and then import it into Vault using the policy-write Vault command:

# jerakia_policy.hcl path "transit/decrypt/jerakia" {   policy = "write" } path "transit/encrypt/jerakia" {   policy = "write" }$ ./vault policy-write jerakia jerakia_policy.hcl

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.