All Projects → sethvargo → Vault Secrets Gen

sethvargo / Vault Secrets Gen

Licence: mit
A Vault secrets plugin for generating high entropy passwords and passphrases.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Vault Secrets Gen

Secretscanner
Find secrets and passwords in container images and file systems
Stars: ✭ 895 (+276.05%)
Mutual labels:  password, secrets
Ttpassgen
密码生成 flexible and scriptable password dictionary generator which can support brute-force、combination、complex rule mode etc...
Stars: ✭ 68 (-71.43%)
Mutual labels:  password, password-generator
Drone Vault
Drone plugin for integrating with the Vault secrets manager
Stars: ✭ 36 (-84.87%)
Mutual labels:  vault, secrets
Vault
A tool for secrets management, encryption as a service, and privileged access management
Stars: ✭ 22,383 (+9304.62%)
Mutual labels:  vault, secrets
Pwgen
macOS password generator
Stars: ✭ 130 (-45.38%)
Mutual labels:  password, password-generator
Strongbox
A KeePass/Password Safe Client for iOS and OS X
Stars: ✭ 586 (+146.22%)
Mutual labels:  password, password-generator
Pgen
Command-line passphrase generator
Stars: ✭ 68 (-71.43%)
Mutual labels:  password, password-generator
Cryptr
Cryptr: a GUI for Hashicorp's Vault
Stars: ✭ 324 (+36.13%)
Mutual labels:  vault, secrets
Catesta
Catesta is a PowerShell module project generator. It uses templates to rapidly scaffold test and build integration for a variety of CI/CD platforms.
Stars: ✭ 88 (-63.03%)
Mutual labels:  vault, secrets
Passwd
A beautiful, cross-platform, encrypted password manager 🔐
Stars: ✭ 82 (-65.55%)
Mutual labels:  password, password-generator
Node Vault
Client for HashiCorp's Vault
Stars: ✭ 391 (+64.29%)
Mutual labels:  vault, secrets
Spring Vault
Provides familiar Spring abstractions for HashiCorp Vault
Stars: ✭ 179 (-24.79%)
Mutual labels:  vault, secrets
Passmaker
可以自定义规则的密码字典生成器,支持图形界面 A password-generator that base on the rules that you specified
Stars: ✭ 363 (+52.52%)
Mutual labels:  password, password-generator
Vault Guides
Example usage of HashiCorp Vault secrets management
Stars: ✭ 636 (+167.23%)
Mutual labels:  vault, secrets
Go Password
A Golang library for generating high-entropy random passwords similar to 1Password or LastPass.
Stars: ✭ 317 (+33.19%)
Mutual labels:  password, password-generator
Diceware
Generate secure passwords you can actually remember!
Stars: ✭ 66 (-72.27%)
Mutual labels:  password, password-generator
Sup3rs3cretmes5age
Simple to use, simple to deploy, one time self destruct messaging service, with hashicorp vault as a backend
Stars: ✭ 313 (+31.51%)
Mutual labels:  vault, secrets
T Vault
Simplified secrets management solution
Stars: ✭ 316 (+32.77%)
Mutual labels:  vault, secrets
Go Diceware
Golang library for generating passphrases via the diceware algorithm.
Stars: ✭ 69 (-71.01%)
Mutual labels:  password, password-generator
Helm Secrets
Successor of zendesk/helm-secrets - A helm plugin that help manage secrets with Git workflow and store them anywhere
Stars: ✭ 165 (-30.67%)
Mutual labels:  vault, secrets

Password Generator for HashiCorp Vault

Build Status

The Vault Password Generator is a Vault secrets plugin for generating cryptographically secure passwords and passphrases.

This is both a real custom Vault secrets plugin, and an example of how to build, install, and maintain your own Vault secrets plugin.

Setup

The setup guide assumes some familiarity with Vault and Vault's plugin ecosystem. You must have a Vault server already running, unsealed, and authenticated.

  1. Download and decompress the latest plugin binary from the Releases tab on GitHub. Alternatively you can compile the plugin from source, if you're into that kinda thing.

  2. Move the compiled plugin into Vault's configured plugin_directory:

    $ mv vault-secrets-gen /etc/vault/plugins/vault-secrets-gen
    
  3. Enable mlock so the plugin can safely be enabled and disabled:

    setcap cap_ipc_lock=+ep /etc/vault/plugins/vault-secrets-gen
    
  4. Calculate the SHA256 of the plugin and register it in Vault's plugin catalog. If you are downloading the pre-compiled binary, it is highly recommended that you use the published checksums to verify integrity.

    $ export SHA256=$(shasum -a 256 "/etc/vault/plugins/vault-secrets-gen" | cut -d' ' -f1)
    
    $ vault plugin register \
        -sha256="${SHA256}" \
        -command="vault-secrets-gen" \
        secret secrets-gen
    
  5. Mount the secrets engine:

    $ vault secrets enable \
        -path="gen" \
        -plugin-name="secrets-gen" \
        plugin
    

Usage & API

Policy requirements

The token used should have the following policy permissions to be able to generate passwords.

path "gen/password" {
  capabilities = ["create", "update"]
}

Generate Password

Generates a random, high-entropy password with the specified number of characters, digits, symbols, and configurables.

Method Path Produces
POST /gen/password 200 (application/json)

Parameters

  • length (int: 64) - Specifies the total length of the password including all letters, digits, and symbols.

  • digits (int: 10) - Specifies the number of digits to include in the password.

  • symbols (int: 10) - Specifies the number of symbols to include in the password.

  • allow_uppercase (bool: true) - Specifies whether to allow uppercase and lowercase letters in the password.

  • allow_repeat (bool: true) - Specifies to allow duplicate characters in the password. If set to false, be conscious of password length as values cannot be re-used.

CLI

$ vault write gen/password length=36 symbols=0
Key  	Value
---  	-----
value	27f3L5zKCZS8DD6D2PEK1xm0ECNaImg1PJqg

Generate Passphrase

Generates a random, high-entropy passphrase with the specified number of words and separator using the diceware algorithm.

Method Path Produces
POST /gen/passphrase 200 (application/json)

Parameters

  • words (int: 6) - Specifies the total number of words to generate.

  • separator (string: "-") - Specifies the string value to use as a separator between words.

CLI

$ vault write gen/passphrase words=4
Key  	Value
---  	-----
value	obstacle-sacrament-sizable-variably

License

This code is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].