Title: Agents and deploys log in with only the access they need, not as root · Issue #556 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Agents and deploys log in with only the access they need, not as root · Issue #556 · cloudfall-dev/cloudfall
X Title: Agents and deploys log in with only the access they need, not as root · Issue #556 · cloudfall-dev/cloudfall
Description: Serves: G-1 Problem An agent that only reads a host still logs in as root, so it can read every component's secrets. Every SshPublicKey goes into root's authorized_keys: "a runner, an operator and an agent all log in as root" (#195). The...
Open Graph Description: Serves: G-1 Problem An agent that only reads a host still logs in as root, so it can read every component's secrets. Every SshPublicKey goes into root's authorized_keys: "a runner, an operator and ...
X Description: Serves: G-1 Problem An agent that only reads a host still logs in as root, so it can read every component's secrets. Every SshPublicKey goes into root's authorized_keys: "a runner, an ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/556
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Agents and deploys log in with only the access they need, not as root","articleBody":"Serves: G-1\n\n## Problem\n\nAn agent that only reads a host still logs in as root, so it can read every component's secrets. Every `SshPublicKey` goes into root's `authorized_keys`: \"a runner, an operator and an agent all log in as root\" (#195). The isolation decision already says deploys should \"log in as a dedicated user with sudo limited to the commands a deploy runs\", but nothing builds that. In a real fleet, \"two agent sessions doing read-only checks printed two service passwords into their transcripts\", and neither a rule nor a hook could stop it: \"Only Linux permissions can\" (#195).\n\n## Who is affected\n\nOperators who let an agent run their fleet (U-2) and teams running deploys from CI (U-1): every key they install today is a root key, and every read-only check an agent runs can reach secrets.\n\n## Evidence\n\n- #195 Access profiles for SSH keys: an observer, operator and deploy user instead of root, +1 0\n\n1 request, +1 0 as of 2026-11-19.\n\n## Success\n\nOn a proving host, an `observer` key reads a component's journal but not its env file; an `operator` key restarts a declared component but not an undeclared unit, and can't run `systemctl edit`; a `deploy` key runs a deploy end to end; `cloudfall audit` flags a non-break-glass key in root's `authorized_keys`.\n\n## Notes\n\nThe request proposes `user` and `access` on `SshPublicKey`, generated sudoers with exact commands and no wildcards, env files kept `0600`, and an optional read-only PostgreSQL role per environment for S-006 databases. It changes the `SshPublicKey` schema and what the baseline converges to, so a spec would design it as a contract change. Related: `docs/decisions/2026-11-02-isolation-without-containers.md`.\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-19T19:29:14Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/556"}
| 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:747bc16f-c5b3-a740-21ee-b9e6b8bdb63d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B124:2FEFED:9AA87F:D5E1B2:6B059F01 |
| html-safe-nonce | 8ce0786b821b8d8d4bde9e243aa00954856e33e46fdb5b7aa96a9306d9ecb65d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTI0OjJGRUZFRDo5QUE4N0Y6RDVFMUIyOjZCMDU5RjAxIiwidmlzaXRvcl9pZCI6IjkwNzU4NzEzNzU5NDMwMjIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e75ee12425e6cfd030db9b6f43d8c80bb8ed7a7a55329df3a17fd66142366d7f |
| hovercard-subject-tag | issue:6497397219 |
| 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/556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2166af1ba7ea09765f2c58e521aac7a00e39a03442dbde3b0aab817c2a2915db/cloudfall-dev/cloudfall/issues/556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2166af1ba7ea09765f2c58e521aac7a00e39a03442dbde3b0aab817c2a2915db/cloudfall-dev/cloudfall/issues/556 |
| og:image:alt | Serves: G-1 Problem An agent that only reads a host still logs in as root, so it can read every component's secrets. Every SshPublicKey goes into root's authorized_keys: "a runner, an operator and ... |
| 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 | 8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139 |
| 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 | cda4791073b4da3005eb3d470dc0aef3956bbe34 |
| 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