Skip to content

A tool to synchronize your vault policies from your code repository with your server.

License

Notifications You must be signed in to change notification settings

fynelabs/vault-policies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vault-policies

A simple tool to synchronize your vault policies from your code repository with your server.

Install

To install this tool, you should run the following command:

$ go install github.com/fynelabs/vault-policies@latest

Initialize

If you are already using vault, it is likely that you have setup some policies. You might want to get them locally as a starting point. To do so, you can do the following with the backup command:

$ vault login
[...]
$ vault-policies backup toyour/directory

This can also be useful for regularly getting a snapshot of the policies in production for audit or just backup.

Seting rules on your server

If you do not want any rules to be removed and just update the rules you have defined in your directory to be replicated on your vault instance, you should use the upload command as follow:

$ vault login
[...]
$ vault-policies upload fromyour/directory

If you want to have the rules set on your server to exactly and strictly match the one defined in your directory, you should use the restore command as follow:

$ vault login
[...]
$ vault-policies restore fromyour/directory

License

This code is under MPL-2 as is vault to facilitate adoption.

About

A tool to synchronize your vault policies from your code repository with your server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages