Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed deprecated keys and used cryptosigner #75

Merged
merged 6 commits into from
May 21, 2024

Conversation

DarikshaAnsari
Copy link
Contributor

@DarikshaAnsari DarikshaAnsari commented May 17, 2024

"Fixed issues #73 , #74 , #68 "

changed in readme.md and run_demo.py
in-toto-run with --key is now --signing-key
in-toto-record with --key is now --signing-key
in-toto-verify with --layout-keys is now --verification-keys

Used CryptoSigner instead of signer in create_layout.py and added module requirement in requirements.txt

@DarikshaAnsari
Copy link
Contributor Author

@lukpueh I have changed all the files you've mentioned , PTAL !!

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! This is almost complete. Can you please check the ci log and fix the errors? You can also run the test locally:

 python3 run_demo_md.py

I few hints:

  • The functionary keys in create_layout.py (key_bob and key_carl) are no longer key dictionaries but Key objects now. You need to slightly adopt the way they are used in the rest of the script.
  • If you do change the commands in README.md, you'll also need to update the expected output in run_demo_md.py. But you can also leave that for a separate PR, as we discussed.

key_dict = key.to_dict()
key_dict["keyid"] = key.keyid

return key_dict
Copy link
Member

@lukpueh lukpueh May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(edit: fix function name)

IMO it's okay to just import this internal method from in_toto:

# https://github.com/in-toto/in-toto/issues/663
from in_toto.models._signer import load_public_key_from_file

@lukpueh
Copy link
Member

lukpueh commented May 17, 2024

Hm. Tests are still failing. Feel free to debug, but this might be a bit tricky. I am happy to take over.

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice troubleshooting with the keyid change!! Thanks

@lukpueh lukpueh merged commit e0fa1fe into in-toto:main May 21, 2024
6 checks passed
@DarikshaAnsari
Copy link
Contributor Author

Thank you @lukpueh working with this issue is so interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants