Skip to content

fix: prevent CIS+TWO_NODE postgresql install hang - #804

Open
Dr-N00B wants to merge 1 commit into
mainfrom
dev/two-node-cis-hardening-hang
Open

fix: prevent CIS+TWO_NODE postgresql install hang#804
Dr-N00B wants to merge 1 commit into
mainfrom
dev/two-node-cis-hardening-hang

Conversation

@Dr-N00B

@Dr-N00B Dr-N00B commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Two-node provider images with CIS_HARDENING=true hung forever on an interactive Password: prompt while installing postgresql-16.
  • CIS harden.sh requires su callers to be in the sudo group; root is not a member in the build container, so postgres postinst (su postgres) blocked.
  • Add usermod -aG sudo root immediately before the Ubuntu postgres install so pam_wheel allows the noninteractive su. Harmless when CIS hardening is off.

Test plan

  • Build a provider image with TWO_NODE=true and CIS_HARDENING=true and confirm the postgres install completes (no hang at "Setting up postgresql-common").
  • Build with TWO_NODE=true and CIS_HARDENING=false and confirm the postgres install still succeeds.

Add root to the sudo group before installing postgresql-16 so pam_wheel
does not block su postgres on an interactive password prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant