Fix agenix secret streaming for NSC configs
This commit is contained in:
parent
52b7f102f0
commit
ef3585bb14
4 changed files with 2 additions and 6 deletions
|
|
@ -117,12 +117,8 @@ burrow_encrypt_secret_from_file() {
|
||||||
identity_path="$(burrow_agenix_identity_path "${repo_root}")"
|
identity_path="$(burrow_agenix_identity_path "${repo_root}")"
|
||||||
|
|
||||||
if [[ -n "${identity_path}" ]]; then
|
if [[ -n "${identity_path}" ]]; then
|
||||||
SECRET_SOURCE_FILE="${source_path}" \
|
nix --extra-experimental-features "nix-command flakes" run "${repo_root}#agenix" -- -e "${agenix_path}" -i "${identity_path}" < "${source_path}"
|
||||||
EDITOR="${repo_root}/Scripts/agenix-load-file.sh" \
|
|
||||||
nix --extra-experimental-features "nix-command flakes" run "${repo_root}#agenix" -- -e "${agenix_path}" -i "${identity_path}"
|
|
||||||
else
|
else
|
||||||
SECRET_SOURCE_FILE="${source_path}" \
|
nix --extra-experimental-features "nix-command flakes" run "${repo_root}#agenix" -- -e "${agenix_path}" < "${source_path}"
|
||||||
EDITOR="${repo_root}/Scripts/agenix-load-file.sh" \
|
|
||||||
nix --extra-experimental-features "nix-command flakes" run "${repo_root}#agenix" -- -e "${agenix_path}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue