8000 fix(classifier): spell the dstnat chain's priority as -100 so nft before 1.0.9 loads the table by minimal-backporter[bot] · Pull Request #3560 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(classifier): spell the dstnat chain's priority as -100 so nft before 1.0.9 loads the table - #3560

Merged
norrietaylor merged 1 commit into
release/0.7.xfrom
backport/3179-to-release/0.7.x
Nov 18, 2026
Merged

norrietaylor merged 1 commit into
release/0.7.xfrom
backport/3179-to-release/0.7.x

Conversation

@minimal-backporter
Copy link
Copy Markdown
Contributor

Backport of #3179 to release/0.7.x.

Squash-merge this PR and keep the PR title as the subject. The cherry-picked commit keeps the source subject.

…ore 1.0.9 loads the table (#3179)

The classifier table's dstnat chain declared `type nat hook output priority
dstnat`. nft up to 1.0.8 pairs the name `dstnat` with the prerouting hook
only and refuses it on output with "invalid priority expression value in
this context" (the output pairing arrived in nftables 1.0.9, upstream commit
8beafab7, and nft's documented matrix still lists prerouting alone). One
refused chain fails the whole transaction, so on Debian 12 (nft 1.0.6) and
Ubuntu 22.04 (nft 1.0.2) `min finalize-install` installed no classifier and
every host-address box went without per-box egress enforcement.

The chain now says `priority -100`, the value `dstnat` names, which every
nft accepts on every hook; 1.0.9 and later load the same chain as before.
The script is the one source for both the host's table and the guest's,
which minimald renders through it, so both are fixed.

Tests: a rendered-table check in minimald that every base chain of the
native and the guest render names its priority in a form nft before 1.0.9
accepts on its hook, with the name/hook matrix pinned on its own, and
install_test.sh asserts the numeric spelling and that no chain names
dstnat or srcnat off the one hook old nft takes it on.

Refs: gominimal/inbox#1196

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6416376)
@coderabbitai
coderabbitai Bot commented Nov 18, 2026
Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a740c10-a10b-4796-b3d5-7380a26780c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@minimal-foundry
minimal-foundry Bot commented Nov 18, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at e6596cb86e21.

Nothing to do.

Clobber: none seen.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minimal-review — advisory review

Verdict COMMENT — No findings.

Panel: 2 of 3 personas ran (correctness, security); did not complete: supply-chain.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Nov 18, 2026
@norrietaylor
norrietaylor enabled auto-merge (squash) November 18, 2026 21:16
@norrietaylor
norrietaylor merged commit 320e38d into release/0.7.x Nov 18, 2026
35 checks passed
@norrietaylor
norrietaylor deleted the backport/3179-to-release/0.7.x branch November 18, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0