Coder Social home page Coder Social logo

lukegb / vault-acme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from remilapeyre/vault-acme

0.0 1.0 0.0 14.3 MB

License: Mozilla Public License 2.0

Makefile 0.47% Go 19.91% Shell 0.14% Ruby 1.19% JavaScript 3.68% CSS 2.51% HCL 0.71% HTML 71.39%

vault-acme's Introduction

Vault ACME

This plugin has not been properly reviewed and should not be used in production.

Vault ACME is a Vault secret engine that allow users and application to retrieve TLS certificates validated by an ACME provider like Let's Encrypt without having to give each applications permission to modify DNS and using Vault's audit and policy systems.

Discussion: hashicorp/vault#4950

Download Vault ACME

Binary releases can be downloaded at https://github.com/remilapeyre/vault-acme/releases.

Documentation

The documentation is available at website/source/docs/secrets/acme/index.html.md.

How to use this plugin

Using this plugin in Docker requires to manually set the mlock file capability to both Vault and the acme plugin:

$ sudo setcap cap_ipc_lock=+ep $(readlink -f $(which vault))
$ sudo setcap cap_ipc_lock=+ep /vault/plugins/acme-plugin

After setting plugin_directory and setting the correct shasum in Vault (vault write sys/plugins/catalog/secret/acme sha_256=$(sha256sum acme-plugin) command=acme-plugin) you can mount the plugin like any other: vault secrets enable -path acme -plugin-name acme plugin.

Tests

Unit tests are run against Pebble:

$ export PEBBLE_VA_NOSLEEP=1
$ pebble -dnsserver 127.0.0.1:8053 &
$ pebble-challtestsrv -http01 "" -https01 "" -tlsalpn01 "" &
$ make test

and acceptance tests both Pebble and a running Vault server:

$ export LEGO_TEST_NAMESERVER=127.0.0.1:8053
$ export LEGO_CA_CERTIFICATES=$PWD/test/certs/pebble.minica.pem
$ export PEBBLE_VA_NOSLEEP=1
$ export EXEC_PROPAGATION_TIMEOUT=5
$ export EXEC_PATH=$PWD/test/test_dns.sh
$ pebble -dnsserver 127.0.0.1:8053 &
$ pebble-challtestsrv -http01 "" -https01 "" -tlsalpn01 "" &
$ vault server -dev -config ./test/vault.hcl -dev-root-token-id foo &
$ make testacc

vault-acme's People

Contributors

mswart avatar remilapeyre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.