René's URL Explorer Experiment


Title: Create the backup root root-owned 0755 before each service's directory by shipmill-romamo[bot] · Pull Request #345 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Create the backup root root-owned 0755 before each service's directory by shipmill-romamo[bot] · Pull Request #345 · cloudfall-dev/cloudfall

X Title: Create the backup root root-owned 0755 before each service's directory by shipmill-romamo[bot] · Pull Request #345 · cloudfall-dev/cloudfall

Description: Summary On a host with both a PostgreSQL and a Redis service (h1 in config/examples), the Redis backup failed with Permission denied. Each service role created its own backup directory under /var/backups/cloudfall with ansible.builtin.file, which creates a missing parent with the leaf's owner and mode, so the first role to run (PostgreSQL) left the root postgres:postgres 0700. The PostgreSQL, Redis and Elasticsearch roles (every role that creates a directory under the backup root) now create the root itself, root:root 0755, right before their own directory, from a role default cloudfall__backup_root: /var/backups/cloudfall. Because the task sets owner and mode, the next services converge also repairs a host whose root is already postgres-owned. The task runs only when the service's declared backup.directory sits under that root, so a directory declared elsewhere leaves /var/backups/cloudfall alone. Each service's own directory keeps its owner and mode (postgres and redis 0700, elasticsearch 0750), and the backup and restore-check scripts and timers still read backup.directory, unchanged. Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_postgresql/{defaults,tasks}/main.yml, engine/ansible/roles/cloudfall_redis/{defaults,tasks}/main.yml, engine/ansible/roles/cloudfall_elasticsearch/defaults/main.yml, engine/ansible/roles/cloudfall_elasticsearch/tasks/snapshots.yml, engine/tests/test_backup_root.py, changelog.d/342-backup-root-dir.md Order: a failing test that renders each role's directory tasks for the services config/examples declares on h1 and requires a root:root 0755 backup root before each service's own directory; then the root task and its default in each role Proof: engine/tests/test_backup_root.py (both h1 services get the root first, their own directories keep owner and 0700, Elasticsearch too, a directory outside the root leaves it alone); the PostgreSQL, Elasticsearch, component-hosts and examples golden-render tests still pass Test notes uv run pytest engine/tests/test_backup_root.py engine/tests/test_component_hosts.py engine/tests/test_examples_render_unchanged.py engine/tests/test_postgresql_*.py engine/tests/test_s012_elasticsearch_*.py engine/tests/test_services_passwords.py: all pass On main the new tests fail: the roles have no backup-root default and no Create the backup root task uv run ruff check ., uv run mypy, uv run cloudfall config validate --project config/examples: pass uv run ansible-lint was refused by the session's hook, so it is left to CI Not exercised on a live host here: the Debian converge job in #338 is the live proof The full suite is left to CI Fixes #342 🤖 Generated with Claude Code

Open Graph Description: Summary On a host with both a PostgreSQL and a Redis service (h1 in config/examples), the Redis backup failed with Permission denied. Each service role created its own backup directory under /var/b...

