Skip to content

fix: state IPv6 on the fabric identity claim - #15

Merged
scotwells merged 1 commit into
mainfrom
fix/fabric-identity-ipv6-claim
Aug 27, 2026
Merged

fix: state IPv6 on the fabric identity claim#15
scotwells merged 1 commit into
mainfrom
fix/fabric-identity-ipv6-claim

Conversation

@scotwells

@scotwells scotwells commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

No network has ever been given a fabric identity. Every allocation is refused by the address service with spec.prefixLength: Invalid value: 64: must be between 1 and 32, because a claim's prefix length is bounded by the family stated on the claim itself, before the class it names is resolved, and the claim stated no family. This sets spec.ipFamily: IPv6 on the identity claim.

The IPClass and IPPool in infra are correct and need no change. Both declare IPv6, and the class pins both prefix-length bounds to /64. The family never reached the claim.

The IPAM fake in these tests bound anything it was handed, which is how a claim no real server would accept passed the whole suite. It now mirrors the server's prefix-length admission, so removing the family reproduces the staging error verbatim across nine tests.

Related

Every fabric identity allocation fails in staging. The address service
bounds a claim's prefix length by the family stated on the claim itself,
before it resolves the class the claim names, so a /64 asked for with no
family is read as an IPv4 length and refused:

  spec.prefixLength: Invalid value: 64: must be between 1 and 32

The IPClass and IPPool are correct: both declare IPv6 and the class pins
both prefix-length bounds to /64. The family simply never reached the
claim.

Key changes:
- Set spec.ipFamily to IPv6 on the identity claim
- Mirror the server's prefix-length admission in the IPAM fake, which
  accepted anything and is why no test caught this
- Pin the family with a test that reproduces the staging error exactly
  when it is removed
@scotwells
scotwells requested a review from privateip August 27, 2026 15:16
@scotwells
scotwells marked this pull request as ready for review August 27, 2026 15:19
@scotwells
scotwells requested a review from a team as a code owner August 27, 2026 15:19
@scotwells
scotwells merged commit 15332b6 into main Aug 27, 2026
11 of 12 checks passed
@scotwells
scotwells deleted the fix/fabric-identity-ipv6-claim branch August 27, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants