fix(deploy-services): keep the caller's authkey over .env, and don't blank the app-skeleton key #23
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/fix/deploy-services-authkey-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
scripts/deploy-services.sh sourced .env after the caller exports, so a stale CI_EPHEMERAL_TAILSCALE_AUTHKEY line there overrode a freshly minted key and every deploy kept writing the expired one. The script now keeps the caller values, ignores (with a warning) any .env/vault value for these two secrets, and mints 168h keys instead of 4h. Also: the app-skeleton deploy key task in ci_ephemeral_provisioner used to overwrite the installed key with an empty file when the key was not exported; it now uses force only when a key is supplied (the file must still exist, the provisioner opens it every cycle). Tested with a stubbed script run and a local Ansible run of the three file cases; not run against services. -- Generated with Claude Code