Project

General

Profile

Actions

Bug #9443

open
VJ VJ

firewall: default-policy vs new states

Bug #9443: firewall: default-policy vs new states

Added by Victor Julien 2 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

One of the ideas to keep upgrade paths safe was to have per state built-in defaults. This would allow us to set a accept:hook default for new states, so that deployments wouldn't suddenly drop traffic after an upgrade.

The http1/2 trailer work is a first test of this, and it exposes a gap. While the original idea holds, the added default-policy options break this expectation. Those options are not aware of whether a state is new or not, and will just apply to all states in its scope. So a deployment that uses default-policy: drop:flow will still break once http1:request_trailer is introduced.

Some ideas, none of them great:
  • simply document this behavior, explaining that the safest thing to do is to not use default-policy
  • exclude states with accept:hook from the default-policy logic
  • force users to make an explicit choice: `-T` would fail for example unless the config contains a policy value for the new state(s)
  • keep an explicit internal list of "new" states that would get special case treatment, perhaps resetting on major releases
  • other ideas?

No data to display

Actions

Also available in: PDF Atom