Skip to content

Fix disposable PostgreSQL bootstrap permissions in restore checks - #20

Merged
kaanyagci merged 1 commit into
mainfrom
fix/cohort-postgres-bootstrap-permissions
Sep 6, 2026
Merged

kaanyagci merged 1 commit into
mainfrom
fix/cohort-postgres-bootstrap-permissions

Conversation

@kaanyagci

Copy link
Copy Markdown
Member

The disposable restore server could not read its private password file or initialize data with every Linux capability removed. Grant only the initialization capabilities needed by PostgreSQL before it drops to its service user. Perform the subsequent private-file ownership and mode transfer together inside the scoped helper.

Validation: ShellCheck and cohort hardening/cleanup/forced-command tests passed. These changes affect only temporary restore-test containers.

@kaanyagci
kaanyagci merged commit e2b6042 into main Sep 6, 2026
2 checks passed
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