René's URL Explorer Experiment
Title: Validate Domain routes (S-003-1, S-003-8..12) by shipmill-romamo[bot] · Pull Request #168 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Validate Domain routes (S-003-1, S-003-8..12) by shipmill-romamo[bot] · Pull Request #168 · cloudfall-dev/cloudfall
X Title: Validate Domain routes (S-003-1, S-003-8..12) by shipmill-romamo[bot] · Pull Request #168 · cloudfall-dev/cloudfall
Description: Summary
A Domain can declare spec.routes (spec S-003): proxy routes (path + upstream {address, port}) and static routes (path + static {component, directory, spaFallback?}), exactly one of upstream or static per route. This PR is the schema, the parser and cloudfall config validate; rendering is #162.
config/schemas/v1/domain.schema.json: routes (at least one item) with $defs for the route, the upstream (now shared with proxy.upstream, same shape) and the release-relative path. directory and spaFallback are held by the schema: letters, digits and ._-/, relative, no .. segment, and directory not the release root (., ./, ././). path is only a string in the schema, so its rules refuse with their own codes
sdk/src/cloudfall/domain.py: DomainRoutePath (/ then letters, digits and ._~/-; is_reserved, is_directory) and ReleaseRelativePath (is_release_root)
sdk/src/cloudfall/inventory.py: DomainProxyRoute, DomainStaticRoute, DomainInventory.routes (default empty). as_dict() adds routes only when there are some, so a Domain with only proxy.upstream serializes byte-for-byte as before (Q-3)
sdk/src/cloudfall/validation.py: _validate_domain_references checks routes in this order: domain_route_source_invalid (both proxy.upstream and routes; neither stays valid), domain_route_path_invalid, domain_route_path_reserved (/.well-known/acme-challenge or under it), domain_route_path_duplicate, then for a static route the trailing / (domain_route_path_invalid), resource_reference_missing and domain_route_component_not_on_proxy. Every refusal exits CONFIG_INVALID
The engine needs no change for CI: config/examples has no routes, and domains.yml's early check already refuses a Domain without proxy.upstream before any change, so a routes-only Domain stops there until #162.
Plan
Serves: G-3
Files: config/schemas/v1/domain.schema.json, sdk/src/cloudfall/domain.py, sdk/src/cloudfall/inventory.py, sdk/src/cloudfall/validation.py, sdk/tests/test_domain_routes.py, changelog.d/159-domain-routes-validation.md
Order: failing tests for each criterion first (sdk/tests/test_domain_routes.py); then the routes schema, the route value objects, DomainInventory.routes, and the _validate_domain_references route checks; the spec's Behaviour covers the rules
Proof: S-003-1, S-003-8, S-003-9, S-003-10, S-003-11, S-003-12, each a test_s003__... test running cloudfall config validate; the existing inventory and validation tests prove a Domain with only proxy.upstream is unchanged (Q-3)
Test plan
New sdk/tests/test_domain_routes.py (28 tests), failing on main at import, passing here; specs.py coverage --spec 003 lists a test for each of S-003-1, 8, 9, 10, 11, 12
uv run ruff check ., uv run mypy, uv run cloudfall config validate --project config/examples: pass
Touched and domain-related tests pass (165): sdk/tests/test_validation.py, test_inventory.py, test_domains_apply.py, test_domains_converge.py, test_domains_observe.py, test_service_evidence.py, test_operations_dashboard.py, test_agent_server.py, engine/tests/test_nginx_site_templates.py, test_domains_one_domain.py, test_ansible_inventory.py
The full suite is left to CI
Fixes #159
Part of #90
🤖 Generated with Claude Code
Open Graph Description: Summary
A Domain can declare spec.routes (spec S-003): proxy routes (path + upstream {address, port}) and static routes (path + static {component, directory, spaFallback?}), exactly one of upstream...
X Description: Summary
A Domain can declare spec.routes (spec S-003): proxy routes (path + upstream {address, port}) and static routes (path + static {component, directory, spaFallback?}), exactly one of upstream...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/168
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:874e896a-f789-719d-1f39-26e5bd4eb7ec |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BFAE:1E782F:1B23728:23B2AEE:6B055DE2 |
| html-safe-nonce | 13d086111daa712039dae5067b971b4a32a478205e3663fbf7859ba18a4da8b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkFFOjFFNzgyRjoxQjIzNzI4OjIzQjJBRUU6NkIwNTVERTIiLCJ2aXNpdG9yX2lkIjoiMzYzNTEwODY5NTg5OTQ2MzEzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e2f4a9784826923edb812678e80ee23b2c1c1bf2abca11a9da063106409ce56b |
| hovercard-subject-tag | pull_request:5085524672 |
| 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/168/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 Domain can declare spec.routes (spec S-003): proxy routes (path + upstream {address, port}) and static routes (path + static {component, directory, spaFallback?}), exactly one of upstream... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| 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 | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/cloudfall-dev/cloudfall/pull/168/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F168%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%2F168%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/168/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/168/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/168/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/159-domain-routes-validation | https://github.com/cloudfall-dev/cloudfall/tree/feat/159-domain-routes-validation |
|
Conversation
0
| https://github.com/cloudfall-dev/cloudfall/pull/168 |
|
Commits
2
| https://github.com/cloudfall-dev/cloudfall/pull/168/commits |
|
Checks
1
| https://github.com/cloudfall-dev/cloudfall/pull/168/checks |
|
Files changed
| https://github.com/cloudfall-dev/cloudfall/pull/168/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/168/files |
|
Validate Domain routes (S-003-1, S-003-8..12)
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#top |
|
Show all changes
2 commits
| https://github.com/cloudfall-dev/cloudfall/pull/168/files |
|
830569f
Validate Domain routes (S-003-1, S-003-8..12)
shipmill-romamo[bot] Oct 30, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/168/commits/830569f0c509a8d37e71368a0f8f9181c5057fc7 |
|
6eb5d87
Refuse a trailing newline in a static route's directory or spaFallback
shipmill-romamo[bot] Oct 30, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/168/commits/6eb5d87924729749a676da02129121c49a8b8b31 |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/168/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/168/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/168/files |
|
159-domain-routes-validation.md
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-0035f2573e424af6d40ed7f1ffc499732b2a2629f930d08b52feaedfa6acfb07 |
|
domain.schema.json
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
domain.py
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b |
|
inventory.py
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
validation.py
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28 |
|
test_domain_routes.py
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-210e06291b6688d4c70d448445d0d076f888c70cfcf6d32112d8368e7b385a68 |
| changelog.d/159-domain-routes-validation.md | https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-0035f2573e424af6d40ed7f1ffc499732b2a2629f930d08b52feaedfa6acfb07 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/6eb5d87924729749a676da02129121c49a8b8b31/changelog.d/159-domain-routes-validation.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/168/{{ revealButtonHref }} |
| config/schemas/v1/domain.schema.json | https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/6eb5d87924729749a676da02129121c49a8b8b31/config/schemas/v1/domain.schema.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/168/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-598258b09b3196cb9b6faeb28d35c16e01056ae643768af1b0887b7d6d36cd73 |
| sdk/src/cloudfall/domain.py | https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/6eb5d87924729749a676da02129121c49a8b8b31/sdk/src/cloudfall/domain.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/168/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b |
| sdk/src/cloudfall/inventory.py | https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/6eb5d87924729749a676da02129121c49a8b8b31/sdk/src/cloudfall/inventory.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/168/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
|
| https://github.com/cloudfall-dev/cloudfall/pull/168/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/168/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/168/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.