Title: A component's command values are Ansible-templated on the management host · Issue #174 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A component's command values are Ansible-templated on the management host · Issue #174 · cloudfall-dev/cloudfall
X Title: A component's command values are Ansible-templated on the management host · Issue #174 · cloudfall-dev/cloudfall
Description: Found in the review of #170. The problem A component's service.command and healthCheck.command reach the cloudfall_deploy role as Ansible variables, and Ansible templates them. A value holding {{ ... }} is evaluated on the management hos...
Open Graph Description: Found in the review of #170. The problem A component's service.command and healthCheck.command reach the cloudfall_deploy role as Ansible variables, and Ansible templates them. A value holding {{ ....
X Description: Found in the review of #170. The problem A component's service.command and healthCheck.command reach the cloudfall_deploy role as Ansible variables, and Ansible templates them. A value holding ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/174
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A component's command values are Ansible-templated on the management host","articleBody":"Found in the review of #170.\n\n## The problem\n\nA component's `service.command` and `healthCheck.command` reach the `cloudfall_deploy` role as Ansible variables, and Ansible templates them. A value holding `{{ ... }}` is evaluated on the management host while the role checks its arguments, before any task runs on a server.\n\n## Reproduce\n\nDeclare a component with `service.command: [/bin/true, \"{{ lookup('pipe', 'touch /tmp/pwned') }}\"]` (or the same in a `type: command` `healthCheck.command`), then run `cloudfall health` for it. `/tmp/pwned` appears on the management host. The reviewer reproduced it on `health.yml` for both fields.\n\n## Why it matters\n\nAnyone who can change the project's config, an agent included, runs commands on the management host with the operator's rights, outside any gate (Q-2). It also breaks honest commands: a health check like `docker inspect --format {{.State.Health.Status}} app` can't be declared.\n\n#134 fixed the same class of bug for `data copy --source-schema` names by refusing braces.\n\n## Proposed fix\n\nPass these values to Ansible so they are never templated (mark them unsafe in the rendered inventory or extra vars, for example with `!unsafe`), so a literal `{{` reaches the unit file and the check as written. Refusing braces in the schema is the fallback if marking them unsafe can't hold on every path. Check every other config string that reaches Ansible the same way (environment values, build steps, release commands).\n\nRelated: #164 (the command health check's engine side), spec `docs/specs/009-command-health-check.md`.\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-30T14:36:59Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/174"}
| 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:1c27a2e3-ecd0-e8b1-e4c8-1b2650ed6bcd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A06:1FFF:A77539:E5B075:6B0554D9 |
| html-safe-nonce | f57957f702a8468fbd2eb094c740d25f2e6e2211406732d336e4b2d1be5b940c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTA2OjFGRkY6QTc3NTM5OkU1QjA3NTo2QjA1NTREOSIsInZpc2l0b3JfaWQiOiI3MDUyOTAxMDIxMzA3NDU4Nzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8d3ef5ed35f504c982ceff50f675bb4087b0ac435671c7d28f4f8edcb94e2617 |
| hovercard-subject-tag | issue:6121109876 |
| 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/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e55764b27d859f11548464c427858538918ce6655fc2624f7fd0285a0ccac22d/cloudfall-dev/cloudfall/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e55764b27d859f11548464c427858538918ce6655fc2624f7fd0285a0ccac22d/cloudfall-dev/cloudfall/issues/174 |
| og:image:alt | Found in the review of #170. The problem A component's service.command and healthCheck.command reach the cloudfall_deploy role as Ansible variables, and Ansible templates them. A value holding {{ .... |
| 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 | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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