René's URL Explorer Experiment


Title: Keep Alloy starting when an Elasticsearch exporter credential is gone by shipmill-romamo[bot] · Pull Request #328 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Keep Alloy starting when an Elasticsearch exporter credential is gone by shipmill-romamo[bot] · Pull Request #328 · cloudfall-dev/cloudfall

X Title: Keep Alloy starting when an Elasticsearch exporter credential is gone by shipmill-romamo[bot] · Pull Request #328 · cloudfall-dev/cloudfall

Description: Summary With metrics.enabled on an Elasticsearch service, the Alloy drop-in loaded the node's cloudfall password (and, with remoteAccess, the project CA) with a bare LoadCredential= on an absolute path. When that file went away after logging deploy (the service removed from the project, its files cleaned up), systemd refused to start alloy.service on its next restart, so every log and host metric from the host stopped. The drop-in now pairs each LoadCredential= with a SetCredential= of the same ID holding a single newline. systemd documents that pairing as a default: when the file can't be read the missing file is not fatal and the credential holds the fallback instead (load_credential() in src/core/execute.c on v252, src/core/exec-credential.c on v257; an empty SetCredential=ID: is dropped by the parser, hence the newline). The credential stays a systemd credential only Alloy sees (D-10). The fallback is also safe for Alloy 1.17.1, which the stack pins: its Elasticsearch exporter trims the password file to an empty password and ignores a CA file without a PEM block, so it starts and only its own scrapes fail. A missing file was worse than a failed load: a missing password file fails Alloy's initial load, and a missing CA file hits log.Fatalf in the exporter's createTLSConfig, which exits the whole process. Now the credential file always exists, so neither can happen. Removing an Elasticsearch service: Cloudfall has no remove path for services, so taking one out of the project is what removes it. The next logging deploy renders neither its exporter block nor its credential lines, and the preflight that requires the node's files no longer looks for them. Until then, the old drop-in still starts Alloy because of the fallback. The preflight that refuses logging deploy while the node's files are missing stays. Without it, a collector deployed before its node would send an empty password and fail quietly. Its comment now says why it is kept. Plan Serves: quality bar (Q-1) Files: engine/ansible/roles/cloudfall_logging_collector/templates/alloy-systemd-override.conf.j2, engine/ansible/roles/cloudfall_logging_collector/tasks/main.yml (comment), engine/tests/test_s012_elasticsearch_access.py, changelog.d/326-alloy-optional-es-credential.md Order: a test that every LoadCredential= in the rendered drop-in has a non-empty SetCredential= fallback with the same ID, and that removing the service drops its exporter and credential lines (fails on main); then the template change; then the comments and the changelog fragment Proof: uv run pytest engine/tests/test_s012_elasticsearch_access.py engine/tests/test_logging_templates.py, plus ruff, mypy, ansible-lint and cloudfall config validate --project config/examples Test plan New test test_a_missing_exporter_credential_falls_back_instead_of_stopping_alloy renders the drop-in with a loopback node and with a remoteAccess node. It checks that each LoadCredential= ID has a SetCredential=:\n fallback, and that without the service neither the drop-in nor config.alloy mention it. It fails on main (no SetCredential=) uv run pytest engine/tests/test_s012_elasticsearch_access.py engine/tests/test_logging_templates.py uv run ruff check ., uv run mypy and uv run cloudfall config validate --project config/examples pass. uv run ansible-lint engine/ansible was refused by the headless session's hook (#325 tracks that), so it is left to CI The full suite is left to CI Not run here: a live systemctl restart alloy on a host with the password file deleted. The systemd behaviour was checked against the v252 and v257 sources and man page, and the Alloy behaviour against the v1.17.1 source Fixes #326 🤖 Generated with Claude Code

Open Graph Description: Summary With metrics.enabled on an Elasticsearch service, the Alloy drop-in loaded the node's cloudfall password (and, with remoteAccess, the project CA) with a bare LoadCredential= on an absol...

