Skip to content

dreamteam-gg/vault-atlas-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vault-atlas-plugin

Hashicorp Vault Atlas Plugin

Used source code from https://github.com/desteves/mongodb-atlas-service-broker/

Build

go build -o atlas ./mongodb-atlas-plugin/main.go

Install

Place atlas file into your plugins folder and run

vault secrets enable database
SHASUM=$(shasum -a 256 "./atlas" | cut -d " " -f1)
vault write sys/plugins/catalog/database/atlas sha_256="$SHASUM" command="atlas"
vault write database/roles/readonly db_name=atlas creation_statements='{ "db": "admin", "roles": [{ "role": "readAnyDatabase" }] }' default_ttl="1h" max_ttl="24h"
vault write database/config/atlas plugin_name=atlas allowed_roles="readonly" apiID="public API key" apiKey="private API key" groupID="group id"

Test

vault read database/creds/readonly

About

Hashicorp Vault Atlas Plugin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%