René's URL Explorer Experiment


Title: Probe an undeclared MariaDB source from the replica's server (S-019-14) by shipmill-romamo[bot] · Pull Request #463 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Probe an undeclared MariaDB source from the replica's server (S-019-14) by shipmill-romamo[bot] · Pull Request #463 · cloudfall-dev/cloudfall

X Title: Probe an undeclared MariaDB source from the replica's server (S-019-14) by shipmill-romamo[bot] · Pull Request #463 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.py (new), engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml, engine/ansible/roles/cloudfall_mariadb/defaults/main.yml, engine/tests/mariadb_pair.py, engine/tests/test_s019_mariadb_replication_role.py, docs/specs/019-mariadb-service.md, changelog.d/455-mariadb-probe-from-replica.md Order: the failing stand-in test first (a source that refuses the controller but accepts the replica is not promoted over; a source that refuses the replica is), with a per-host probe stand-in that reads the stand-in network and otherwise runs the role's real probe script; then move the probe's classification to a script the role runs on the replica's own server, after the Last_IO_Errno check of #454; then the spec's Promotion wording Proof: engine/tests/test_s019_mariadb_replication_role.py (S-019-14); uv run ruff check ., uv run mypy, uv run ansible-lint engine/ansible Summary After #454, a promotion over a source that no declared service matches went ahead when the controller's probe of the source's port read refused and the replica's Last_IO_Errno was none of the errors only a live source sends. A firewall that REJECTs the controller gives the same ECONNREFUSED, so a running, writable source could be promoted over: two writers. The probe now runs on the replica's own server. files/mariadb_source_probe.py holds the classification #454 wrote (open, refused, timeout, no-route, unresolved, failed; every address of a name tried, a refusal at one never hiding what another can't read), standard library only, and replication_check.yml runs it there with ansible.builtin.script and /usr/bin/python3 (the Python Ansible needs on a Debian 13 target). The source admitted that server while it replicated from it, so a refusal from there means nothing listens The Last_IO_Errno check of #454 still comes first in the plan; a timeout, no route and an unresolved name still leave the source unknown and refuse with PRECONDITION. The declared-source path is unchanged The cloudfall_mariadb_source_probe filter is gone: no controller-side filter reads the network any more. The refusal and promotion messages now say the port was read from "this replica's server" Spec 019's Promotion section says "can't be reached" is read from the replica's side. The triage named docs/mariadb-service-guide.md too; no such guide exists on main, so nothing else was edited Two role variables, cloudfall_mariadb_source_probe_script and cloudfall_mariadb_source_probe_python, name the script and the interpreter; the stand-in pair sets them per host to its probe stand-in (dependency injection, no monkeypatching) Test plan uv run pytest engine/tests/test_s019_mariadb_replication_role.py engine/tests/test_s019_mariadb_role.py engine/tests/test_s019_mariadb_engine.py: all pass new: a source that refuses the controller (a closed loopback port, checked with the real script) but answers the replica in the stand-in network is not promoted over: PRECONDITION service_mariadb_promotion_unsafe, the replica stays read-only and the source keeps taking writes (on main it was promoted); the same source stopped is promoted; both assert the probe ran on the replica's host the #446 cases keep their outcomes from the replica's side: refused promotes; timeout or no route, an unresolved name, a refused login and a TLS error refuse the script's classification tables move from the filter to the script, and one test runs the script as a process (python -I) and checks that no filter cloudfall_mariadb_source_probe is left The probe stand-in answers open or refused for a host and port the stand-in network routes (by whether that server runs), and otherwise runs the role's real script uv run ruff check ., uv run mypy, uv run ansible-lint engine/ansible: clean The full suite is left to CI Not verified on real hosts: ansible.builtin.script with /usr/bin/python3 on a Debian 13 target, and a REJECTing firewall in front of a real source This PR and #461 (for #451) touch the same files from origin/main; whichever lands second needs a rebase. Fixes #455 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.py (new), engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ans...

X Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.py (new), engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ans...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/463

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:d514646a-e914-c5db-99fd-b7dd8e57eb71
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9768:3EA722:1D6796F:27B4B07:6B055AA7
html-safe-noncecd6834bcffe5902bc89e2bd7d3e34b905e66063c5b2b7aa849cf084c19a4dec1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzY4OjNFQTcyMjoxRDY3OTZGOjI3QjRCMDc6NkIwNTVBQTciLCJ2aXNpdG9yX2lkIjoiNTI4MDU0NjI4OTQ1NTgxNTMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac22fb6e7638b56fd576e60148783d039dd9e57c0346f6a1184a4fe83f4391354d
hovercard-subject-tagpull_request:5347731707
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/463/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altPlan Serves: quality bar Files: engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.py (new), engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ans...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/463/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F463%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F463%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/463/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/463/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/463/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
fix/455-mariadb-probe-from-replicahttps://github.com/cloudfall-dev/cloudfall/tree/fix/455-mariadb-probe-from-replica
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/463
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/463/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/463/checks
Files changed 8 https://github.com/cloudfall-dev/cloudfall/pull/463/files
Probe an undeclared MariaDB source from the replica's server (S-019-14) https://github.com/cloudfall-dev/cloudfall/pull/463/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/463/files
bae8138 Probe an undeclared MariaDB source from the replica's server (S-019-14) shipmill-romamo[bot] Nov 17, 2026 https://github.com/cloudfall-dev/cloudfall/pull/463/commits/bae8138ab5cc9434dbe47d69f415b58bb4020ebf
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/463/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/463/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/463/files
455-mariadb-probe-from-replica.md https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-18521740452200cb11dd1a98320bde8e8a0c37f1e2fc840223261204769df794
019-mariadb-service.md https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d400f2aa99b212f3e074fc46ee5b33d7d53fb715d509c1e82dffc4beffd1dc50
main.yml https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
mariadb_source_probe.py https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-eb2c94a3260e2e1acd26a80bd25ae8f6ea899bcf290a106c28f0b18cf0bea37b
mariadb_replication.py https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
replication_check.yml https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
mariadb_pair.py https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
test_s019_mariadb_replication_role.py https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-621512c6040e4c36871b54bc4b37af5dfea96f527e5a357da7a9604cf7bc2035
changelog.d/455-mariadb-probe-from-replica.mdhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-18521740452200cb11dd1a98320bde8e8a0c37f1e2fc840223261204769df794
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/changelog.d/455-mariadb-probe-from-replica.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
docs/specs/019-mariadb-service.mdhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d400f2aa99b212f3e074fc46ee5b33d7d53fb715d509c1e82dffc4beffd1dc50
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/docs/specs/019-mariadb-service.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d400f2aa99b212f3e074fc46ee5b33d7d53fb715d509c1e82dffc4beffd1dc50
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d400f2aa99b212f3e074fc46ee5b33d7d53fb715d509c1e82dffc4beffd1dc50
engine/ansible/roles/cloudfall_mariadb/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/engine/ansible/roles/cloudfall_mariadb/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.pyhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-eb2c94a3260e2e1acd26a80bd25ae8f6ea899bcf290a106c28f0b18cf0bea37b
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/engine/ansible/roles/cloudfall_mariadb/files/mariadb_source_probe.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.pyhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
View file https://github.com/cloudfall-dev/cloudfall/blob/bae8138ab5cc9434dbe47d69f415b58bb4020ebf/engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/463/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/463/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/463/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/463/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.