Skip to content

feat: Only send load balancer traffic to verified backends - #714

Merged
scotwells merged 1 commit into
codex/nlb-route-reconcilefrom
codex/nlb-source-identity
Oct 25, 2026
Merged

scotwells merged 1 commit into
codex/nlb-route-reconcilefrom
codex/nlb-source-identity

Conversation

@scotwells

@scotwells scotwells commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Load balancers now only use backends whose network identity can be verified. That lets each serving location confirm a backend still belongs to the right VPC before it sends it traffic. Backends that can't be verified are left out. This doesn't yet mark routes ready or announce addresses.

Test plan

  • Identity and route tests pass

Depends on #713. Replaces #627. Related to #611 and datum-cloud/enhancements#884

@scotwells
scotwells requested a review from a team as a code owner October 23, 2026 15:55
@scotwells
scotwells requested review from ecv and kevwilliams October 23, 2026 15:55
@scotwells scotwells self-assigned this Oct 23, 2026
@scotwells scotwells mentioned this pull request Oct 23, 2026
4 tasks done
@cla-assistant

cla-assistant Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

kevwilliams
kevwilliams previously approved these changes Oct 23, 2026

@kevwilliams kevwilliams 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.

Verified tenant roles cannot create or patch NetworkInterfaces, projection always overwrites source labels, and endpoints drive only status, so no traffic flows yet.

Keep the original interface identity through projection so a serving
location can confirm a backend still belongs to the right VPC before it
sends it traffic. Backends without a verified identity are left out.

Key changes:
- Preserve the source interface UID on projected interfaces
- Exclude route endpoints without a verified source identity
- Document the serving-location contract

@kevwilliams kevwilliams 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.

Re-verified after rebase: patch is unchanged, and removing the empty source-UID check or the UID label still fails the tests.

@ecv ecv 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.

Approve.
Rebase only onto c1ca2cf: git range-diff shows the commit unchanged, so the verdict at b5007d9 stands.
Copies published before this lands carry no source-uid label, so every existing backend drops out until the cell republishes it.
That is safe because nothing serves yet, and the doc says so.
Stack: based on #713, merge after it.

@scotwells
scotwells merged commit c0bce97 into main Oct 25, 2026
10 checks passed
@scotwells
scotwells deleted the codex/nlb-source-identity branch October 25, 2026 22:40
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