Fix permission/ownership issues on Linux #206
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
addFileSystemBindwithwithCopyToContainerwithCopyToContainerinstead ofaddFileSystemBind.OwnedTransferablehelperTransferablethat lets us set file mode and uid/gid on tar entries.0600permissions are required.Fix permission/ownership issues on Linux
Previously, temp files created on the host were mounted into the container with the host UID and default
0600mode. This happened to work on macOS (via Docker Desktop’s VM), but failed on Linux where Postgres runs as a non-root user.We now:
OwnedTransferable.0600for key files,0644for config/certs).postgresas70:70, other images as999:999).This makes the SSL/Vault integration tests pass reliably on both macOS and Linux without requiring root or special host permissions.