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
General information:
Hey. So in the general spec https://github.com/in-toto/docs/blob/master/in-toto-spec.md#433-artifact-rules , we have this statement about the path patterns accepted in expected materials / products paths:
"The 'pattern' value is a path-pattern that will be matched against paths reported in the link metadata, including bash-style wildcards (e.g., '*')."
This is implemented differently between Golang and Python.
Hi @cosmin79, thanks for flagging this. I'm wondering what the right course of action here is, as the spec doesn't mandate one way or another. Ideally, it would be better for both implementations to align. @shibumi and @lukpueh WDYT?
Yea, I think a common test suite to check the different implementations against is one of the nicer way of dealing with it and catching other differences proactively :)
I should also note that the spec is being updated (in-toto/specification#75) to be more explicit about the patterns. That'd make in-toto-golang non compliant.
General information:
Hey. So in the general spec https://github.com/in-toto/docs/blob/master/in-toto-spec.md#433-artifact-rules , we have this statement about the path patterns accepted in expected materials / products paths:
"The 'pattern' value is a path-pattern that will be matched against paths reported in the link metadata, including bash-style wildcards (e.g., '*')."
This is implemented differently between Golang and Python.
Could you comment on the differences?
Description of the bug:
I've noticed the python implementation for in-toto uses
fnmatch
:https://github.com/in-toto/in-toto/blob/develop/in_toto/verifylib.py#L676
In the Golang implementation, this is achieved via https://github.com/in-toto/in-toto-golang/blob/master/in_toto/match.go . The following test for example wouldn't be true if using
fnmatch
https://github.com/in-toto/in-toto-golang/blob/master/in_toto/match_test.go#L49 .Anything special you want to tell us?
The text was updated successfully, but these errors were encountered: