Title: An approval is not bound to what was proposed: the playbook, roles and diff can change before the run · Issue #352 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: An approval is not bound to what was proposed: the playbook, roles and diff can change before the run · Issue #352 · cloudfall-dev/cloudfall
X Title: An approval is not bound to what was proposed: the playbook, roles and diff can change before the run · Issue #352 · cloudfall-dev/cloudfall
Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem The docstring of approve() in sdk/src/cloudfall/decision.py (about line 842) says "the playbook, the targets and the inputs cannot change between the diff a human read and t...
Open Graph Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem The docstring of approve() in sdk/src/cloudfall/decision.py (about line 842) says "the playbook, the targets and the inputs cannot ch...
X Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem The docstring of approve() in sdk/src/cloudfall/decision.py (about line 842) says "the playbook, the targets and the inputs cann...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/352
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"An approval is not bound to what was proposed: the playbook, roles and diff can change before the run","articleBody":"Found in a whole-project review at 03e2faa (0.8.0rc45).\n\n## Problem\n\nThe docstring of `approve()` in `sdk/src/cloudfall/decision.py` (about line 842) says \"the playbook, the targets and the inputs cannot change between the diff a human read and the run that follows it\". The code does not hold that:\n\n- The record keeps the playbook's path, not its content hash or a git commit. `approve()` runs whatever is at that path now\n- Roles, templates and inventory the playbook reads are not pinned either\n- The diff's sha256 is recorded at propose time and never compared again at approve time\n\nEdit the playbook, a role or the inventory after the proposal, approve, and the run executes something the approver never saw. The record still shows the old diff as what was approved.\n\n## Proposal\n\n- At propose time record the git HEAD of the project (and refuse a dirty tree for the paths the run reads), plus the playbook's content hash\n- At approve time re-check both and the diff file's sha256; refuse with a distinct error when any differs, and ask for a new proposal\n- Tests: a playbook changed between propose and approve is refused; a diff file changed on disk is refused\n- Correct the docstring until this is built\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-15T16:02:22Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/352"}
| 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:3f8d690d-da3f-8228-9da8-37548d492cbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9058:31E3E4:27E7B1D:34794D8:6B055C4B |
| html-safe-nonce | 2bd0c034118b0e925c2f17ff53f1a35184fb9dd76ccd845a7821c5f6dc6f57bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDU4OjMxRTNFNDoyN0U3QjFEOjM0Nzk0RDg6NkIwNTVDNEIiLCJ2aXNpdG9yX2lkIjoiNTE0NDU3Mzk1MDMzMTAzNDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa5415cd8840f2450cd248527e85866e6f1dfb802395776e10526042f80a3bf5 |
| hovercard-subject-tag | issue:6406204345 |
| 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/352/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee4930cdf2bc7cda1c3e1a6fe270b45a2f3c9eceff166425e3a21068a9182829/cloudfall-dev/cloudfall/issues/352 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee4930cdf2bc7cda1c3e1a6fe270b45a2f3c9eceff166425e3a21068a9182829/cloudfall-dev/cloudfall/issues/352 |
| og:image:alt | Found in a whole-project review at 03e2faa (0.8.0rc45). Problem The docstring of approve() in sdk/src/cloudfall/decision.py (about line 842) says "the playbook, the targets and the inputs cannot ch... |
| 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