Go Language Source for different purposes. Not affiliated with Google.
=========================================================================== vsecure.go: This program allows interacting with Hashicorp's Vault in an easy way. It uses an individuals Active Directory (or LDAP) credentials to interact with the generic backend. On first use, it will create the paths and policy needed for the user, and assign it to their LDAP user in Vault. In order to do this, the "userpass" authentication method must be enabled in Vault, and a username/password pair created with the following policy:
path "secret/usr/*" { policy = "write" }
path "secret/usr" { policy = "write" }
path "sys/policy/*" { policy = "write" }
path "sys/policy" { policy = "read" }
path "auth/ldap/*" { policy = "sudo" }
path "auth/token/lookup-self" { policy = "read" }