Skip to content

Hashicorp Vault pki plugin for Netflix Lemur Certificate Manager.

License

Notifications You must be signed in to change notification settings

RcRonco/lemur_vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault plugin

Hashicorp Vault plugin for Netflix Lemur.

Prerequisites

  1. Lemur 0.6.0
  2. Hashicorp Vault 0.6.2 and above.

Installation

  1. Configure the Vault PKI as Certificate Authority.
  2. To install the plugin, add the needed options to your lemur.conf.py file:
# Hashicorp Vault Plugin
# Basic options:
(REQUIRED) VAULT_URL = 'http://myvault.com:8200'
(REQUIRED) VAULT_PKI_URL = VAULT_URL + '/v1/pki'

# For HTTPS add the path to the certificate chain.
(OPTIONAL) VAULT_CA = '/path/ca/certificate'

# Authentication options:
(REQUIRED) VAULT_AUTH = 'TOKEN' | 'USERPASS' | 'CERT' | 'APPROLE' | 'LDAP' | 'GCP'
VAULT_AUTH_PATH = 'authentication mounting point name' # Default to be the auth name

# Token Auth
VAULT_AUTH_TOKEN = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

# LDAP/Userpass Auth
VAULT_AUTH_USERNAME = 'myvaultuser'
VAULT_AUTH_PASSWORD = 'Vault123'

# TLS Certificates Auth
VAULT_AUTH_CERT = '/tmp/crt.pem
VAULT_AUTH_CERTKEY = '/tmp/key.pem

# GCP Auth
VAULT_AUTH_ROLE = 'myvaultrole'
VAULT_AUTH_ACCOUNT = 'mygcpaccount'

# AppRole Auth
VAULT_AUTH_ROLE = 'myvaultrole'
VAULT_AUTH_SECRET = 'approle_secret_id'
  1. Deploy and install the files.
# Install Vault Plugin
cd lemur/plugins/
git clone https://github.com/RcRonco/lemur_vault
cd lemur_vault
pip install .
  1. Create a Certificate Authority in the lemur web interface.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

About

Hashicorp Vault pki plugin for Netflix Lemur Certificate Manager.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages