ops: fix image permissions and require podman health on deploy #796

Closed
kayg wants to merge 0 commits from ops/deploy-health-gate into dev
Owner

Merged into dev with git merge --no-ff and pushed 133cf2c2a93287a8e50760e169a27b7ee9c5fd29 after 23 shim checks and healthy staging. PR head: e4cde67ae0909450395f132fbd016f1867bd9a48.

Explicit executable modes and readable web assets remove the build-source umask dependency. The existing 60-second health gate now requires HTTP 200, expected version and Podman healthy together, including rollback verification. Added HTTP-success regressions for unhealthy, stuck-starting and inspection errors; they roll back. The unhealthy regression failed before the fix.

Validated on dev-01 with nix develop -c bash -c 'bash -n scripts/deploy-prod.sh && bash -n tests/deploy-prod.sh && bash tests/deploy-prod.sh' (23 PASS). Clean archive of the exact merge commit, extracted with umask 022 and built as staging calternal; image executable/asset assertions pass. Staging deploy 2026-10-31 22:53:11–22:53:30 IST; independent podman healthcheck run calternal passes.

Production deploy with updated script, --yes-prod, no restore: 22:54:10–22:54:33 IST (23s), exit 0. Podman healthy, explicit healthcheck passes, /healthz HTTP 200/version0.1.0 and public site HTTP200. Running/current/133cf2c2 image 0b7f12688749cfee47f9d5c75fd89a15e4d693f30b12a950c6ee75ce3d7ed383; rollback exactly e4b24efe7c28a22521ca861677aedfbc5346fca98abb8a1328a4f61de5e804e0.

Backup /srv/calternal-app/backup-pre-133cf2c2-20261031T172413715595131Z.tgz, verified mode600/root, 12,317,088 bytes. Initial logs: no errors or warnings; unit active with zero restarts. No retries or secrets printed. Build succeeded with existing frontend/Nix warnings. The retained rollback image still contains its original mode700 probe; the new current image has mode755 durably. Closing this PR after manual merge; Forgejo did not automatically mark it merged.

Merged into dev with `git merge --no-ff` and pushed `133cf2c2a93287a8e50760e169a27b7ee9c5fd29` after 23 shim checks and healthy staging. PR head: `e4cde67ae0909450395f132fbd016f1867bd9a48`. Explicit executable modes and readable web assets remove the build-source umask dependency. The existing 60-second health gate now requires HTTP 200, expected version and Podman `healthy` together, including rollback verification. Added HTTP-success regressions for unhealthy, stuck-starting and inspection errors; they roll back. The unhealthy regression failed before the fix. Validated on dev-01 with `nix develop -c bash -c 'bash -n scripts/deploy-prod.sh && bash -n tests/deploy-prod.sh && bash tests/deploy-prod.sh'` (23 PASS). Clean archive of the exact merge commit, extracted with umask 022 and built as staging calternal; image executable/asset assertions pass. Staging deploy 2026-10-31 22:53:11–22:53:30 IST; independent `podman healthcheck run calternal` passes. Production deploy with updated script, `--yes-prod`, no restore: 22:54:10–22:54:33 IST (23s), exit 0. Podman healthy, explicit healthcheck passes, `/healthz` HTTP 200/version0.1.0 and public site HTTP200. Running/current/133cf2c2 image `0b7f12688749cfee47f9d5c75fd89a15e4d693f30b12a950c6ee75ce3d7ed383`; rollback exactly `e4b24efe7c28a22521ca861677aedfbc5346fca98abb8a1328a4f61de5e804e0`. Backup `/srv/calternal-app/backup-pre-133cf2c2-20261031T172413715595131Z.tgz`, verified mode600/root, 12,317,088 bytes. Initial logs: no errors or warnings; unit active with zero restarts. No retries or secrets printed. Build succeeded with existing frontend/Nix warnings. The retained rollback image still contains its original mode700 probe; the new current image has mode755 durably. Closing this PR after manual merge; Forgejo did not automatically mark it merged.
ops: normalize image permissions and gate deploys on podman health
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
e4cde67ae0
kayg closed this pull request 2026-10-31 17:26:13 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!796
No description provided.