Skip to content

Enforce a stricter implementation of Spiffe spec #411

@lenin-jaganathan

Description

@lenin-jaganathan

I am going through the current implementation of SpiffeId in this library and noticed a couple of deviations from the spec.

  1. The scheme validation seems to strictly enforce lower-case during the parse operation, whereas the spec seems to treat the scheme to be case-insensitive for parsing. (same goes for the trustdomain, though it must be lower-case, I guess, as per spec, the parsing should be case-insensitive)
  2. Maximum Spiffe Id length seems to enforce the URI to be atmost 2048 and host to be atmost 255 characters, but the implementation seems to enforce this. (The spec uses "MUST", hence this question)

If these are design choices or if I missed something, apologies. Also, happy to contribute if these are some of the valid concerns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions