Title: Accept a MariaDB listener on its declared replication address in services.bind by shipmill-romamo[bot] · Pull Request #448 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Accept a MariaDB listener on its declared replication address in services.bind by shipmill-romamo[bot] · Pull Request #448 · cloudfall-dev/cloudfall
X Title: Accept a MariaDB listener on its declared replication address in services.bind by shipmill-romamo[bot] · Pull Request #448 · cloudfall-dev/cloudfall
Description: Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/audit.py, sdk/tests/test_s019_mariadb_audit.py, changelog.d/445-mariadb-bind-drift.md Order: add the failing tests first (a compliant primary and replica pair whose primary also listens on its replication.listenAddress, and a primary with a stray wildcard, IPv6 or other IPv4 listener on 3306); then make services.bind accept a MariaDB listener on its declared replication.listenAddress or remoteAccess.listenAddress, comparing parsed IPs; then the changelog fragment Proof: uv run pytest sdk/tests/test_s019_mariadb_audit.py sdk/tests/test_audit.py (the pair test fails on main with DRIFT, passes after; the stray-listener cases stay DRIFT), the engine tests that import cloudfall.audit, uv run ruff check ., uv run mypy; criteria S-019-12 and S-019-19 (audit of a converged pair), S-019-3 and S-019-11 unchanged Summary services.bind read DRIFT on a compliant MariaDB primary: the primary listens on its replication.listenAddress as well as loopback (the role writes both into bind_address), but the check only accepted loopback and a remoteAccess.listenAddress. The check now accepts a MariaDB listener on the service's declared replication.listenAddress or remoteAccess.listenAddress at its port, comparing parsed IPs rather than strings (an unparseable listener, such as ss's *, never matches). Any other non-loopback listener is still drift: wildcards (0.0.0.0, ::), an undeclared IPv6 address, or another IPv4 address. For a primary, the check's desired now names replication.listenAddress and loopbackOnly is false. PostgreSQL, Elasticsearch and other kinds accept the same addresses as before. Test notes New in sdk/tests/test_s019_mariadb_audit.py: a compliant pair (primary on 127.0.0.1:3306 and 203.0.113.11:3306, replica on loopback) reads COMPLIANT and fails on main with DRIFT; a primary with a stray 0.0.0.0, [::], [2001:db8::11] or 10.0.0.5 listener on 3306 reads DRIFT; a standalone server on a public address reads DRIFT Passed locally: uv run ruff check ., uv run mypy, and sdk/tests/test_s019_mariadb_audit.py, test_audit.py, test_s019_mariadb_remote_access.py, test_s019_mariadb_replication.py, test_owned_postgresql_converge.py, test_operator.py, plus the engine tests that import cloudfall.audit (engine/tests/test_s012_elasticsearch_users.py, test_s012_elasticsearch_access.py): 213 passed The full suite is left to CI Fixes #445 🤖 Generated with Claude Code
Open Graph Description: Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/audit.py, sdk/tests/test_s019_mariadb_audit.py, changelog.d/445-mariadb-bind-drift.md Order: add the failing tests first (a compliant primar...
X Description: Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/audit.py, sdk/tests/test_s019_mariadb_audit.py, changelog.d/445-mariadb-bind-drift.md Order: add the failing tests first (a compliant primar...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/448
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3fba46c2-c421-83f4-02c4-870104900d40 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 978E:1B13E8:291A97A:35ACC10:6B05590B |
| html-safe-nonce | d71926d884d945854406f2f3e058870d8a35f65308bf92580146cfd9b04b5e13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzhFOjFCMTNFODoyOTFBOTdBOjM1QUNDMTA6NkIwNTU5MEIiLCJ2aXNpdG9yX2lkIjoiNTIzMjU2OTM2OTE0MDQ5MjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 70ffb3a70a1a2a23f79a4b22e95e74feb1e952e8af20d63a3f4213e5fd0fc4ed |
| hovercard-subject-tag | pull_request:5345342723 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/cloudfall-dev/cloudfall/pull/448/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/audit.py, sdk/tests/test_s019_mariadb_audit.py, changelog.d/445-mariadb-bind-drift.md Order: add the failing tests first (a compliant primar... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width