Skip to content

Agree the Edge public listener design #1506

Description

@privateip

Summary

Edge providers such as MASQUE can be reached from the internet only through a Kubernetes Service overlay, outside the fencing, policy and drain that Galactic Edge gives tenant traffic.

The Edge public listener design proposes serving providers through the existing gateway instead. It is still on a branch with four open decisions, so implementation waits for review.

Acceptance criteria

  • The design is merged with decisions on who supplies public addresses, how many ingress networks exist, which component registers the reply path, and how same-node backends are handled.
  • Nothing left open in the design blocks the Phase 0 lab proof.

Activity

  1. self-assigned this
    on Nov 28, 2026
  2. privateip commented on Nov 28, 2026

    @privateip
    ContributorAuthor

    Implementation detail from the design.

    Decisions to record in the design

    • Who supplies listener addresses: the platform authority from the gateway VIP prefixes (proposed), or a Galactic allocator.
    • Ingress gVPC granularity: one per provider (proposed) or one per listener.
    • Which component registers a listener attachment's host veth in ifindex_vrf_table, and through which datapath interface.
    • Whether listener backends on a node that also advertises the VIP stay excluded until gateway local delivery is qualified (proposed), or local delivery is built first.

    Work items

    • Open the design as a pull request and collect review.
    • Record the four decisions and update the phases if a decision changes them.
  3. added theissue type on Nov 28, 2026
  4. privateip commented on Nov 28, 2026

    @privateip
    ContributorAuthor

    Verdict: valid. On main at e7885de the design is not merged. It exists only on branch docs/edge-public-ingress at ffeb358, and all four decisions listed above are still open.

    One finding beyond the issue text. The design calls the listener address "anycast". In galactic, every gateway node in a cell advertises a gateway VIP, but each VIP is unique to its cell. Grants are also scoped to one cell, so a listener address shared across cells would send clients to a cell that cannot authorize them. The design should say that a listener's addresses belong to one cell and that core refuses an address already used in another cell, and it should drop "anycast" in favor of that wording.

  5. privateip commented on Nov 28, 2026

    @privateip
    ContributorAuthor

    Approved plan. The design document records these decisions and merges with Fixes #1506.

    Decisions

    • Listener addresses come from the platform authority, picked inside the cell's gateway VIP prefixes. Core refuses any other address with AddressOutsidePool. An allocator can follow later without an API change.
    • One ingress gVPC per provider type, not per listener.
    • galactic-edge registers each listener attachment's host veth in ifindex_vrf_table through internal/plumbing/ebpf/ifindexvrfmap, under its own owner alias, with readback in the attachment's Programmed check. This reuses the ownership model the CNI already applies, so neither component removes the other's rows, and nothing writes the map directly.
    • Listener backends on a node that also advertises the listener's VIPs stay excluded until Prove edge attachments as gateway backends #1507 qualifies gateway local delivery. The exclusion is removed once it passes.

    Document changes

    • A decisions section with the four decisions above.
    • "Anycast" is replaced by an address unique to one cell and advertised by that cell's gateway nodes. Grants are scoped to one cell, so a shared address would send clients to a cell that cannot authorize them.
    • Cell uniqueness comes from address planning. Each cell's gateway VIP prefixes must be disjoint from every other cell's, and AddressOutsidePool refuses the rest.
    • A rejected alternative for one listener address shared across cells.

    Change from the plan as first proposed: it added an AddressInOtherCell status reason. Core in one cell cannot see other cells' addresses, so that check could never be enforced, and the disjoint-prefix rule replaces it. The Accepted reasons listed on #1509 stay as they are.

    Checks: task docs:check and the prose gate.

  6. privateip commented on Nov 28, 2026

    @privateip
    ContributorAuthor

    Change to the approved plan, found in review before the PR opened. The third decision said galactic-edge should register listener veths in ifindex_vrf_table through ifindexvrfmap under its own owner alias. That work already exists: galactic-edge registers every edge host link through attachreg.RegisterHostLink, which writes the ifindex_vrf_table row, sets the veth egress kind and attaches usid_egress. ifindexvrfmap also has no owner-alias API. The decision is now "no new registration", and Phase 0 (#1507) confirms that the VIP reply translation applies on an edge host link. If it does, #1510 shrinks to the unmatched-egress drop.

    The same review corrected the mapping onto the gateway API. A NetworkService serves one protocol and port, so core writes one per listener port. Its failure policy exists only under healthCheck, so core sets a TCP health check carrying the listener's policy. backendSelector becomes one of two required alternatives with edgeListenerRef. The detail comments on #1508, #1509, #1510 and #1511 predate these corrections and need updating to match.

  7. added a commit that references this issue on Nov 28, 2026
    d311f54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

Low

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions