vault-policies

command module
v0.0.0-...-095da19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL