Title: PostgreSQL remoteAccess: close the pg_hba.conf opening when a reload fails or the Service is removed · Issue #144 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: PostgreSQL remoteAccess: close the pg_hba.conf opening when a reload fails or the Service is removed · Issue #144 · cloudfall-dev/cloudfall
X Title: PostgreSQL remoteAccess: close the pg_hba.conf opening when a reload fails or the Service is removed · Issue #144 · cloudfall-dev/cloudfall
Description: Found in the review of #141 (PostgreSQL remoteAccess, spec S-006). The nftables rule closes the port in each case below, so nothing is reachable from outside; these are gaps in the second layer. 1. A failed reload during removal leaves t...
Open Graph Description: Found in the review of #141 (PostgreSQL remoteAccess, spec S-006). The nftables rule closes the port in each case below, so nothing is reachable from outside; these are gaps in the second layer. 1....
X Description: Found in the review of #141 (PostgreSQL remoteAccess, spec S-006). The nftables rule closes the port in each case below, so nothing is reachable from outside; these are gaps in the second layer. 1....
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/144
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PostgreSQL remoteAccess: close the pg_hba.conf opening when a reload fails or the Service is removed","articleBody":"Found in the review of #141 (PostgreSQL `remoteAccess`, spec S-006). The nftables rule closes the port in each case below, so nothing is reachable from outside; these are gaps in the second layer.\n\n## 1. A failed reload during removal leaves the old opening live\n\n`engine/ansible/roles/cloudfall_postgresql/tasks/main.yml` (the removal path around lines 256 and 277): when `remoteAccess` is removed, the role deletes the Cloudfall block from `pg_hba.conf` and reloads. If that reload fails, the run fails, but the file is already without the block, so the next converge sees no change and never reloads. PostgreSQL keeps the old `hostssl` lines live until a restart.\n\nExpected: a later converge notices that the running rules (`pg_hba_file_rules` or `pg_settings`) differ from the file and reloads, or the role reloads whenever the last reload didn't succeed.\n\n## 2. Removing the whole Service leaves the block and the listener\n\nS-006-10 covers removing `remoteAccess` from a service. Removing the PostgreSQL Service itself removes the firewall rule but leaves the `pg_hba.conf` block and `listen_addresses = '127.0.0.1,\u003clistenAddress>'` on the host.\n\nExpected: whatever the decommission path for a service is, it closes these too, or `config validate`/converge says what is left behind.\n\n## 3. Reserved pg_hba words are refused only in the role\n\n#141 makes the role refuse an owned database or owner named `all`, `sameuser`, `samerole`, `samegroup` or `replication` (pg_hba reads them as keywords). `cloudfall config validate` still accepts them, so the refusal comes at converge time. It should be `CONFIG_INVALID` with a context code at validate time.\n\nRelated: #81, #123, `docs/specs/006-standalone-postgresql.md`.\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-27T11:03:18Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/144"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:904dceba-7ade-13b1-c86b-179b23bd56d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C82A:1F9C:408401:5CF45E:6B0558AB |
| html-safe-nonce | 88bb6e2448ac6cb84a3192fd83639379c79a45d401b7fe79766a7fcb6c6b4c46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODJBOjFGOUM6NDA4NDAxOjVDRjQ1RTo2QjA1NThBQiIsInZpc2l0b3JfaWQiOiIzOTYyNjE4NjgyNTcxODM5NjU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ecf8e2a01c4b1b05e2600be7986646d10e46d4872f86f573fa6f131150bb2fd3 |
| hovercard-subject-tag | issue:6057902067 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36a53cd33296919e60d67a770ddd3a1269bb86cc294341c87c9b00bb355b33a1/cloudfall-dev/cloudfall/issues/144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36a53cd33296919e60d67a770ddd3a1269bb86cc294341c87c9b00bb355b33a1/cloudfall-dev/cloudfall/issues/144 |
| og:image:alt | Found in the review of #141 (PostgreSQL remoteAccess, spec S-006). The nftables rule closes the port in each case below, so nothing is reachable from outside; these are gaps in the second layer. 1.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width