René's URL Explorer Experiment


Title: Remove revoked SSH keys from root's authorized_keys by shipmill-romamo[bot] · Pull Request #367 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Remove revoked SSH keys from root's authorized_keys by shipmill-romamo[bot] · Pull Request #367 · cloudfall-dev/cloudfall

X Title: Remove revoked SSH keys from root's authorized_keys by shipmill-romamo[bot] · Pull Request #367 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/tests/test_access_role.py, sdk/tests/test_validation.py, engine/ansible/roles/cloudfall_access/tasks/main.yml, engine/src/cloudfall_engine/ansible_inventory.py, sdk/src/cloudfall/validation.py, .github/workflows/converge.yml, changelog.d/354-remove-revoked-keys.md Order: the failing tests first (the role's key tasks replayed on a scratch authorized_keys, the inventory carrying a revoked key, validation refusing one key declared active and revoked), then the inventory, the role's removal task and its assert, the validation check, and a converge step that revokes a key Proof: engine/tests/test_access_role.py, sdk/tests/test_validation.py::test_ssh_public_key_declared_active_and_revoked_is_refused, and the Converge workflow's "Revoke a key, which the baseline removes" step Summary A key declared lifecycle: revoked stayed in root's authorized_keys after every baseline run. Two causes: the rendered inventory handed cloudfall_access only the active keys (ansible_inventory.py filtered on is_active), and the role only ever added lines. The inventory now passes every key of the server's environment, revoked ones included; the role still installs only the active ones After the active keys are installed (so root always keeps a key), the role removes each revoked key with lineinfile state: absent, matching the key's type and base64 body, with or without an options prefix or a comment. Keys the project doesn't declare stay (D-22, in #364) One key declared active and revoked in the same environment (under two ids, any comment) would be added and removed on every run: cloudfall config validate refuses it as ssh_public_key_lifecycle_conflict, and the role asserts it before touching the file The converge workflow declares a second key, baselines, revokes it, baselines again, and checks it is gone while the declared key still logs in Not in this PR: the audit does not read authorized_keys today (the observation snapshot carries no SSH key evidence), so reporting a revoked key still on the host needs a new observation field and audit check; that is left for a follow-up rather than bolted on here. Test notes New: engine/tests/test_access_role.py runs the role's key tasks for real on localhost against a scratch file holding an undeclared key, the revoked key under another comment and with a from= prefix, and the active key; after the run only the undeclared and active keys remain. A second case shows the active+revoked assert stops before any change. A third shows the inventory carries the revoked key. All three fail on main New: a parametrized validation test (refused in one environment, accepted across environments and when both are active) Ran: uv run ruff check ., uv run mypy, uv run ansible-lint engine/ansible (with ANSIBLE_CONFIG=engine/ansible/ansible.cfg, as CI does), and uv run pytest engine/tests/test_access_role.py engine/tests/test_ansible_inventory.py sdk/tests/test_validation.py sdk/tests/test_inventory.py engine/tests/test_component_hosts.py (111 passed) Left to CI: the full suite and the real converge in the Debian container Fixes #354 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/tests/test_access_role.py, sdk/tests/test_validation.py, engine/ansible/roles/cloudfall_access/tasks/main.yml, engine/src/cloudfall_engine/ansible_inventory....

X Description: Plan Serves: quality bar Files: engine/tests/test_access_role.py, sdk/tests/test_validation.py, engine/ansible/roles/cloudfall_access/tasks/main.yml, engine/src/cloudfall_engine/ansible_inventory....

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:4928e7a9-b8fd-5b1e-efcd-6013c3d85c73
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD592:331EEB:141F7A:1B54EF:6B059749
html-safe-nonce6c6b3028293fd479c0d3c8b8cb04c12d99e9212e049e5bc9cb7abd60c9e6c8d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTkyOjMzMUVFQjoxNDFGN0E6MUI1NEVGOjZCMDU5NzQ5IiwidmlzaXRvcl9pZCI6IjYxMDIwNDUwMzk2MjM5MjM5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf4cc8d495ef2777c9f4201a14c0de71154846583aa26878131e71c88952913ad
hovercard-subject-tagpull_request:5324659634
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/367/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/tests/test_access_role.py, sdk/tests/test_validation.py, engine/ansible/roles/cloudfall_access/tasks/main.yml, engine/src/cloudfall_engine/ansible_inventory....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f
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
release58e2bd32336f3dcee343ec627a4d09c7c444e214
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/367/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F367%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%2F367%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/367/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/367/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/367/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues76 (76)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/354-remove-revoked-keyshttps://github.com/cloudfall-dev/cloudfall/tree/fix/354-remove-revoked-keys
Conversation 3 https://github.com/cloudfall-dev/cloudfall/pull/367
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/367/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/367/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/367/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/367/files
Remove revoked SSH keys from root's authorized_keys https://github.com/cloudfall-dev/cloudfall/pull/367/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/367/files
9f4eff9 Remove revoked SSH keys from root's authorized_keys shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/367/commits/9f4eff90e143c90db0ca9e1229cd0e2d6cfefb81
308e554 List the active-and-revoked key refusal as Breaking (D-14) and update… shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/367/commits/308e554e970086284852aab91413c81194688263
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/367/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/367/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/367/files
converge.yml https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
354-remove-revoked-keys.md https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-5c2b01156f0224a0864cbac3ce1150b668e65f78a6ce609ba0d0fa39219282b5
README.md https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
main.yml https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-feaac2f96345353eaf478085b2e5652a3689ae68eda01807f7fd59480e3e4726
ansible_inventory.py https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
test_access_role.py https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-da5e81dc8a53749e0b28166970be157d4f23b3983830151f3017e0ef6269ea49
validation.py https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
test_validation.py https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-313b956e63152cc7dd8b9b340f90155c94d8dbba8d4f7603e68c5de74555bf4b
.github/workflows/converge.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/.github/workflows/converge.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
changelog.d/354-remove-revoked-keys.mdhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-5c2b01156f0224a0864cbac3ce1150b668e65f78a6ce609ba0d0fa39219282b5
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/changelog.d/354-remove-revoked-keys.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
engine/README.mdhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/engine/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
engine/ansible/roles/cloudfall_access/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-feaac2f96345353eaf478085b2e5652a3689ae68eda01807f7fd59480e3e4726
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/engine/ansible/roles/cloudfall_access/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-feaac2f96345353eaf478085b2e5652a3689ae68eda01807f7fd59480e3e4726
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-feaac2f96345353eaf478085b2e5652a3689ae68eda01807f7fd59480e3e4726
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-feaac2f96345353eaf478085b2e5652a3689ae68eda01807f7fd59480e3e4726
engine/src/cloudfall_engine/ansible_inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/engine/src/cloudfall_engine/ansible_inventory.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
engine/tests/test_access_role.pyhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-da5e81dc8a53749e0b28166970be157d4f23b3983830151f3017e0ef6269ea49
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/engine/tests/test_access_role.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
sdk/src/cloudfall/validation.pyhttps://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
View file https://github.com/cloudfall-dev/cloudfall/blob/308e554e970086284852aab91413c81194688263/sdk/src/cloudfall/validation.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/367/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/367/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/367/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/367/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.