René's URL Explorer Experiment


Title: Validate PostgreSQL databases owned by a declared role (#121) by shipmill-romamo[bot] · Pull Request #131 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Validate PostgreSQL databases owned by a declared role (#121) by shipmill-romamo[bot] · Pull Request #131 · cloudfall-dev/cloudfall

X Title: Validate PostgreSQL databases owned by a declared role (#121) by shipmill-romamo[bot] · Pull Request #131 · cloudfall-dev/cloudfall

Description: Summary Schema and config validate part of S-006 (standalone PostgreSQL). A PostgreSQL Service database may name an owner role and its passwordRef (environment, path, key) instead of an application. A project of one Server, its server type, and such a Service, with no Application or Component, now validates. spec.postgresql.remoteAccess (listenAddress, allowedSources) is accepted and checked. config/schemas/v1/service.schema.json: a database entry takes exactly one of application or owner (oneOf); owner requires passwordRef (dependentRequired); application forbids passwordRef (dependentSchemas). remoteAccess takes one IPv4 or IPv6 listen address (wildcards refused) and a non-empty list of sources sdk/src/cloudfall/validation.py: service_database_owner_reserved for postgres, alloy, or the Linux user of an Application with a database on the same service; service_remote_access_unused, service_remote_access_unfirewalled, service_remote_access_port_open, service_remote_access_open, plus service_remote_access_source_invalid for a source that isn't a canonical CIDR. The changes stay inside the service validators (the PostgreSQL part moved into _validate_postgresql_service) sdk/src/cloudfall/inventory.py: new OwnedPostgresDatabase (name, owner, SecretValueReference) and PostgresRemoteAccess. The model holds the reference only, never a password value. An owned database renders name, owner, passwordRef with no application key sdk/src/cloudfall/domain.py: new value objects PostgresRoleName, SecretKeyName, IpNetworkCidr Converging these declarations is #122. Until it lands, the cloudfall_postgresql role's argument spec refuses an owned database or remoteAccess before any task runs. I checked this against the rendered inventory with Ansible's ArgumentSpecValidator: it reports "missing required arguments: application" and unsupported passwordRef and remoteAccess. Test plan New sdk/tests/test_owned_postgresql.py: one test per criterion S-006-1, 2, 3, 4 and 11, plus tests for rendering, an owner whose name matches an application user on another server, a non-canonical source, and wildcard listen addresses uv run ruff check ., uv run mypy, uv run cloudfall config validate --project config/examples: all pass sdk/tests/test_validation.py, test_inventory.py, test_data_migration.py, test_migrate.py, engine/tests/test_ansible_inventory.py, test_postgresql_templates.py: 68 passed cloudfall-engine inventory render --project config/examples writes a byte-identical file on this branch and on origin/main (cmp). That is the inventory half of S-006-12; its test is #122's Full suite left to CI Fixes #121 Plan Serves: quality bar Files: config/schemas/v1/service.schema.json, sdk/src/cloudfall/domain.py, sdk/src/cloudfall/inventory.py, sdk/src/cloudfall/validation.py, sdk/tests/test_owned_postgresql.py, changelog.d/121-owned-postgresql-validation.md Order: tests for S-006-1/2/3/4/11 first, then the schema, value objects, inventory model, and service validation Proof: S-006-1, S-006-2, S-006-3, S-006-4, S-006-11 (specs.py coverage --spec 006); byte-identical example inventory render 🤖 Generated with Claude Code

Open Graph Description: Summary Schema and config validate part of S-006 (standalone PostgreSQL). A PostgreSQL Service database may name an owner role and its passwordRef (environment, path, key) instead of an application...

X Description: Summary Schema and config validate part of S-006 (standalone PostgreSQL). A PostgreSQL Service database may name an owner role and its passwordRef (environment, path, key) instead of an application...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:37af8eda-b76f-46ba-9906-40c030ce63b4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A6A:17B2AF:26CAA37:330987E:6B05594B
html-safe-nonceb88e308b6c505756a920055188a5d7b8b6bd696845008bf93490992bc2fbe185
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTZBOjE3QjJBRjoyNkNBQTM3OjMzMDk4N0U6NkIwNTU5NEIiLCJ2aXNpdG9yX2lkIjoiNTE0NzcwMTQ4NjQwNjY4NzA1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac94a525b5d73917698e36c044700164d5c24cd146abdf4e2257441b2540de24d3
hovercard-subject-tagpull_request:5030700253
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/131/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 Schema and config validate part of S-006 (standalone PostgreSQL). A PostgreSQL Service database may name an owner role and its passwordRef (environment, path, key) instead of an application...
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/131/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F131%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%2F131%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/131/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/131/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/131/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/121-owned-postgresql-validationhttps://github.com/cloudfall-dev/cloudfall/tree/feat/121-owned-postgresql-validation
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/131
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/131/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/131/checks
Files changed 6 https://github.com/cloudfall-dev/cloudfall/pull/131/files
Validate PostgreSQL databases owned by a declared role (#121) https://github.com/cloudfall-dev/cloudfall/pull/131/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/131/files
180d1dc Validate PostgreSQL databases owned by a declared role shipmill-romamo[bot] Oct 27, 2026 https://github.com/cloudfall-dev/cloudfall/pull/131/commits/180d1dccadd8b755c95f2e2d8602493cf8d946db
375f12a Refuse a wildcard or non-canonical remoteAccess listen address shipmill-romamo[bot] Oct 27, 2026 https://github.com/cloudfall-dev/cloudfall/pull/131/commits/375f12ab1598614b945c8f29f5ff1da77ff597dc
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/131/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/131/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/131/files
121-owned-postgresql-validation.md https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-426df994a01e4f96166b0b7ed3f57bdc93812cd748e1feb41754e351ae3429a7
service.schema.json https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
domain.py https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
inventory.py https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
validation.py https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
test_owned_postgresql.py https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-a02209d541083c6e092f5517c5271ad3555d4d3c1a95663c42d497673f98cdde
changelog.d/121-owned-postgresql-validation.mdhttps://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-426df994a01e4f96166b0b7ed3f57bdc93812cd748e1feb41754e351ae3429a7
View file https://github.com/cloudfall-dev/cloudfall/blob/375f12ab1598614b945c8f29f5ff1da77ff597dc/changelog.d/121-owned-postgresql-validation.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/131/{{ revealButtonHref }}
config/schemas/v1/service.schema.jsonhttps://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
View file https://github.com/cloudfall-dev/cloudfall/blob/375f12ab1598614b945c8f29f5ff1da77ff597dc/config/schemas/v1/service.schema.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/131/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
sdk/src/cloudfall/domain.pyhttps://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
View file https://github.com/cloudfall-dev/cloudfall/blob/375f12ab1598614b945c8f29f5ff1da77ff597dc/sdk/src/cloudfall/domain.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/131/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
sdk/src/cloudfall/inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
View file https://github.com/cloudfall-dev/cloudfall/blob/375f12ab1598614b945c8f29f5ff1da77ff597dc/sdk/src/cloudfall/inventory.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/131/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/131/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/131/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/131/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.