X Description: Summary With metrics.enabled on an Elasticsearch service, the Alloy drop-in loaded the node's cloudfall password (and, with remoteAccess, the project CA) with a bare LoadCredential= on an a...

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

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:aa8a09be-7c2f-3376-888f-a112234bf1af
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9082:28EBDB:1DE9646:287CC9D:6B055CF5
html-safe-nonce1661160ba5f34311f246840fe264b5ae093057bb02e9c987ce90b652544c2ef9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDgyOjI4RUJEQjoxREU5NjQ2OjI4N0NDOUQ6NkIwNTVDRjUiLCJ2aXNpdG9yX2lkIjoiMjA1ODk2NzY5ODEyOTY0MDY5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac700d9adffd529a96acafde687aedb00039c9e81c31da4e21652b107ca4966b32
hovercard-subject-tagpull_request:5313851624
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/328/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 With metrics.enabled on an Elasticsearch service, the Alloy drop-in loaded the node's cloudfall password (and, with remoteAccess, the project CA) with a bare LoadCredential= on an absol...
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/328/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F328%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%2F328%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/328/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/328/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/328/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/326-alloy-optional-es-credentialhttps://github.com/cloudfall-dev/cloudfall/tree/fix/326-alloy-optional-es-credential
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/328
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/328/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/328/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/328/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/328/files
Keep Alloy starting when an Elasticsearch exporter credential is gone https://github.com/cloudfall-dev/cloudfall/pull/328/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/328/files
844cb4a Keep Alloy starting when an Elasticsearch exporter credential is gone shipmill-romamo[bot] Nov 14, 2026 https://github.com/cloudfall-dev/cloudfall/pull/328/commits/844cb4aa3e047d6645b198cbcd4f279c6c652fc0
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/328/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/328/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/328/files
326-alloy-optional-es-credential.md https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-6c0d78da5beabc07fa93d312b0d60726dfd096b09a75bb72f0f7694e40c89d00
main.yml https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-8e4748c25590e1dd87b560b576759401d9bf61c75770af0f6c07b4df1a838cd3
alloy-systemd-override.conf.j2 https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-2dbdcb743a2e679cb1c65dc218a2d329c28059fb3580d43c1fb31135f4375737
test_s012_elasticsearch_access.py https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-be94d5834969252e9b62d95a4a83f12117c8039c4e5b75b118e42ffb74f60712
changelog.d/326-alloy-optional-es-credential.mdhttps://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-6c0d78da5beabc07fa93d312b0d60726dfd096b09a75bb72f0f7694e40c89d00
View file https://github.com/cloudfall-dev/cloudfall/blob/844cb4aa3e047d6645b198cbcd4f279c6c652fc0/changelog.d/326-alloy-optional-es-credential.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/328/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_logging_collector/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-8e4748c25590e1dd87b560b576759401d9bf61c75770af0f6c07b4df1a838cd3
View file https://github.com/cloudfall-dev/cloudfall/blob/844cb4aa3e047d6645b198cbcd4f279c6c652fc0/engine/ansible/roles/cloudfall_logging_collector/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/328/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-8e4748c25590e1dd87b560b576759401d9bf61c75770af0f6c07b4df1a838cd3
https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-8e4748c25590e1dd87b560b576759401d9bf61c75770af0f6c07b4df1a838cd3
engine/ansible/roles/cloudfall_logging_collector/templates/alloy-systemd-override.conf.j2https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-2dbdcb743a2e679cb1c65dc218a2d329c28059fb3580d43c1fb31135f4375737
View file https://github.com/cloudfall-dev/cloudfall/blob/844cb4aa3e047d6645b198cbcd4f279c6c652fc0/engine/ansible/roles/cloudfall_logging_collector/templates/alloy-systemd-override.conf.j2
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/328/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-2dbdcb743a2e679cb1c65dc218a2d329c28059fb3580d43c1fb31135f4375737
engine/tests/test_s012_elasticsearch_access.pyhttps://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-be94d5834969252e9b62d95a4a83f12117c8039c4e5b75b118e42ffb74f60712
View file https://github.com/cloudfall-dev/cloudfall/blob/844cb4aa3e047d6645b198cbcd4f279c6c652fc0/engine/tests/test_s012_elasticsearch_access.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/328/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-be94d5834969252e9b62d95a4a83f12117c8039c4e5b75b118e42ffb74f60712
https://github.com/cloudfall-dev/cloudfall/pull/328/files#diff-be94d5834969252e9b62d95a4a83f12117c8039c4e5b75b118e42ffb74f60712
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/328/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.