René's URL Explorer Experiment


Title: Make the RabbitMQ restore drill's scratch tree as the rabbitmq user (#544) by shipmill-romamo[bot] · Pull Request #545 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Make the RabbitMQ restore drill's scratch tree as the rabbitmq user (#544) by shipmill-romamo[bot] · Pull Request #545 · cloudfall-dev/cloudfall

X Title: Make the RabbitMQ restore drill's scratch tree as the rabbitmq user (#544) by shipmill-romamo[bot] · Pull Request #545 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2, engine/tests/test_s023_rabbitmq_backup.py, changelog.d/544-restore-check-scratch-race.md Order: the failing test first (a stand-in runuser that acts as the rabbitmq user and a stand-in head that swaps the fresh scratch tree for a link), then the script makes, writes, reads and removes the scratch tree as the rabbitmq user Proof: test_root_writes_nothing_through_a_scratch_directory_swapped_for_a_link fails on the old script (the drill ran and root's writes landed through the link) and passes now; the rest of test_s023_rabbitmq_backup.py and test_s023_rabbitmq_role.py pass Summary cloudfall-rabbitmq-restore-check runs as root and builds its scratch directory under /var/lib/rabbitmq, which the rabbitmq user owns. Root made the directory, then wrote the cookie, the export (password hashes) and the configuration into it by path before a chown -R, so that user could rename the fresh directory and put a link in its place, and root's writes followed the link. Now root writes nothing below /var/lib/rabbitmq by path: the tree is made with runuser -u rabbitmq -- mkdir -m 0700 each file is streamed in through runuser -u rabbitmq -- tee, then given its mode as that user (the export, the configuration and the other files 0600, the cookie 0400); root only opens the export in its own backup directory the pid file is read as that user too teardown and the removal of a leftover tree run rm -rf as that user, and a link at the scratch path (a dangling one too) is removed, not followed; a leftover tree that user can't remove fails the drill with a message naming it the mktemp -d work directory for restored.json and console.log stays root's A link the rabbitmq user puts there now leads only its own writes. The decided path, node name, ports and watermark are unchanged. Test notes New: test_root_writes_nothing_through_a_scratch_directory_swapped_for_a_link. The stand-in runuser now refuses writes in a directory listed as protected (one only root could write), the way the kernel would for the real user. A stand-in head, the first tool the script runs after it makes the tree, renames the tree and links its name to that directory. The test asserts the drill fails with Permission denied, nothing new appears in the protected directory, the link is gone (not its target), no scratch node was started, and no secret is printed. On the old script the drill went on and root wrote the cookie, export and configuration into the protected directory New: test_a_dangling_link_left_at_the_scratch_path_is_removed_first uv run pytest engine/tests/test_s023_rabbitmq_backup.py engine/tests/test_s023_rabbitmq_role.py: 49 passed uv run ruff check ., uv run mypy and ansible-lint engine/ansible: clean The full suite is left to CI Unverified on a live host: runuser with a real rabbitmq user. GNU tee, chmod, mkdir and rm run as that user, which owns /var/lib/rabbitmq, so it can make and remove the tree Fixes #544 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2, engine/tests/test_s023_rabbitmq_backup.py, changelog.d/544-restore-check-scratch-race.md Orde...

X Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2, engine/tests/test_s023_rabbitmq_backup.py, changelog.d/544-restore-check-scratch-race.md Orde...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

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:fe5d0f1d-025a-7c70-2fd7-6c694c79fc94
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFEE:33B184:1DCF2AF:283AB4A:6B055A0F
html-safe-nonceafc8d47dd353ef761697442614b82a820a8bf14ee705a21063e1c42ebdd9700f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkVFOjMzQjE4NDoxRENGMkFGOjI4M0FCNEE6NkIwNTVBMEYiLCJ2aXNpdG9yX2lkIjoiNDgwMTc2MDAyNTU0MDY0NzQzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdc4d25719315ae805f043b64e2eb7726d043a4199829c251da19834548acb91a
hovercard-subject-tagpull_request:5377435801
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/545/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:altPlan Serves: quality bar Files: engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2, engine/tests/test_s023_rabbitmq_backup.py, changelog.d/544-restore-check-scratch-race.md Orde...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
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
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/545/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F545%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%2F545%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/545/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/545/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/545/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/544-restore-check-scratch-racehttps://github.com/cloudfall-dev/cloudfall/tree/fix/544-restore-check-scratch-race
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/545
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/545/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/545/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/545/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/545/files
Make the RabbitMQ restore drill's scratch tree as the rabbitmq user (#544) https://github.com/cloudfall-dev/cloudfall/pull/545/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/545/files
751d8a6 Make the RabbitMQ restore drill's scratch tree as the rabbitmq user shipmill-romamo[bot] Nov 18, 2026 https://github.com/cloudfall-dev/cloudfall/pull/545/commits/751d8a61e4debbef21565ce374f33be6a3dee7b3
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/545/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/545/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/545/files
544-restore-check-scratch-race.md https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-c26a595c41bf5901e70242d9f21791c03e9d872cd0c623e8d5d682a747d58422
restore-check.sh.j2 https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
test_s023_rabbitmq_backup.py https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
changelog.d/544-restore-check-scratch-race.mdhttps://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-c26a595c41bf5901e70242d9f21791c03e9d872cd0c623e8d5d682a747d58422
View file https://github.com/cloudfall-dev/cloudfall/blob/751d8a61e4debbef21565ce374f33be6a3dee7b3/changelog.d/544-restore-check-scratch-race.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/545/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
View file https://github.com/cloudfall-dev/cloudfall/blob/751d8a61e4debbef21565ce374f33be6a3dee7b3/engine/ansible/roles/cloudfall_rabbitmq/templates/restore-check.sh.j2
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/545/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-63384ca42d718c02df7219ca1b7e383efcb0274491a5cf6f363839c929d2ffe6
engine/tests/test_s023_rabbitmq_backup.pyhttps://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
View file https://github.com/cloudfall-dev/cloudfall/blob/751d8a61e4debbef21565ce374f33be6a3dee7b3/engine/tests/test_s023_rabbitmq_backup.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/545/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
https://github.com/cloudfall-dev/cloudfall/pull/545/files#diff-89e88fda6d1764842b09ea8c33b31e7004386df0743f05bdb5891c9be20818af
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/545/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.