-
Notifications
You must be signed in to change notification settings - Fork 50
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
GPG public key schemas are incompatible with both TUF and in-toto specifications #450
Comments
Ouch. Thanks for catching this. |
Thanks for pointing out the spec incompatibility aspect of this! #308 already documents the different key metadata formats in tuf and in-toto, and suggests, among other things, to consolidate ['keyval'] values (see e.g. serialized rsa PEM vs. non-serialized rsa numbers). |
in-toto/specification#33 discusses other spec - implementation inconsistencies of the public key metadata format. This does not fix the current issue of incompatibility with python-tuf, but I think the correct way is to detach the key and signature format from the specification, and document it as part of an implementation. |
Example:
and the schemas it uses:
This contradicts with the "rsa" type defined in both TUF and in-toto specifications (which define keyval.public as a PEM string). These keys work in in-toto because there's code in in-toto that uses a schema check to figure out which verify function to call, but the metadata is still not spec compliant, and would be impossible for another implementation to use without reverse engineering the reference implementation.
The text was updated successfully, but these errors were encountered: