mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

Integrates Vault PKI service as a service addon. Also adds some helper scripts to help setup the CA in Vault, as well as some docs to explain how to use them. Originally based from https://github.com/mteodor/vault. Signed-off-by: Joao Matos <joao@tritao.eu> Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
11 lines
183 B
Bash
Executable File
11 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
vault() {
|
|
docker exec -it mainflux-vault vault "$@"
|
|
}
|
|
|
|
mkdir -p data
|
|
|
|
vault operator init 2>&1 | tee >(sed -r 's/\x1b\[[0-9;]*m//g' > data/secrets)
|