René's URL Explorer Experiment


Title: Hand catalog inputs to the team's playbook as data, never as templates (#181) by shipmill-romamo[bot] · Pull Request #189 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Hand catalog inputs to the team's playbook as data, never as templates (#181) by shipmill-romamo[bot] · Pull Request #189 · cloudfall-dev/cloudfall

X Title: Hand catalog inputs to the team's playbook as data, never as templates (#181) by shipmill-romamo[bot] · Pull Request #189 · cloudfall-dev/cloudfall

Description: Summary An approved catalog operation's inputs reached the team's own playbook as plain --extra-vars JSON (run_command in sdk/src/cloudfall/decision.py), and Ansible templates extra-var values: an input holding {{ lookup('pipe', 'touch /tmp/x') }} ran on the management host with the operator's rights when the playbook started, and an honest input holding {{ broke the run. run_command marks every input string unsafe with cloudfall.ansible_data.as_ansible_data (the helper #179 added for the rendered inventory), so the playbook gets the text as written; integers and booleans keep their types. This is the one place that builds the inputs' --extra-vars, used by operations propose (check mode), decisions approve (run and verify) and agent investigate, which proposes through it The replay (recording._invocation) reads the argv back with object_hook=unmarked, so its key matches the unmarked inputs a recording keeps. Recordings store the decision record's spec.inputs, which stay unmarked, so a recording made before this change and one made after match the same live invocation The decision record's stored inputs, its schema, and the D-1/D-7 proposal matching (which compares the stored inputs) are unchanged; only the argv form changes The SDK's own extra vars for the engine playbooks are out of scope, as #179 left them Behaviour change: a team playbook that relied on an input being evaluated as Jinja now gets the literal text. Plan Serves: quality bar Files: sdk/src/cloudfall/decision.py, sdk/src/cloudfall/recording.py, sdk/tests/test_decision.py, sdk/tests/test_host_stats.py, changelog.d/181-catalog-inputs-as-data.md Order: a failing test first (a real ansible-playbook run of a proposal whose string input holds {{ lookup('pipe', 'touch ') }}, plus integer and boolean inputs), then mark the inputs with as_ansible_data in run_command, then read them back with object_hook=unmarked in the replay's _invocation Proof: the new test fails on main (the marker is created) and passes after; the existing replay test (test_a_replay_leaves_what_the_callback_would_have_written) keeps matching a recording; a new replay test matches a recording against a live invocation with a {{ input Test plan test_inputs_reach_the_playbook_as_data_never_as_templates (new, sdk/tests/test_decision.py): runs a real ansible-playbook through propose; fails on main (marker created), passes with the fix; the play sees the literal payload, 3 as an integer and true as a boolean test_a_replay_matches_inputs_holding_jinja_as_recorded (new, sdk/tests/test_host_stats.py) and the existing replay test both fail when the object_hook=unmarked read is removed, and pass with it uv run ruff check ., uv run mypy: clean. uv run ruff format --check . reports 72 files on main already (not a CI step); the lines this PR adds are formatted uv run pytest sdk/tests/test_decision.py sdk/tests/test_host_stats.py sdk/tests/test_investigation.py sdk/tests/test_operator.py: 194 passed uv run pytest engine/tests: 319 passed, 1 skipped The full suite is left to CI Fixes #181 🤖 Generated with Claude Code

Open Graph Description: Summary An approved catalog operation's inputs reached the team's own playbook as plain --extra-vars JSON (run_command in sdk/src/cloudfall/decision.py), and Ansible templates extra-var val...

X Description: Summary An approved catalog operation's inputs reached the team's own playbook as plain --extra-vars JSON (run_command in sdk/src/cloudfall/decision.py), and Ansible templates extra...

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

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:d3aa9e07-03ba-fddf-5a9e-ca9d0b950fef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AB0:FCC28:FD3861:15A10FD:6B055CE3
html-safe-noncee6c7836a9655e896d71c7fd7b6812785592ec40c419ecd759e990ef7a553c823
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUIwOkZDQzI4OkZEMzg2MToxNUExMEZEOjZCMDU1Q0UzIiwidmlzaXRvcl9pZCI6IjYwMzI2NjM4NTk3NzE1NjMyMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace61282d5e4fefa4ba1f2729f2609161daf34011c5a738ac58c7c277b9ac67192
hovercard-subject-tagpull_request:5095708309
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/189/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 An approved catalog operation's inputs reached the team's own playbook as plain --extra-vars JSON (run_command in sdk/src/cloudfall/decision.py), and Ansible templates extra-var val...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
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
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/189/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F189%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%2F189%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/189/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/189/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/189/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
fix/181-catalog-inputs-as-datahttps://github.com/cloudfall-dev/cloudfall/tree/fix/181-catalog-inputs-as-data
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/189
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/189/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/189/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/189/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/189/files
Hand catalog inputs to the team's playbook as data, never as templates (#181) https://github.com/cloudfall-dev/cloudfall/pull/189/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/189/files
d72e8ed Hand catalog inputs to the team's playbook as data, never as template… shipmill-romamo[bot] Oct 31, 2026 https://github.com/cloudfall-dev/cloudfall/pull/189/commits/d72e8ede4339806420d0d5925249aeffaac1f722
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/189/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/189/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/189/files
181-catalog-inputs-as-data.md https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-f8d384b33605a8b6859ebdd20627771d64b85afe5378d19a7484d9c849c8afa0
decision.py https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
recording.py https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
test_decision.py https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
test_host_stats.py https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-81467b4f444b6166ee316b0e96af686b7e862e880dbf9da8ee9e7505a7573be0
changelog.d/181-catalog-inputs-as-data.mdhttps://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-f8d384b33605a8b6859ebdd20627771d64b85afe5378d19a7484d9c849c8afa0
View file https://github.com/cloudfall-dev/cloudfall/blob/d72e8ede4339806420d0d5925249aeffaac1f722/changelog.d/181-catalog-inputs-as-data.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/189/{{ revealButtonHref }}
sdk/src/cloudfall/decision.pyhttps://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
View file https://github.com/cloudfall-dev/cloudfall/blob/d72e8ede4339806420d0d5925249aeffaac1f722/sdk/src/cloudfall/decision.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/189/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
sdk/src/cloudfall/recording.pyhttps://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
View file https://github.com/cloudfall-dev/cloudfall/blob/d72e8ede4339806420d0d5925249aeffaac1f722/sdk/src/cloudfall/recording.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/189/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-a32db258b010b50ef3a555d9899eed3c88217d94079c45aaa651d8a91dcd0edb
sdk/tests/test_decision.pyhttps://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
View file https://github.com/cloudfall-dev/cloudfall/blob/d72e8ede4339806420d0d5925249aeffaac1f722/sdk/tests/test_decision.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/189/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
sdk/tests/test_host_stats.pyhttps://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-81467b4f444b6166ee316b0e96af686b7e862e880dbf9da8ee9e7505a7573be0
View file https://github.com/cloudfall-dev/cloudfall/blob/d72e8ede4339806420d0d5925249aeffaac1f722/sdk/tests/test_host_stats.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/189/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-81467b4f444b6166ee316b0e96af686b7e862e880dbf9da8ee9e7505a7573be0
https://github.com/cloudfall-dev/cloudfall/pull/189/files#diff-81467b4f444b6166ee316b0e96af686b7e862e880dbf9da8ee9e7505a7573be0
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/189/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.