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
What exactly does Unknown in-toto predicate type sigstore.dev/model-transparency/manifest/v1 mean? 😄
I tried to validate the model from the oss-na24-slsa-workshop-model-integrity demo using the verfiy.py script. It seemed to work first and then crashed with the following stacktrace:
$ kubectl logs whatever-workload model-validation
INFO:__main__:Creating verifier for sigstore
INFO:tuf.api._payload:No signature for keyid f5312f542c21273d9485a49394386c4575804770667f2ddb59b3bf0669fddd2f
INFO:tuf.api._payload:No signature for keyid ff51e17fcf253119b7033f6f57512631da4a0969442afcf9fc8b141c7f2be99c
INFO:tuf.api._payload:No signature for keyid ff51e17fcf253119b7033f6f57512631da4a0969442afcf9fc8b141c7f2be99c
INFO:tuf.api._payload:No signature for keyid ff51e17fcf253119b7033f6f57512631da4a0969442afcf9fc8b141c7f2be99c
INFO:tuf.api._payload:No signature for keyid ff51e17fcf253119b7033f6f57512631da4a0969442afcf9fc8b141c7f2be99c
INFO:__main__:Verifying model signature from /data/tensorflow_saved_model/model.sig
Traceback (most recent call last):
File "/src/verify.py", line 176, in<module>main()
~~~~^^
File "/src/verify.py", line 162, in main
model.verify(
~~~~~~~~~~~~^
sig=sig,
^^^^^^^^
...<3 lines>...
ignore_paths=[args.sig_path],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/model_signing/model.py", line 77, in verify
peer_manifest = verifier.verify(sig)
File "/src/model_signing/signing/sign_sigstore.py", line 371, in verify
return in_toto.IntotoPayload.manifest_from_payload(payload)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/src/model_signing/signing/in_toto.py", line 85, in manifest_from_payload
raise ValueError(f"Unknown in-toto predicate type {predicate_type}")
ValueError: Unknown in-toto predicate type sigstore.dev/model-transparency/manifest/v1
I started building a model-validation-controller for k8s, thats why the command (verify --model_path=/data/tensorflow_saved_model --sig_path=/data/tensorflow_saved_model/model.sig sigstore --identity [email protected] --identity-provider https://accounts.google.com) is executed on an initcontainer.
The library has changed since OSS NA 2024, and the old signature can't be validated by the new API. So either the signature needs to be reproduced, or you check out a commit here from ~9 months ago it should verify.
That's partially my fault. We have several experimental ways to build the digest so I created multiple predicates for this, but forgot to check that the old ones would still be able to verify.
Question
What exactly does
Unknown in-toto predicate type sigstore.dev/model-transparency/manifest/v1
mean? 😄I tried to validate the model from the oss-na24-slsa-workshop-model-integrity demo using the
verfiy.py
script. It seemed to work first and then crashed with the following stacktrace:I started building a model-validation-controller for k8s, thats why the command (
verify --model_path=/data/tensorflow_saved_model --sig_path=/data/tensorflow_saved_model/model.sig sigstore --identity [email protected] --identity-provider https://accounts.google.com
) is executed on an initcontainer.The text was updated successfully, but these errors were encountered: