René's URL Explorer Experiment


Title: Declare and validate a ClickHouse service (S-022-1, S-022-2, S-022-19) by shipmill-romamo[bot] · Pull Request #586 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Declare and validate a ClickHouse service (S-022-1, S-022-2, S-022-19) by shipmill-romamo[bot] · Pull Request #586 · cloudfall-dev/cloudfall

X Title: Declare and validate a ClickHouse service (S-022-1, S-022-2, S-022-19) by shipmill-romamo[bot] · Pull Request #586 · cloudfall-dev/cloudfall

Description: Summary Adds serviceKind: clickhouse (spec 022): the declaration, its validation and the rendered inventory. Nothing converges the kind yet: services.yml already refuses a kind it has no role for, and the role comes with the later build issues. config/schemas/v1/service.schema.json takes spec.clickhouse as the spec writes it (version, maxServerMemoryMb of 2048 or more, replicas, keeper.servers, databases, clientAccess), required for the kind and refused on the others. The schema admits a few shapes only so that config validate can refuse them with the spec's own code (remoteAccess, a database's application, upper-case INFORMATION_SCHEMA, more than two replicas), as the RabbitMQ kind does. The change is additive: no existing kind's shape changed sdk/src/cloudfall/clickhouse.py holds the supported LTS series table, 26.3 (end of support 2027-03-27) and 26.8 (2027-08-30), plus the version (X.Y.Z.N), database and user name types config validate refuses each case under the spec's Validation with its code: service_clickhouse_version, _replicas, _keeper_servers, _server_shared, _environment, _remote_access, _database, service_database_owner_reserved, _unfirewalled, _server_unaddressed, the S-006 rule for a client source of every address (service_remote_access_open), and the S-014 storage-pool codes. It warns CLICKHOUSE_VERSION_ENDING naming the date (context endOfLife, as the other kinds) and CLICKHOUSE_SINGLE_REPLICA. Both come from clickhouse_warnings(config, today, table), so the tests pass the date and the table and never read the wall clock The rendered inventory carries the service, with replicas and keeper.servers resolved, on each replica and on the third voter, with its databases and their passwordRef, never a password. A project without ClickHouse renders byte-identical app.py: the RabbitMQ and ClickHouse warnings share one _warn_services helper (replaces _warn_rabbitmq, which nothing else used) Plan Serves: G-1, G-3 Files: config/schemas/v1/service.schema.json, sdk/src/cloudfall/domain.py, a new sdk/src/cloudfall/clickhouse.py, sdk/src/cloudfall/validation.py, sdk/src/cloudfall/inventory.py, sdk/src/cloudfall/app.py, engine/src/cloudfall_engine/ansible_inventory.py, new tests sdk/tests/clickhouse_project.py, sdk/tests/test_s022_clickhouse.py, engine/tests/test_s022_clickhouse_render.py, and changelog.d/566-clickhouse-declaration.md Order: the schema's spec.clickhouse and ServiceKind.CLICKHOUSE; the supported LTS series table (26.3 to 2027-03-27, 26.8 to 2027-08-30) and the version, database and user name types in clickhouse.py; the Validation refusals with their codes and the two warnings, with the clock and the table passed in; the typed ClickhouseService in the inventory, rendered on each replica and voter; tests per criterion; the changelog fragment Proof: S-022-1 (three servers validate with exit 0, the render carries two replicas, three voters, the database and its passwordRef, never the password), S-022-2 (the examples render byte-identical to the golden file, no clickhouse key), S-022-19 (each refusal under Validation exits CONFIG_INVALID with its code, 25.8.33.6 and 26.10.4.207 fail with service_clickhouse_version, CLICKHOUSE_VERSION_ENDING names the date on an injected clock and table, CLICKHOUSE_SINGLE_REPLICA for one replica in production) Tests changed: none Choices the spec leaves open No file under config/examples/services/: any service there joins the examples project, which would change its rendered inventory (S-022-2) and needs a third server. As in the RabbitMQ, MariaDB and Elasticsearch builds, the spec's declaration lives in the test fixture sdk/tests/clickhouse_project.py Production is the environment whose id is production; CLICKHOUSE_SINGLE_REPLICA is given for that one only Database and owner names are [A-Za-z][A-Za-z0-9_]*, up to 63 characters, case-sensitive, so INFORMATION_SCHEMA reaches its reserved-name code A database declared twice is refused with the existing service_database_duplicate, and one owner of two databases with service_clickhouse_database: the spec gives each owner privileges on its own database only The pool and firewall checks cover every server of the service, the third voter included (its clickhouse-keeper volume and Raft port); the mirrored-pool check covers the single replica only A replica claims bind.port; the third voter does not, since it runs Keeper only The kind's host requirements (S-011), its secrets check and its audit are not in this PR; they come with the role Test plan uv run pytest sdk/tests/test_s022_clickhouse.py engine/tests/test_s022_clickhouse_render.py: 77 new tests, green Also green: sdk/tests/test_s023_rabbitmq.py, sdk/tests/test_s019_mariadb.py, sdk/tests/test_s012_elasticsearch.py, sdk/tests/test_validation.py, sdk/tests/test_inventory.py, sdk/tests/test_examples_project.py, sdk/tests/test_compatibility_surface.py, sdk/tests/test_interface_changelog.py, sdk/tests/test_app.py, engine/tests/test_examples_render_unchanged.py, engine/tests/test_s023_rabbitmq_render.py, engine/tests/test_ansible_inventory.py (394 passed with the new ones) uv run ruff check . and uv run mypy: clean; ruff format --check passes on the new files specs.py coverage --spec 022 lists tests for S-022-1, S-022-2 and S-022-19; the others belong to later build issues The full suite is left to CI Fixes #566 🤖 Generated with Claude Code

