René's URL Explorer Experiment


Title: Audit remoteAccess firewall rules and listener without false drift (#143) by shipmill-romamo[bot] · Pull Request #148 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Audit remoteAccess firewall rules and listener without false drift (#143) by shipmill-romamo[bot] · Pull Request #148 · cloudfall-dev/cloudfall

X Title: Audit remoteAccess firewall rules and listener without false drift (#143) by shipmill-romamo[bot] · Pull Request #148 · cloudfall-dev/cloudfall

Description: Summary cloudfall audit reported false drift on a server whose PostgreSQL service declares spec.postgresql.remoteAccess: firewall.allowedInbound now expects one tcp/ from entry per declared source, next to today's tcp/22-style entries. The observed side reads the ip saddr / ip6 saddr match of each accepted rule in nft -j output: a bare address (nft's form for a /32 or /128) and {"prefix": {"addr", "len"}} are normalised to canonical CIDR, so 10.1.0.7/32 matches nft's 10.1.0.7. Any other saddr shape (set, negation, range) is kept as its raw JSON, so it never matches and shows as drift services.bind[] for a service with remoteAccess matches only when both the bind address and remoteAccess.listenAddress have a listener on the port and no other non-loopback listener exists: a PostgreSQL that failed to bind listenAddress is drift. For such a service the desired object reports loopbackOnly: false and adds remoteAccess: {listenAddress}; services without remoteAccess keep the same keys and values The source-restricted rules come from one SDK function, cloudfall.inventory.remote_access_rules_for_server (returning SourceRestrictedFirewallRule), which replaces the engine's private _remote_access_rules. The engine's refusals (no firewall on the server; a source of every address) keep their order and messages Servers without remoteAccess audit exactly as before. Tests sdk/tests/test_audit.py: a snapshot with the rendered remoteAccess rules (IPv4 prefix, a bare /32, an ip6 saddr prefix) and the 10.0.0.2:5432 listener audits compliant (fails on main); the port open to every address, a wrong source (fails on main's output form), a listener on an undeclared or wildcard address (next to the declared one), and a remoteAccess service listening only on 127.0.0.1 are drift; a server without remoteAccess yields the same firewall.allowedInbound and services.bind values as before Ran uv run ruff check ., uv run mypy, and uv run pytest sdk/tests/test_audit.py sdk/tests/test_owned_postgresql.py engine/tests/test_postgresql_remote_access.py engine/tests/test_ansible_inventory.py engine/tests/test_firewall_templates.py (85 passed) Fixes #143 🤖 Generated with Claude Code

Open Graph Description: Summary cloudfall audit reported false drift on a server whose PostgreSQL service declares spec.postgresql.remoteAccess: firewall.allowedInbound now expects one tcp/<port> from <cidr> ...

X Description: Summary cloudfall audit reported false drift on a server whose PostgreSQL service declares spec.postgresql.remoteAccess: firewall.allowedInbound now expects one tcp/&lt;port&gt; from &...

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

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:466eba2d-b470-983b-bccc-05d0ce77fc40
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF6C:5C97B:5A2610:7B710C:6B05A673
html-safe-noncec58d4b6a7ca99a9d5dad92331790d165d3f54aa1d8551f89468789422ec8caca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjZDOjVDOTdCOjVBMjYxMDo3QjcxMEM6NkIwNUE2NzMiLCJ2aXNpdG9yX2lkIjoiMzAyNDM4MjI4NTQ2NjU5OTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac700450f14c57fd43438b4bd008522e0be070e7b527708e0b70fe7ceadc9ed8a3
hovercard-subject-tagpull_request:5033016231
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/148/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 cloudfall audit reported false drift on a server whose PostgreSQL service declares spec.postgresql.remoteAccess: firewall.allowedInbound now expects one tcp/<port> from <cidr> ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0b0a75b576b64dfa32421a785f31f49ed1e3a5d21b783307a7fd78864bf2e1d
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
release6d5f39f9528ff412d5d29191dbe92c097ad1b33e
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/148/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F148%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%2F148%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/148/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/148/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/148/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/143-audit-remote-accesshttps://github.com/cloudfall-dev/cloudfall/tree/fix/143-audit-remote-access
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/148
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/148/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/148/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/148/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/148/files
Audit remoteAccess firewall rules and listener without false drift (#143) https://github.com/cloudfall-dev/cloudfall/pull/148/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/148/files
b8567eb Audit remoteAccess firewall rules and listener without false drift (#… shipmill-romamo[bot] Oct 27, 2026 https://github.com/cloudfall-dev/cloudfall/pull/148/commits/b8567eb5eb6556ac50df9a5fee58a273d695b0a8
69195fc Require the remoteAccess listener in services.bind (#143) shipmill-romamo[bot] Oct 27, 2026 https://github.com/cloudfall-dev/cloudfall/pull/148/commits/69195fc2c4f5f76e6b104870fab633b807ea4185
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/148/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/148/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/148/files
143-audit-remote-access.md https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-4a9fc987e55e4d2da93ca53fe86679f2e60f1c7bac3c68db01e49e9559ae8504
ansible_inventory.py https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
audit.py https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
inventory.py https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
test_audit.py https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-1b783537f58136d988127a692bb5660ae962a586084e286f19301fa68437dc49
changelog.d/143-audit-remote-access.mdhttps://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-4a9fc987e55e4d2da93ca53fe86679f2e60f1c7bac3c68db01e49e9559ae8504
View file https://github.com/cloudfall-dev/cloudfall/blob/69195fc2c4f5f76e6b104870fab633b807ea4185/changelog.d/143-audit-remote-access.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/148/{{ revealButtonHref }}
engine/src/cloudfall_engine/ansible_inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
View file https://github.com/cloudfall-dev/cloudfall/blob/69195fc2c4f5f76e6b104870fab633b807ea4185/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/148/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-ee0cef32a359793783a1642f43db30a45d73e27347077f9cb5b8a044a99c5788
sdk/src/cloudfall/audit.pyhttps://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
View file https://github.com/cloudfall-dev/cloudfall/blob/69195fc2c4f5f76e6b104870fab633b807ea4185/sdk/src/cloudfall/audit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/148/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-b3bb3728ce9e8c3845bcf6bdfda225c5eea40284cb1c547e53d4cf9da3cf9b76
sdk/src/cloudfall/inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
View file https://github.com/cloudfall-dev/cloudfall/blob/69195fc2c4f5f76e6b104870fab633b807ea4185/sdk/src/cloudfall/inventory.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/148/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
https://github.com/cloudfall-dev/cloudfall/pull/148/files#diff-831a4fa33ef337b71dfe913834f1e8a6a13fe7487dc380a944c090d9ae15f99b
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/148/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/148/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.