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-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:874e896a-f789-719d-1f39-26e5bd4eb7ec
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFAE:1E782F:1B23728:23B2AEE:6B055DE2
html-safe-nonce13d086111daa712039dae5067b971b4a32a478205e3663fbf7859ba18a4da8b2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkFFOjFFNzgyRjoxQjIzNzI4OjIzQjJBRUU6NkIwNTVERTIiLCJ2aXNpdG9yX2lkIjoiMzYzNTEwODY5NTg5OTQ2MzEzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace2f4a9784826923edb812678e80ee23b2c1c1bf2abca11a9da063106409ce56b
hovercard-subject-tagpull_request:5085524672
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/168/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:altSummary 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
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
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/168/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F168%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%2F168%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/168/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/168/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/168/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
feat/159-domain-routes-validationhttps://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 pagehttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/168/files
Please reload this pagehttps://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.mdhttps://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.jsonhttps://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.pyhttps://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.pyhttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/168/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/168/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.