Giter Club home page Giter Club logo

ukhomeoffice.vaultjks's Introduction

Vault JKS

Docker Repository on Quay

A simple script to fetch a CA and request certificates from vault and stick them into JAVA keystore files.

Requirements

A working vault server and PKI backend mounted with long enough TTLs.

Configuration

  • VAULT_ADDR - Vault address. Required.
  • VAULT_AUTH_FILE - If specified, this file will be sourced. This file can contain VAULT_TOKEN or VAULT_USER and VAULT_PASSWORD.
  • VAULT_TOKEN - If specified, the token will be used for auth.
  • VAULT_USER - If VAULT_TOKEN is unset, then this needs to be set.
  • VAULT_PASSWORD - Required if VAULT_TOKEN is not being used.
  • VAULT_PKI_PATH - Vault pki backend mount path. Default: shared/pki.
  • VAULT_ROLE_NAME - Vault pki backend role for requesting a new cert. Default: cert-request.
  • CERT_COMMON_NAME - Certificate request CN. Default: localhost.
  • IP_SAN - IP address to add to ip_sans. Default: $(hostname -i).
  • ALT_NAMES - Requested Subject Alternative Names, in a comma-delimited list. These can be host names or email addresses; they will be parsed into their respective fields.
  • IMPORT_SYSTEM_TRUSTSTORE: If true, import /etc/pki/java/cacerts into a TRUSTSTORE_FILE. Default: true.
  • TRUSTSTORE_FILE - Where to write truststore file. Default: truststore.jks.
  • KEYSTORE_FILE - Where to write keystore file. Default: keystore.jks.
  • SLEEP_FOREVER - If set to true, run.sh will sleep forever after it successfully created keystores. This can be useful if vaultjks is run as part of a kubernetes pod.

Running

$ docker run -ti \
  -e VAULT_ADDR=https://vault:8200 \
  -e VAULT_TOKEN=44eecf54-5b01-4bd5-a8c4-f4032b9e7e10 \
  -v /keystore:/data \
  quay.io/ukhomeofficedigital/vaultjks:v0.0.4

ukhomeoffice.vaultjks's People

Contributors

devth avatar vaijab 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.