Skip to content

Commit

Permalink
Merge pull request #675 from gocardless/pdfr-43151-fix-tests-draupnir
Browse files Browse the repository at this point in the history
[Pdfr-43151] Fix failing tests for draupnir
  • Loading branch information
erungis authored Oct 30, 2024
2 parents 0bd3094 + df9cb70 commit bfeeb61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/draupnir-finalise-image
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ cat > "${UPLOAD_PATH}/pg_hba.conf" <<EOF
# NOTE: The cert auth method is essential - without this the Draupnir instance
# will be accessible to anyone with knowledge of the host and port.
# Do not edit this unless you are absolutely certain of the consequences.
local all all trust
hostssl all draupnir 0.0.0.0/0 cert map=draupnir
local all all trust
hostssl all draupnir 127.0.0.1/32 cert map=draupnir
hostssl all draupnir ::1/128 cert map=draupnir
hostssl all draupnir 0.0.0.0/0 cert map=draupnir
EOF


# Draupnir instances run as the draupnir-instance user
find "${UPLOAD_PATH}" -user postgres -exec chown draupnir-instance {} \;
find "${UPLOAD_PATH}" -group postgres -exec chgrp draupnir-instance {} \;
Expand Down

0 comments on commit bfeeb61

Please sign in to comment.