You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unclear what asterisk means in delegation paths #208
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
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.
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.
Activity
joshuagl commentedon Feb 14, 2022
6fffd36 specified that
PATHPATTERNwildcards are glob-like. This old issue, that I found this morning in the python-tuf repository, suggests the specification should not define howPATHPATTERNwildcards should behave, only that they should use a well-defined and agreed on (across the TUF using application) method of representing delegated paths.mnm678 commentedon Feb 14, 2022
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.