Title: Issue the server certificate to a MariaDB replica of an outside source by shipmill-romamo[bot] · Pull Request #521 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Issue the server certificate to a MariaDB replica of an outside source by shipmill-romamo[bot] · Pull Request #521 · cloudfall-dev/cloudfall
X Title: Issue the server certificate to a MariaDB replica of an outside source by shipmill-romamo[bot] · Pull Request #521 · cloudfall-dev/cloudfall
Description: Summary A replica of a source Cloudfall does not manage (replication.source, S-019-17) now gets its server certificate from the project CA, like every other MariaDB server with replication. The services converge left it out of mariadb_certificate_requirements (a filter written for #424, when the role still refused such a replica, before #444 built the outside source), while cloudfall requirements show (requirements_of) listed requirement mariadb for that server and the role's tls.yml required the files. The converge stopped at "Require the server certificate before the server uses TLS" after the volume was created and, on 11.4, after mariadb-server was installed. mariadb_certificate_requirements drops the outside-source filter and its stale docstring, so the converge asks for exactly the certificate requirements requirements show lists The role's missing-certificate message names what needs the certificate: remoteAccess, replication, or both, instead of always remoteAccess The outside source's own CA (caCertificateFile, staged as sourceCa and copied to source-ca.crt) is untouched: it is a different file from the project CA at ca.crt Why the replica needs the certificate at all: the role's managed settings set ssl_cert/ssl_key/ssl_ca for every server with replication, and a replica of an outside source is promoted to a primary in S-019-17, after which its own replicas verify it against the project CA. So issuing it (rather than having the role skip TLS) keeps the replica the same as one of a Cloudfall pair. Plan Serves: quality bar Files: sdk/src/cloudfall/elasticsearch_converge.py, engine/ansible/roles/cloudfall_mariadb/tasks/tls.yml, sdk/tests/test_s019_mariadb_replication.py, engine/tests/test_s019_mariadb_remote_access_role.py, changelog.d/494-mariadb-source-replica-certificate.md Order: the failing tests first (the S-019-17 replica's converge delivers the server certificate and the project CA; the converge and requirements show name the same certificate requirements for a pair, an outside-source replica and a standalone with remoteAccess; the message names only what the service declares), then the converge filter and the role's message Proof: uv run pytest sdk/tests/test_s019_mariadb_replication.py sdk/tests/test_s019_mariadb_remote_access.py engine/tests/test_s019_mariadb_remote_access_role.py, which fail on main and pass here; ruff, mypy, ansible-lint Test plan New tests, each failing on main and passing here: test_s019_17_a_replica_of_an_outside_source_gets_its_server_certificate (the S-019-17 declaration: replica with source, credentialsRef, caCertificateFile; on main h2 got no delivered files), test_the_converge_asks_for_the_certificates_requirements_show_lists[replica of an outside source] (converge asked for nothing, requirements_of listed mariadb), test_a_missing_certificate_names_what_the_service_declares[outside source|both] Kept exactly: the same agreement test's primary and replica (h1, h2) and standalone with remoteAccess (h1) cases, and the existing S-019-12 assertion that both servers of a pair get ca.crt and server.crt uv run pytest sdk/tests/test_s019_mariadb_replication.py sdk/tests/test_s019_mariadb_remote_access.py engine/tests/test_s019_mariadb_remote_access_role.py: 58 passed uv run pytest sdk/tests/test_s012_elasticsearch_converge.py sdk/tests/test_s019_mariadb.py engine/tests/test_s019_mariadb_external_source.py: 114 passed ruff check, ruff format --check on the touched Python files, uv run mypy (214 files), ansible-lint engine/ansible (production profile): clean Left to CI: the full suite, including the slow Ansible replays in engine/tests/test_s019_mariadb_role.py and test_s019_mariadb_replication_role.py Couldn't verify: a live converge of S-019-17 on a host (no live host here); that is #482's repeat proving run Fixes #494 🤖 Generated with Claude Code
Open Graph Description: Summary A replica of a source Cloudfall does not manage (replication.source, S-019-17) now gets its server certificate from the project CA, like every other MariaDB server with replication. The ser...
X Description: Summary A replica of a source Cloudfall does not manage (replication.source, S-019-17) now gets its server certificate from the project CA, like every other MariaDB server with replication. The ser...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/521
X: @github
Domain: github.com
IPv4 address: 140.82.112.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:c72450fd-c412-4dde-41f1-c749af776343 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CCE6:2EA7B6:2E51DA6:3D58CA8:6B057D6A |
| html-safe-nonce | baf69edd6ad5901e4b8f8b236b43c76c00b5881f0e114b80e3dc35bf5c077216 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0U2OjJFQTdCNjoyRTUxREE2OjNENThDQTg6NkIwNTdENkEiLCJ2aXNpdG9yX2lkIjoiODgzODIwODM0MzczMTY5OTA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0ee0f65a73a5ad73442590f364e4b9711196d8b47f6ffa12a220e72701f2b67 |
| hovercard-subject-tag | pull_request:5359668544 |
| 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/521/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 | Summary A replica of a source Cloudfall does not manage (replication.source, S-019-17) now gets its server certificate from the project CA, like every other MariaDB server with replication. The ser... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| 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 | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| 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