Skip to content

k8s.io go-get redirector should only allow canonical names #766

@adg

Description

@adg

The way that the go-get metadata redirector in nginx is configured just redirects k8s.io/ANYTHING to github.com/kubernetes/ANYTHING.

This means that k8s.io/Kubernetes can be used to name the github.com/kubernetes/Kubernetes repo, which could create some confusion as Go import and module paths are case-sensitive, thus effectively creating two base import paths: k8s.io/kubernetes and k8s.io/Kubernetes.

Is it possible to add a rule to the nginx config to only permit lowercase repo names, and return 404s otherwise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dnsDNS records for k8s.io, kubernetes.io, k8s.dev, etc., code in dns/lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.sig/k8s-infraCategorizes an issue or PR as relevant to SIG K8s Infra.sig/releaseCategorizes an issue or PR as relevant to SIG Release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions