Skip to content

[Request]: Implement resource identifier validation consistently. #514

Description

@jglogan

Feature or enhancement request details

Resource identifiers are validated inconsistently (some on client, some on server) or not at all (volumes), and allow any length identifier.

We should validate always on the server, limit identifier lengths, and ensure validation patterns are consistent with existing norms.

Resource Current validation Current pattern Normative (according to Google)
container client [a-zA-Z0-9][a-zA-Z0-9_.-]+ [A-Za-z0-9][A-Za-z0-9_-.]{0,62}
image server Containerization handles imageref validation properly lots of rules
network none N/A [a-z0-9][a-z0-9_-]{0,62}
volume server [A-Za-z0-9][A-Za-z0-9_.-]* [a-z0-9][a-z0-9_-]{0,62}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Aug 16, 2025
  2. gerardrecinto commented on Oct 17, 2026

    @gerardrecinto

    Hi @jglogan, could I help with a small first PR here? The current volume validator has a 255-character limit and allows uppercase names, so I wouldn't apply the older table's stricter rules without agreeing on compatibility first.

    I'd start by mapping the current container, network, and volume create paths, then propose server-side validation for one resource with boundary tests. Should the first change preserve today's accepted names, and should existing resources remain usable if creation rules are tightened later?

    If this is still available, could you assign it to me (@gerardrecinto) and confirm which resource you'd prefer me to start with before I prepare a PR?

    Thanks
    Gerard Recinto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions