archied update install fails from a shell: the database password lives only in the env file #1431

Closed
opened 2026-10-27 13:40:22 +00:00 by sam · 1 comment
Owner

Setup stores the Postgres password as PGPASSWORD in the archie env file, which only the systemd units load. Run from a login shell, archied update install reads database_url without it and the pre-update backup fails with password authentication failed. Done when the installer loads the archie env file itself (or the password is reachable through the secret registry) so the documented command works from a shell.


Imported from beads archie-core-l5bzc · GitHub #1712 · type bug · priority P2 · created 2026-10-15

Setup stores the Postgres password as PGPASSWORD in the archie env file, which only the systemd units load. Run from a login shell, archied update install reads database_url without it and the pre-update backup fails with password authentication failed. Done when the installer loads the archie env file itself (or the password is reachable through the secret registry) so the documented command works from a shell. --- _Imported from beads `archie-core-l5bzc` · GitHub #1712 · type bug · priority P2 · created 2026-10-15_
sam added the mediumbug labels 2026-10-27 13:40:22 +00:00
sam self-assigned this 2026-10-27 13:40:22 +00:00
Author
Owner

Already fixed by c5802cf86: loadEnvCredentials (internal/releaseupdate/credentials.go) reads the env file beside the config, called from prepare and transaction; covered by credentials_test.go.

Already fixed by c5802cf86: loadEnvCredentials (internal/releaseupdate/credentials.go) reads the env file beside the config, called from prepare and transaction; covered by credentials_test.go.
sam closed this issue 2026-11-14 04:27:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1431