Skip to content

Skip nftables monit rules when stemcell iptables manages monit access#420

Merged
selzoc merged 1 commit intocloudfoundry:mainfrom
abg:skip-bosh-agent-firewall-on-jammy
Mar 12, 2026
Merged

Skip nftables monit rules when stemcell iptables manages monit access#420
selzoc merged 1 commit intocloudfoundry:mainfrom
abg:skip-bosh-agent-firewall-on-jammy

Conversation

@abg
Copy link
Member

@abg abg commented Mar 11, 2026

Add a UseMonitIptablesFirewall option to LinuxOptions that tells the agent to skip nftables monit firewall setup entirely. The ubuntu-jammy stemcell will set this to true in agent.json, falling back to its existing iptables based monit access control (via cgroupv1 net_cls + restrict-monit-api-access).

NATS firewall rules are unaffected and continue to apply on all stemcells.

Companion stemcell change:
cloudfoundry/bosh-linux-stemcell-builder#487

Copy link
Contributor

@rkoster rkoster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets discuss at working group meeting, but also would want to retain the refactor making the agent responsible for all firewall logic setup. Don't like going back to it being inside the stemcell builder. In the agent we can haven proper test coverage so we don't end up in the same situation in the future.

@github-project-automation github-project-automation bot moved this from Inbox to Waiting for Changes | Open for Contribution in Foundational Infrastructure Working Group Mar 11, 2026
Add a UseMonitIptablesFirewall option to LinuxOptions that tells the
agent to skip nftables monit firewall setup entirely. The Ubuntu Jammy
stemcell will set this to true in agent.json, falling back to its
existing iptables-based monit access control (via cgroupv1 net_cls +
restrict-monit-api-access).

NATS firewall rules are unaffected and continue to apply on all
stemcells.
@abg abg force-pushed the skip-bosh-agent-firewall-on-jammy branch from 55dbfe1 to ebbe2e3 Compare March 12, 2026 20:42
@selzoc
Copy link
Member

selzoc commented Mar 12, 2026

Updated the stemcell PR to set the UseMonitIptablesFirewall boolean to true on Jammy.

@github-project-automation github-project-automation bot moved this from Waiting for Changes | Open for Contribution to Pending Merge | Prioritized in Foundational Infrastructure Working Group Mar 12, 2026
@selzoc selzoc merged commit 71753c3 into cloudfoundry:main Mar 12, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants