-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Fixes #13894] Expose PostgreSQL configuration files on host for tuning in GeoNode Docker setup #13886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brynsofz
wants to merge
7
commits into
GeoNode:master
Choose a base branch
from
brynsofz:feat/expose_postgresql_configuration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Fixes #13894] Expose PostgreSQL configuration files on host for tuning in GeoNode Docker setup #13886
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
15be0aa
feat: expose posegresql configuration
brynsofz d279916
fix: fix EOF
brynsofz 4c35843
fix: remove test config
brynsofz 947e0b6
fix: add default configuration for max_connections
brynsofz 2151ece
Add 'brynsofz' to the list in .clabot
giohappy 691ce39
fix: update PostgreSQL configuration to explicitly deny all other con…
brynsofz 070e8f7
fix: update docker-compose files for other environments
brynsofz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,6 +84,7 @@ | |
| "marlowp", | ||
| "sijandh35", | ||
| "mcihad", | ||
| "nrjadkry" | ||
| "nrjadkry", | ||
| "brynsofz" | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| max_connections = 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Local Unix socket connections - trust for local admin access | ||
| local all postgres trust | ||
|
|
||
| # Localhost connections - trust for container internal access | ||
| host all postgres 127.0.0.1/32 trust | ||
| host all postgres ::1/128 trust | ||
|
|
||
| # Allow replication connections from localhost | ||
| local replication all trust | ||
| host replication all 127.0.0.1/32 trust | ||
| host replication all ::1/128 trust | ||
|
|
||
| # ============================================================================= | ||
| # Application-specific rules (evaluated in order) | ||
| # ============================================================================= | ||
|
|
||
| # GeoNode database - require SCRAM-SHA-256 authentication | ||
| # This matches connections from Django/Celery containers | ||
| host geonode geonode 172.19.0.0/16 scram-sha-256 | ||
|
|
||
| # GeoNode geodatabase - require SCRAM-SHA-256 authentication | ||
| # This matches connections from GeoServer | ||
| host geonode_data geonode_data 172.19.0.0/16 scram-sha-256 | ||
|
|
||
| # Template databases - no external access allowed | ||
| host template0 all all reject | ||
| host template1 all all reject | ||
|
|
||
| # Postgres database - admin only, require password | ||
| host postgres postgres 172.19.0.0/16 scram-sha-256 | ||
|
|
||
| # ============================================================================= | ||
| # Default catch-all rule - deny all other connections | ||
| # ============================================================================= | ||
| # Explicitly deny all other connections: | ||
| host all all all reject | ||
|
|
||
| # Or allow with password (current default): | ||
| # host all all all scram-sha-256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Data Directory (managed by Docker) | ||
| data_directory = '/var/lib/postgresql/data' | ||
|
|
||
| # Connection Settings | ||
| listen_addresses = '*' # Listen on all network interfaces | ||
|
|
||
| # Authentication Configuration File | ||
| hba_file = '/etc/postgresql/pg_hba.conf' | ||
|
|
||
| # Include additional configuration files from conf.d directory | ||
| # All .conf files in this directory will be processed | ||
| include_dir = 'conf.d' | ||
|
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
POSTGRESQL_MAX_CONNECTIONSenvironment variable, which was used here to configuremax_connections, is no longer effective with the new configuration approach. This is a potentially breaking change for users who were relying on it. It would be helpful to document this change and provide instructions for settingmax_connectionsvia the newconf.ddirectory mechanism.