X Description: Summary On a host with both a PostgreSQL and a Redis service (h1 in config/examples), the Redis backup failed with Permission denied. Each service role created its own backup directory under /var/b...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:649cfcd8-cee7-80f5-6696-205ab5a96623
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE078:1F9C:426B1E:5F905F:6B05592E
html-safe-noncedc57a7849115edcde6a19a70564c4f1a50355f517147789daba36e5dc9f3308d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDc4OjFGOUM6NDI2QjFFOjVGOTA1Rjo2QjA1NTkyRSIsInZpc2l0b3JfaWQiOiIzOTIzNzIwMTg1OTc0MTg0MjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8d0918911b6b6762a07979c802b4e5c0739ea8094bcff9b1bdc32bcca7fe6b0f
hovercard-subject-tagpull_request:5321543306
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/345/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 On a host with both a PostgreSQL and a Redis service (h1 in config/examples), the Redis backup failed with Permission denied. Each service role created its own backup directory under /var/b...
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/345/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F345%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%2F345%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/345/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/345/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/345/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/342-backup-root-dirhttps://github.com/cloudfall-dev/cloudfall/tree/fix/342-backup-root-dir
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/345
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/345/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/345/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/345/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/345/files
Create the backup root root-owned 0755 before each service's directory https://github.com/cloudfall-dev/cloudfall/pull/345/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/345/files
e36664c Create the backup root root-owned 0755 before each service's directory shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/345/commits/e36664cb56011432eba68b457c2b1524f7a2f89d
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/345/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/345/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/345/files
342-backup-root-dir.md https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-85b975380723c48502f37c60e2291a60331e9e71dffe2be0adde01045fdf473b
main.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f694c0a5c8f0fd52004805822f1d9d75b82d5bfdbd4c015972e81356286e8faa
snapshots.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-b87e29b0b41b3b2ff606a3d75d523155fec720b89ca3b7c2b046ad71551b9eb9
main.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-3e2b6e432b0e689604b1760fe06c3269ae4d911e5a6012d17e24f71d04ae67b8
main.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-222aae9cb38f9155023dd5a38041e3a078124cab5683bc89814291d3dde65683
main.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f629914a69825a631a2c08be8a22ba972fbeaefab58539237ae00635c89b7915
main.yml https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-aba6f405c54316c4b1ab848b6df7a8db4634986d8032d1d97b6ba13f28bd0f60
test_backup_root.py https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-4465b6067f01df7e262a3988358e13eda79bde76885973fd9e5b30a4563354a7
changelog.d/342-backup-root-dir.mdhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-85b975380723c48502f37c60e2291a60331e9e71dffe2be0adde01045fdf473b
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/changelog.d/342-backup-root-dir.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_elasticsearch/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f694c0a5c8f0fd52004805822f1d9d75b82d5bfdbd4c015972e81356286e8faa
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_elasticsearch/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f694c0a5c8f0fd52004805822f1d9d75b82d5bfdbd4c015972e81356286e8faa
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f694c0a5c8f0fd52004805822f1d9d75b82d5bfdbd4c015972e81356286e8faa
engine/ansible/roles/cloudfall_elasticsearch/tasks/snapshots.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-b87e29b0b41b3b2ff606a3d75d523155fec720b89ca3b7c2b046ad71551b9eb9
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_elasticsearch/tasks/snapshots.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-b87e29b0b41b3b2ff606a3d75d523155fec720b89ca3b7c2b046ad71551b9eb9
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-b87e29b0b41b3b2ff606a3d75d523155fec720b89ca3b7c2b046ad71551b9eb9
engine/ansible/roles/cloudfall_postgresql/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-3e2b6e432b0e689604b1760fe06c3269ae4d911e5a6012d17e24f71d04ae67b8
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_postgresql/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-3e2b6e432b0e689604b1760fe06c3269ae4d911e5a6012d17e24f71d04ae67b8
engine/ansible/roles/cloudfall_postgresql/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-222aae9cb38f9155023dd5a38041e3a078124cab5683bc89814291d3dde65683
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_postgresql/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-222aae9cb38f9155023dd5a38041e3a078124cab5683bc89814291d3dde65683
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-222aae9cb38f9155023dd5a38041e3a078124cab5683bc89814291d3dde65683
engine/ansible/roles/cloudfall_redis/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-f629914a69825a631a2c08be8a22ba972fbeaefab58539237ae00635c89b7915
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_redis/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_redis/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-aba6f405c54316c4b1ab848b6df7a8db4634986d8032d1d97b6ba13f28bd0f60
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/ansible/roles/cloudfall_redis/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-aba6f405c54316c4b1ab848b6df7a8db4634986d8032d1d97b6ba13f28bd0f60
https://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-aba6f405c54316c4b1ab848b6df7a8db4634986d8032d1d97b6ba13f28bd0f60
engine/tests/test_backup_root.pyhttps://github.com/cloudfall-dev/cloudfall/pull/345/files#diff-4465b6067f01df7e262a3988358e13eda79bde76885973fd9e5b30a4563354a7
View file https://github.com/cloudfall-dev/cloudfall/blob/e36664cb56011432eba68b457c2b1524f7a2f89d/engine/tests/test_backup_root.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/345/{{ revealButtonHref }}
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/345/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.