Open Graph Description: Summary Adds serviceKind: clickhouse (spec 022): the declaration, its validation and the rendered inventory. Nothing converges the kind yet: services.yml already refuses a kind it has no role for, ...

X Description: Summary Adds serviceKind: clickhouse (spec 022): the declaration, its validation and the rendered inventory. Nothing converges the kind yet: services.yml already refuses a kind it has no role for, ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:0cbe2d82-855f-3740-9a45-f54a3bb7e0c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7B2:23AE4E:1961419:216A4A1:6B055919
html-safe-nonce3e236488cee4cf788785d5e3b91fa5dd0ee14ca644246b63e59e950c225d908c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0IyOjIzQUU0RToxOTYxNDE5OjIxNkE0QTE6NkIwNTU5MTkiLCJ2aXNpdG9yX2lkIjoiMTM0Njc2MTMwNDY4NTUwMDY5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3a8d114fee0599f2ab0149c8c5cbdc38c9ed01b13d10da063de6da4fd8c854dd
hovercard-subject-tagpull_request:5419572445
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/586/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 Adds serviceKind: clickhouse (spec 022): the declaration, its validation and the rendered inventory. Nothing converges the kind yet: services.yml already refuses a kind it has no role for, ...
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/586/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F586%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%2F586%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/586/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/586/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/586/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/566-clickhouse-declarationhttps://github.com/cloudfall-dev/cloudfall/tree/feat/566-clickhouse-declaration
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/586
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/586/commits
Checks 3 https://github.com/cloudfall-dev/cloudfall/pull/586/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/586/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/586/files
Declare and validate a ClickHouse service (S-022-1, S-022-2, S-022-19) https://github.com/cloudfall-dev/cloudfall/pull/586/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/586/files
c4c5a15 Declare and validate a ClickHouse service (S-022-1, S-022-2, S-022-19) shipmill-romamo[bot] Nov 20, 2026 https://github.com/cloudfall-dev/cloudfall/pull/586/commits/c4c5a1531eddc98c485d94faf587e6b72d21bf1a
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/586/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/586/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/586/files
566-clickhouse-declaration.md https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-e452a12890496f68ed4a69b52895a7b0e7ce4f5705661e3e0910016f53b07eb9
service.schema.json https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
ansible_inventory.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
test_s022_clickhouse_render.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-f1f76bfaa5903cf2e0ec1269b6807a6daa527f9c9bde81fa699b3f83e8da6d38
app.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
clickhouse.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-1a33d25c5b1bd650e8f78bf2c5fbe2fdc61dcbd15b7b457bf4d90c274e71c3a4
domain.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
inventory.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
validation.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
clickhouse_project.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-b26f71911041292028c655613c7d726f6f7508cf09aac0e1056d02c39fbd80c6
test_s022_clickhouse.py https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-108ca1a9b9b5d43e65c3d75590a30ebe7e35b6846ce77e00c9f1c8f130c69b9b
changelog.d/566-clickhouse-declaration.mdhttps://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-e452a12890496f68ed4a69b52895a7b0e7ce4f5705661e3e0910016f53b07eb9
View file https://github.com/cloudfall-dev/cloudfall/blob/c4c5a1531eddc98c485d94faf587e6b72d21bf1a/changelog.d/566-clickhouse-declaration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/586/{{ revealButtonHref }}
config/schemas/v1/service.schema.jsonhttps://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
View file https://github.com/cloudfall-dev/cloudfall/blob/c4c5a1531eddc98c485d94faf587e6b72d21bf1a/config/schemas/v1/service.schema.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/586/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-c1418f7736dfd0ea0973da67e5a03a2b30c85b06ef1ec4d82d1130bf5d0c62bc
engine/src/cloudfall_engine/ansible_inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
View file https://github.com/cloudfall-dev/cloudfall/blob/c4c5a1531eddc98c485d94faf587e6b72d21bf1a/engine/src/cloudfall_engine/ansible_inventory.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/586/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
engine/tests/test_s022_clickhouse_render.pyhttps://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-f1f76bfaa5903cf2e0ec1269b6807a6daa527f9c9bde81fa699b3f83e8da6d38
View file https://github.com/cloudfall-dev/cloudfall/blob/c4c5a1531eddc98c485d94faf587e6b72d21bf1a/engine/tests/test_s022_clickhouse_render.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/586/{{ revealButtonHref }}
sdk/src/cloudfall/app.pyhttps://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
View file https://github.com/cloudfall-dev/cloudfall/blob/c4c5a1531eddc98c485d94faf587e6b72d21bf1a/sdk/src/cloudfall/app.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/586/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/586/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/586/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.