Skip to content

Commit 95f7be7

Browse files
committed
docs(postgres): update denylist documentation to match implementation
Update values.yaml comments and README to reflect the corrected denylist: remove log_destination and event_source (not code-execution vectors), add dynamic_library_path and *_preload_libraries (arbitrary .so loading). Signed-off-by: IvanHunters <[email protected]>
1 parent a4d3c99 commit 95f7be7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/apps/postgres/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ See:
8484
| Name | Description | Type | Value |
8585
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ----- |
8686
| `postgresql` | PostgreSQL server configuration. | `object` | `{}` |
87-
| `postgresql.parameters` | PostgreSQL server parameters. All values must be strings (enclose numbers in quotes). See PostgreSQL documentation for available parameters. WARNING: Some parameters are managed by CloudNativePG and should NOT be overridden (archive_mode, archive_command, restore_command, primary_conninfo, etc.). Incorrect values may break backup/replication or require pod restart. | `map[string]string` | `{}` |
87+
| `postgresql.parameters` | PostgreSQL server parameters. All values must be strings (enclose numbers in quotes). See PostgreSQL documentation for available parameters. BLOCKED (enable arbitrary code execution): `archive_command`, `restore_command`, `ssl_passphrase_command`, `dynamic_library_path`, `local_preload_libraries`, `session_preload_libraries`, `shared_preload_libraries`. Do NOT override CloudNativePG-managed parameters: `archive_mode`, `primary_conninfo`, `wal_level`, `max_replication_slots`. | `map[string]string` | `{}` |
8888

8989

9090
### Quorum-based synchronous replication

‎packages/apps/postgres/values.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ postgresql:
6363
## commit_siblings: "5"
6464
## work_mem: "256MB"
6565
##
66-
## SECURITY: The following parameters are BLOCKED for security reasons
67-
## (could allow arbitrary shell command execution):
68-
## archive_command, restore_command, ssl_passphrase_command,
69-
## log_destination, event_source
66+
## SECURITY: The following parameters are BLOCKED (enable arbitrary code execution):
67+
## archive_command, restore_command, ssl_passphrase_command (shell commands),
68+
## dynamic_library_path, local_preload_libraries, session_preload_libraries,
69+
## shared_preload_libraries (arbitrary .so loading)
7070
##
7171
## IMPORTANT: Do NOT override CloudNativePG-managed parameters:
7272
## archive_mode, primary_conninfo, wal_level, max_replication_slots

0 commit comments

Comments
 (0)