Skip to content

Unclear what asterisk means in delegation paths #208

Open

Description

@heartsucker

For delegations, some examples seem to use a directory structure where foo/ means foo/bar/, foo/baz, and recursively everything under them. Other examples use what appears to be Unix style globbing like /foo/*.bar which would match foo/baz.bar and so on.

The spec should not actually specify either but say that a TUF implementation could use:

  • A directory structure
  • Regex
  • Unix globbing
  • Anything so long as it is well define and the server/client can agree on the method of representing delegated paths

Activity

  1. joshuagl commented on Feb 14, 2022

    @joshuagl
    Member

    6fffd36 specified that PATHPATTERN wildcards are glob-like. This old issue, that I found this morning in the python-tuf repository, suggests the specification should not define how PATHPATTERN wildcards should behave, only that they should use a well-defined and agreed on (across the TUF using application) method of representing delegated paths.

  2. mnm678 commented on Feb 14, 2022

    @mnm678
    Collaborator

    In general, I support leaving the specification flexible, but in this case I'd hesitate to leave it up to implementations as it could be confusing to users. The matching method can significantly change the scope of a delegation, and I think in this case clarity is the most important.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions