Relationships
↔ sibling #4840#4923 @swamp/cfgmgmt firewall: placing a deny with first or before can lock out the run's own SSH session
Opened by stack72 · 11/19/2026· Shipped 11/20/2026
The firewall model guards removing or moving an inbound allow that admits this run's SSH session (refuseRemovingOwnAccess in cfgmgmt/extensions/models/firewall.ts), but not adding or placing a deny or reject. Without placement a new deny is appended below existing allows, so it rarely takes effect. With first: true, or before: on the allow's comment (ufw since #4334, and iptables once #4840 lands), a deny or reject for a source CIDR that contains the session's client address is placed above the allow and takes effect immediately, cutting the run off and locking the operator out. Expected: refuse placing a deny/reject above an allow when the deny covers this run's session (port, source and destination as readSession reports them), with the same allowRemovingOwnAccess opt-out, on every backend that supports placement. Found during adversarial review of #4840.
Shipped
Click a lifecycle step above to view its details.
system commented 11/19/2026, 11:47:51 PM
Classified automatically when this issue was filed.
- Source: Extensions
If you feel this classification is incorrect, add a ripple to tell us so.
Sign in to post a ripple.