airshipctl/tools
Vladislav Kuzmin 8dba799c18 Add secrets generator phase
This phase builded on top of generic executor container.
It uses kustomize generator to generate secrets
and SOPS function to encrypt secrets.

Usage:
    1. `curl -fsSL -o key.asc https://raw.githubusercontent.com/mozilla/sops/master/pgp/sops_functional_tests_key.asc`
       Copy existing key from sops project
    2. `export SOPS_IMPORT_PGP="$(cat key.asc)" && export SOPS_PGP_FP="FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4"`
    3. `airshipctl phase run secret-generate`
        It will generate and encrypt secret in
        manifests/site/test-site/target/generator/results/generated/
    4. `KUSTOMIZE_PLUGIN_HOME=$(pwd)/manifests SOPS_IMPORT_PGP=$(cat key.asc) kustomize build --enable_alpha_plugins
        manifests/site/test-site/target/catalogues/ > output.txt`
	It will decrypt encrypted secret

Co-authored-by: Alexey Odinokov <aodinokov@mirantis.com>
Change-Id: I1682d71b7805eb36c407e712dcb747de799bc8bb
Relates-To: #379
2021-01-14 18:57:15 +00:00
..
deployment Merge "Update Flux manifests" 2021-01-08 05:02:48 +00:00
document Integrate common infra provider zuul scripts 2020-12-11 16:45:07 -05:00
gate Add secrets generator phase 2021-01-14 18:57:15 +00:00
add_license.sh Add check_copyright as part of gate script 2020-06-01 18:52:28 +00:00
check_copyright Add DeepCopy generation target to Makefile 2020-11-18 18:20:25 +04:00
coverage_check Fix the coverage tests 2019-10-02 15:18:56 -05:00
git_diff_check git diff check updated to watch for md changes 2020-09-28 21:16:08 +00:00
golint Add golint as a non-voting gate 2020-05-29 11:40:45 -05:00
gomod_check [#50] Clean up temp files from unit tests 2020-02-20 11:48:11 -06:00
install_linter Replace Non-ASCII symbols 2020-08-05 13:22:59 +00:00
license_bash.txt Add copyright for missing files 2020-04-09 08:35:59 -05:00
license_go.txt Add copyright for missing files 2020-04-09 08:35:59 -05:00
license_yaml.txt Add copyright for missing files 2020-04-09 08:35:59 -05:00
validate_docs Remove document plugin subcommand 2020-11-11 14:59:14 +04:00
whitespace_linter Add a simple whitespace linter 2020-01-15 10:57:44 -06:00