Title: Connections between components and stores, with a generated user per connection · Issue #216 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Connections between components and stores, with a generated user per connection · Issue #216 · cloudfall-dev/cloudfall
X Title: Connections between components and stores, with a generated user per connection · Issue #216 · cloudfall-dev/cloudfall
Description: Requested by: @romamo Problem A fleet that runs its own stores (a MariaDB Galera cluster, ClickHouse, RabbitMQ) shares one user and one password per store across every service and host. The password is copied into every service's environ...
Open Graph Description: Requested by: @romamo Problem A fleet that runs its own stores (a MariaDB Galera cluster, ClickHouse, RabbitMQ) shares one user and one password per store across every service and host. The passwor...
X Description: Requested by: @romamo Problem A fleet that runs its own stores (a MariaDB Galera cluster, ClickHouse, RabbitMQ) shares one user and one password per store across every service and host. The passwor...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/216
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Connections between components and stores, with a generated user per connection","articleBody":"Requested by: @romamo\n\n## Problem\n\nA fleet that runs its own stores (a MariaDB Galera cluster, ClickHouse, RabbitMQ) shares one user and one password per store across every service and host. The password is copied into every service's environment fragment, so a rotation is a hand edit per copy, a missed copy keeps the old value alive, and one host cannot be revoked without breaking the rest.\n\nCloudfall cannot describe this today:\n\n- A `Component` cannot say which store it connects to or with what rights; it only names fragments in `secretRefs`\n- `Service` kinds are `postgresql` and `redis` only\n- Nothing creates a store user, generates its password or reports a user that drifted\n- `secrets render` needs a declared `Component`, so a service Cloudfall does not deploy gets no rendered file\n- Health checks are HTTP only\n\nOne more fact, read in 0.7.0 (`sdk/src/cloudfall/secrets.py`, `render_environment`; the same on `main` at `611a057`): when two referenced fragments set the same key, the later one wins silently. Only a key that is also in the component's plain `environment` fails with `secrets_key_conflict`.\n\n## Proposal\n\n1. **`connections` on a `Component`**: each names a store `Service` and a privilege profile, with a template for the environment keys it renders (user, password, host, vhost or database)\n2. **`Service` kinds `mariadb-galera`, `clickhouse` and `rabbitmq`**, observed first: declared and read before Cloudfall manages them\n3. **A user provider per kind**: create the user, grant its profile, generate the password straight into a sops fragment, rotate by generation (a new user name, then the old one dropped), and report drift (users in the store that the declaration does not have)\n4. **`secretRefs`**: fail on a duplicate key across fragments unless a ref says it overrides\n5. **Rendering for services Cloudfall does not deploy**: render and install the file at an existing path and audit that file\n6. **Non-HTTP health checks**, such as a Celery ping\n\nItems 5 and 6 are gaps already known; they are listed so the proposal is whole. Related: #81 (a `Service` without an application Cloudfall deploys).\n\n## Alternatives\n\nWhat the fleet does now: a plain `access.yml` with its own validator, three provider scripts (`plan`, `apply`) and an Ansible playbook that renders an ordered list of fragments, all in the private fleet repository. Nothing there waits on this proposal; it is the shape the fleet would move onto.\n\n## Source\n\nThe table this proposal is built from, verbatim, from `private-repo-c/docs/specs/2026-11-11-access-schema.md` at commit `460dbe1` (a private repository; tracking issue private-repo-c#295). The numbers inside it are issues of that repository.\n\n````markdown\n| Need | Added in `atlas-fleet` now | Proposed to Cloudfall |\n|---|---|---|\n| Connections between components and stores | `access.yml` and its validator | `connections` on a `Component`: a store `Service` and a profile, with an env template |\n| Store kinds | `stores:` in `access.yml` | `Service` kinds `mariadb-galera`, `clickhouse`, `rabbitmq`, observed first (D-14 step 5 keeps adoption last) |\n| Users and grants | Three providers (`plan`, `apply`) | A user provider per kind: create user, profile grants, generated password into sops, rotation by generation, drift report |\n| Several fragments per service | The playbook's ordered list | Already there (`secretRefs`, A2); proposed: fail on a duplicate key unless a ref says it overrides |\n| Rendering for services Cloudfall does not deploy | The playbook | Already a gap in the secret store spec: render and install at an existing path, audit that file |\n| Non-HTTP health checks | Celery ping in the playbook (#294 h5 PR) | Already a gap in the target architecture (Celery pools) |\n````\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-13T07:54:37Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/216"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b8555db8-8913-2e49-8165-8919ae60db2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C848:64B1C:3A2325:4E9199:6B0558AB |
| html-safe-nonce | 90e7b2eb9f10b4279f1a574789b7f6ab04a92081c5a530d7215508d32f9f5328 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODQ4OjY0QjFDOjNBMjMyNTo0RTkxOTk6NkIwNTU4QUIiLCJ2aXNpdG9yX2lkIjoiMTIyNDUyOTM1MjkzOTg4Njc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9200508acd5233b06fe895bd27d468c625d97337501d2839b1404d6fcab21141 |
| hovercard-subject-tag | issue:6367256825 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5136cb3b6dd8c4d7b713eb6f5bee2359efaffc40b346bee226ec12315595c082/cloudfall-dev/cloudfall/issues/216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5136cb3b6dd8c4d7b713eb6f5bee2359efaffc40b346bee226ec12315595c082/cloudfall-dev/cloudfall/issues/216 |
| og:image:alt | Requested by: @romamo Problem A fleet that runs its own stores (a MariaDB Galera cluster, ClickHouse, RabbitMQ) shares one user and one password per store across every service and host. The passwor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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 |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width