René's URL Explorer Experiment
Title: Apply one Domain on its proxy server with cloudfall domains apply (#117) by shipmill-romamo[bot] · Pull Request #137 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Apply one Domain on its proxy server with cloudfall domains apply (#117) by shipmill-romamo[bot] · Pull Request #137 · cloudfall-dev/cloudfall
X Title: Apply one Domain on its proxy server with cloudfall domains apply (#117) by shipmill-romamo[bot] · Pull Request #137 · cloudfall-dev/cloudfall
Description: Summary
Implements the domains apply part of S-004 (docs/specs/004-domains-apply.md): criteria S-004-1, 3, 5, 6, 7, 8, 9 and 10. domains observe and the MCP tools (S-004-4, 14, 15, 16) stay with #118, so the spec is not marked built.
New domains group with cloudfall domains apply [--issue-certificate] [--deployments DIR] [--yes], modeled on deploy: the project is validated first (CONFIG_INVALID), an unknown id exits PRECONDITION (lifecycle_domain_missing), and both refusals come before the inventory render
With --yes it runs domains.yml with --limit and cloudfall_domains_domain_id, the one-Domain run #116 added, and answers status: "ok", action: "domains-apply", domain, servers, receipt and effect: "updated". A run that writes no receipt is refused (lifecycle_receipt_missing), as deploy does. Without --yes it answers the plan (status: "plan", would_run, instruction, effect: "would_update") after running every controller-side check, the DNS check included
--issue-certificate refuses tls.mode: disabled (PRECONDITION, domains_tls_disabled) before anything else. On a dns-only Domain it then requires the primary name and every alias to resolve to at least one address of the proxy server (PRECONDITION, domains_dns_unverified, naming each failing name and what it resolved to), then passes cloudfall_domains_issue_certificates: true. A proxied Domain skips the check (dns_check: "skipped-proxied"); a checked one answers "verified"; without the flag dns_check is null
The resolver is a NameResolver protocol passed into preview_domain_apply / apply_domain (SystemNameResolver on the CLI, getaddrinfo), so tests answer DNS offline without monkeypatching. lifecycle.proxy_addresses computes the proxy address set the way migrate's dns-verify does (server address or what its hostname resolves to, plus network.ipv4); migrate itself is unchanged and keeps its own code
Catalog: domains apply is a servers command gated by --yes; output keys domain and dnsCheck are added (additive). sdk/README.md names the command
Fixes #117
Test plan
sdk/tests/test_domains_apply.py:
S-004-1: apply_domain runs the real domains.yml under ansible-playbook against the rendered inventory of the examples (servers h1, h2; crm-site proxied on h2), every host on a local connection and cloudfall_nginx_site swapped through ANSIBLE_ROLES_PATH for a recorder. The play recap lists only h2, every task that ran belongs to domains.yml or the stub, the stub saw cloudfall_nginx_site_issue_certificate as asked, and the receipt is written. A static check holds domains.yml to the one include_role of cloudfall_nginx_site, with no roles/import_playbook, and the role to no dependencies or nested role includes
S-004-3, 5, 7, 8 through cloudfall.cli.main: plan output, CONFIG_INVALID with and without --yes, proxied --issue-certificate plan, domains_tls_disabled with and without --yes; none renders the inventory or writes a receipt. An unknown id exits lifecycle_domain_missing too
S-004-6, 7, 8, 9 at the lifecycle level with a stand-in resolver and a recording runner: an alias elsewhere and a name resolving to nothing are refused naming them (plan and --yes), with no step run; proxied asks no resolver; TLS disabled is refused before DNS; the certificate run passes --limit h2 and the extra vars and answers dnsCheck: "verified" and the receipt
engine/tests/test_domains_certificate.py: Templar replays of the role's when conditions (issuance runs on a fresh Domain and is skipped once fullchain.pem exists; certbot.timer is enabled either way), and the role's receipt tasks run for real twice on localhost: the second receipt's configurationSha256 equals its previousConfigurationSha256 (S-004-10)
sdk/tests/test_commands.py: domains apply joins the --yes-gated set
sdk/tests/test_migrate.py: pins migrate's dns-verify addresses as on main: an unresolvable server hostname (.invalid) adds no address and raises nothing, and a scoped link-local address (fe80::1%eth0) is kept as written
Ran locally: uv run ruff check ., uv run mypy, uv run cloudfall config validate --project config/examples, and the tests of the touched and neighbouring files (test_domains_apply, test_commands, test_migrate, test_domains_converge, test_lifecycle, test_project, test_app, test_agent_server, test_catalog, test_arguments, test_domains_certificate, test_domains_one_domain: 153 passed). No Ansible file changed, so ansible-lint was not needed. The full suite is left to CI
Not run live: a real Let's Encrypt issuance, fullchain.pem present and certbot.timer active on a Debian host (S-004-9), and the second run's actual skip of Issue the declared certificate against a real certificate (S-004-10); the real SystemNameResolver against public DNS
Plan
Serves: quality bar
Files: sdk/src/cloudfall/lifecycle.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/commands.py, sdk/README.md, changelog.d/117-domains-apply.md, tests
Order: resolver protocol and proxy addresses, preview and apply in lifecycle, domains apply command and catalog entry, tests per criterion (see the spec's Behaviour)
Proof: S-004-1, S-004-3, S-004-5, S-004-6, S-004-7, S-004-8, S-004-9, S-004-10 (specs.py coverage --spec 004; S-004-4, 14, 15, 16 stay with #118)
🤖 Generated with Claude Code
Open Graph Description: Summary
Implements the domains apply part of S-004 (docs/specs/004-domains-apply.md): criteria S-004-1, 3, 5, 6, 7, 8, 9 and 10. domains observe and the MCP tools (S-004-4, 14, 15, 16) stay with #1...
X Description: Summary
Implements the domains apply part of S-004 (docs/specs/004-domains-apply.md): criteria S-004-1, 3, 5, 6, 7, 8, 9 and 10. domains observe and the MCP tools (S-004-4, 14, 15, 16) stay with #1...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/137
X: @github
direct link
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:cada803a-0c38-9b5e-ec4c-49b32a871345 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 828C:1F67:522160:71E4E4:6B0557A6 |
| html-safe-nonce | f837d665d9700c82e65ef6adf6cb2964d57b31c21cd16b089b50b39cf3449101 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjhDOjFGNjc6NTIyMTYwOjcxRTRFNDo2QjA1NTdBNiIsInZpc2l0b3JfaWQiOiI1MzgzMjM2NjU5Njk1NjcxMjA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 44abd2a9941b7df5176f7ad4e4a62a127990eab95740c704a9d98849737b7953 |
| hovercard-subject-tag | pull_request:5031787103 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/137/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
Implements the domains apply part of S-004 (docs/specs/004-domains-apply.md): criteria S-004-1, 3, 5, 6, 7, 8, 9 and 10. domains observe and the MCP tools (S-004-4, 14, 15, 16) stay with #1... |
| 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:
| Skip to content | https://github.com/cloudfall-dev/cloudfall/pull/137/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F137%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F137%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| cloudfall-dev | https://github.com/cloudfall-dev |
| cloudfall | https://github.com/cloudfall-dev/cloudfall |
| Code | https://github.com/cloudfall-dev/cloudfall |
| Issues78 (78) | https://github.com/cloudfall-dev/cloudfall/issues |
| Pull requests10 (10) | https://github.com/cloudfall-dev/cloudfall/pulls |
| Discussions | https://github.com/cloudfall-dev/cloudfall/discussions |
| Actions | https://github.com/cloudfall-dev/cloudfall/actions |
| Security and quality | https://github.com/cloudfall-dev/cloudfall/security |
| Insights | https://github.com/cloudfall-dev/cloudfall/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose |
| shipmill-romamo | https://github.com/apps/shipmill-romamo |
| main | https://github.com/cloudfall-dev/cloudfall/tree/main |
| feat/117-domains-apply | https://github.com/cloudfall-dev/cloudfall/tree/feat/117-domains-apply |
|
Conversation
1
| https://github.com/cloudfall-dev/cloudfall/pull/137 |
|
Commits
3
| https://github.com/cloudfall-dev/cloudfall/pull/137/commits |
|
Checks
1
| https://github.com/cloudfall-dev/cloudfall/pull/137/checks |
|
Files changed
9
| https://github.com/cloudfall-dev/cloudfall/pull/137/files |
|
Apply one Domain on its proxy server with cloudfall domains apply (#117)
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#top |
|
Show all changes
3 commits
| https://github.com/cloudfall-dev/cloudfall/pull/137/files |
|
77276ff
Apply one Domain on its proxy server with cloudfall domains apply
shipmill-romamo[bot] Oct 27, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/137/commits/77276ff9b5a5bec11a4a2da0774bd827b3a65625 |
|
1447896
Keep migrate's dns-verify exactly as before domains apply
shipmill-romamo[bot] Oct 27, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/137/commits/144789606de4bf82e4b4a6f2dbe9c815a408c1f4 |
|
51c8193
Compare a non-canonical IPv6 proxy address canonically in domains apply
shipmill-romamo[bot] Oct 27, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/137/commits/51c819313d686e0062cc3149e7b276b7505dc0a9 |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
|
117-domains-apply.md
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-3a6bf6fb94ae76cfe8c6657b2008e027486fdfe2e267cc3408e7ad720ba8806c |
|
test_domains_certificate.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-0b2c13787842311c11caa95bc5a16d3829c6e1144ecdef5bb34bb8b5e6a32118 |
|
README.md
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-00ba42324c784ebcf27766700a3924a25e593009a52d5431331d42bef9edd2e9 |
|
app.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
commands.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
lifecycle.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-6593e43e7c2a82c570ff2144303fbc6af72efaf8ff8a4075fcc8733b8d86b4d8 |
|
test_commands.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-117fa14131dd2e31ba099fedd7ccdfb92938b973295d83cda2d8b679a31bdb80 |
|
test_domains_apply.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-0f628f9664625fe8d5cd478890c2f8723b6715416ba10551d50af3881b7ecb33 |
|
test_migrate.py
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-ff876c4e372bb9c3d7f26a8a0dfc87bf9890113abfe0cf9398e8c32b84d55c8b |
| changelog.d/117-domains-apply.md | https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-3a6bf6fb94ae76cfe8c6657b2008e027486fdfe2e267cc3408e7ad720ba8806c |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/51c819313d686e0062cc3149e7b276b7505dc0a9/changelog.d/117-domains-apply.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/137/{{ revealButtonHref }} |
| engine/tests/test_domains_certificate.py | https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-0b2c13787842311c11caa95bc5a16d3829c6e1144ecdef5bb34bb8b5e6a32118 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/51c819313d686e0062cc3149e7b276b7505dc0a9/engine/tests/test_domains_certificate.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/137/{{ revealButtonHref }} |
| sdk/README.md | https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-00ba42324c784ebcf27766700a3924a25e593009a52d5431331d42bef9edd2e9 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/51c819313d686e0062cc3149e7b276b7505dc0a9/sdk/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/137/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-00ba42324c784ebcf27766700a3924a25e593009a52d5431331d42bef9edd2e9 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-00ba42324c784ebcf27766700a3924a25e593009a52d5431331d42bef9edd2e9 |
| sdk/src/cloudfall/app.py | https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/51c819313d686e0062cc3149e7b276b7505dc0a9/sdk/src/cloudfall/app.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/137/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
| sdk/src/cloudfall/commands.py | https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/51c819313d686e0062cc3149e7b276b7505dc0a9/sdk/src/cloudfall/commands.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/137/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/137/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/137/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Response headers:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width
URLs of crawlers that visited me.