Skip to content

[types] add custom json message to keyval - #133

Closed
asraa wants to merge 1 commit into
theupdateframework:masterfrom
asraa:add-custom-keyval
Closed

asraa wants to merge 1 commit into
theupdateframework:masterfrom
asraa:add-custom-keyval

Conversation

@asraa

@asraa asraa commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

This adds a custom json message to KeyValue. By the specification, KeyValue must contain the public data associated with the key, and here I'd like to extend it to include information other than the Public bytes associated with the key:

I'd like to include a hardware and device cert for the offline keys generated, and attach their certificates in the KeyValue in the root metadata. It seems appropriate to attach it to the Key.

WDYT? Happy to make a PR in the python repository as well, the change will actually need to be in securesystemslib https://github.com/secure-systems-lab/securesystemslib/blob/1983feda61da8a9ce8c6d2bc0955c1d2be08ad6f/securesystemslib/formats.py#L179

Signed-off-by: Asra Ali [email protected]

@trishankatdatadog

Copy link
Copy Markdown
Contributor

I don't see a problem with this, but we do need to clarify first in the TUF spec how to deal with unknown/unexpected superset fields. Could you help us there?

@jku

jku commented Jun 4, 2021 •

Copy link
Copy Markdown
Member

this should just work already for the newer python Metadata API (but a test case or an issue about it would definitely be valued).

The current/legacy python-tuf code does verify input data against the many related schemas... so something probably needs to change to make a current python-tuf client compatible with this.

@trishankatdatadog

Copy link
Copy Markdown
Contributor

The current/legacy python-tuf code does verify input data against the many related schemas... so something probably needs to change to make a current python-tuf client compatible with this.

This is partly what I mean by we need to clarify the spec to tell implementations what to do...

@trishankatdatadog

Copy link
Copy Markdown
Contributor

Do we have a resolution on this?

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 899688131

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.173%

Totals Coverage Status
Change from base Build 453172856: 0.0%
Covered Lines: 1549
Relevant Lines: 2306

💛 - Coveralls

@asraa

asraa commented Sep 1, 2021

Copy link
Copy Markdown
Contributor Author

superseded by #148

@asraa asraa closed this Sep 1, 2021
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.

4 participants