Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests fix a bug - the init container did not fail on unsupported formats (#64) Jan 2, 2019
.gitignore Init container (#57) Jan 1, 2019
Dockerfile Init container (#57) Jan 1, 2019 Init container (#57) Jan 1, 2019
index.js fix + bump Jan 22, 2019
package.json fix + bump Jan 22, 2019
yarn.lock Init container (#57) Jan 1, 2019

CircleCI Known Vulnerabilities Dockerhub

Kamus Init Container

A init container that decrypt secrets using Kamus decryptor API and write them to a file.

Getting Started

The simplest way to use the init container is by creating a config map to store the encrypted values:

apiVersion: v1
kind: ConfigMap
  name: encrypted-secrets-cm
  key: 4AD7lM6lc4dGvE3oF+5w8g==:WrcckiNNOAlMhuWHaM0kTw==

Use the CLI or direct API calls to encrypt the values. The init container has 2 mounted volumes:

  • Encrypted items: mounted from the config map, contains all the encrypted values
  • Decrypted items: the init container will write all the decrypted items to this volume. The vulme medium is memory for increased security.

Take a look on the deployment of the example app to see how it's all connected together. You'll notice that app container and the init container, and you can see the mount settings. Don't forget to mount the decrypted item into the container running the app.


The init container accept the following environmenmt variables:

Option Required Description Default Value
-V/--version false output the version number
-e/--encrypted-folder <path> true Encrypted files folder path (the volume mounted with the config map)
-d/--decrypted-path <path> false Decrypted file/s folder path mounted. Pass this argument to create one decrypted file per encrypted secret
-n/--decrypted-file-name <name> false Decrypted file name. Pass this argument to create one configuration file with the encrypted secrets.
-f/--output-format <format> false The format of the output file, default to JSON. Supported types: json, cfg, files JSON