Skip to content

Edge route acceptance ignores the PrefixReachability version #1075

Closed

Description

@privateip

Summary

Core accepts an EdgeRoute whose provider declares PrefixReachability only at a version core does not implement. Route acceptance checks that the provider lists the capability by name and ignores its version, so a provider that declares only PrefixReachability at v9 gets its routes accepted and advertised with v1 behavior.

The check is

// checkProvider reads the route's provider: approved and implementing
// PrefixReachability.
func checkProvider(ctx context.Context, reader client.Reader, rt *galacticv1alpha1.EdgeRoute) (*Refusal, error) {
var prov galacticv1alpha1.EdgeProvider
switch err := reader.Get(ctx, client.ObjectKey{Name: rt.Spec.ProviderRef.Name}, &prov); {
case apierrors.IsNotFound(err):
return refuse(string(admission.UnknownProvider), "EdgeProvider %s does not exist", rt.Spec.ProviderRef.Name), nil
case err != nil:
return nil, err
case !prov.Status.Approved || !prov.DeletionTimestamp.IsZero():
return refuse(string(admission.ProviderNotApproved), "EdgeProvider %s is not approved", prov.Name), nil
case !slices.ContainsFunc(prov.Spec.Capabilities, func(c galacticv1alpha1.EdgeCapability) bool {
return c.Name == PrefixReachability
}):
return refuse(string(admission.UnsupportedCapability), "EdgeProvider %s does not implement %s",
prov.Name, PrefixReachability), nil
}
return nil, nil
. The contract says core refuses any capability version outside the ones it implements, even one the EdgeProvider lists:
- A core release implements the capability versions listed under [Decisions](#decisions). Admission refuses any other capability version with `UnsupportedCapability`, even one the `EdgeProvider` lists.
. #1071 fixed the same gap for attachments.

Reproduce

  1. Register and approve an EdgeProvider whose only PrefixReachability entry is at v9.
  2. Grant it an EdgeService with PrefixReachability and a prefix.
  3. From a ready attachment of that provider, claim an EdgeRoute for a prefix inside the grant.
  4. The route is accepted.

Acceptance criteria

  • A route is refused with UnsupportedCapability when its provider declares PrefixReachability at no version core implements
  • A route whose provider declares PrefixReachability at a version core implements is accepted as before

Activity

  1. added theissue type on Oct 24, 2026
  2. self-assigned this
    on Oct 24, 2026
  3. added a commit that references this issue on Oct 24, 2026
    864577a
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

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions