Skip to content

Conversation

@thomas-fossati
Copy link
Contributor

This PR introduces coserv, a new service endpoint that implements the CoSERV API described in draft-ietf-rats-coserv-02.

Copy link
Collaborator

@setrofim setrofim left a comment

Choose a reason for hiding this comment

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

Some minor nits, otherwise LGTM!

* Allow both direct mode (consuming from Veraison's stores) and proxy
  mode (fetching from upstream supply chain services)

* Add "direct mode" plugin for Arm CCA

* Add "proxy mode" plugins for:
  * NVIDIA RIM service (including support for source artifacts)
  * AMD KDS service

* CoSERV discovery API including RFC9290 problem details

* Add a coserv-specific signer to support signed CoSERV

Signed-off-by: Thomas Fossati <[email protected]>
Signed-off-by: Paul Howard <[email protected]>
Signed-off-by: Thomas Fossati <[email protected]>
Copy link
Collaborator

@paulhowardarm paulhowardarm left a comment

Choose a reason for hiding this comment

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

LGTM - great to see this stuff hitting the mainline.

@yogeshbdeshpande
Copy link
Collaborator

I am reviewing it now!

@yogeshbdeshpande
Copy link
Collaborator

@thomas-fossati : Where is the README.md that defines:

This is a CoSERV Implementation as per the Draft: XYZ
This is applicable to fetch Endorsements in a specific format as defined in the draft.

@yogeshbdeshpande
Copy link
Collaborator

@thomas-fossati : Where is the README.md that defines:

This is a CoSERV Implementation as per the Draft: XYZ This is applicable to fetch Endorsements in a specific format as defined in the draft.

This also needs to explain the scope, that is

  • Currently Veraison tooling is used to build a Verification Service
  • With these changes, one can build an Endorsement Distribution Service using Veraison tooling .?
  • The format of returned response follows the format given in the draft

@thomas-fossati
Copy link
Contributor Author

@thomas-fossati : Where is the README.md that defines:

This is a CoSERV Implementation as per the Draft: XYZ This is applicable to fetch Endorsements in a specific format as defined in the draft.

That text is in the veraison/corim repo.

What the coserv service implements is the HTTP API bindings, which we could add to the coserv/api folder.

@yogeshbdeshpande
Copy link
Collaborator

@thomas-fossati I see a lot of new .cbor files in the PR, under scheme/psa-iot/test/corim and similarly in other schemes, like psa-iot

However I do not see any src/ folder for this, am I missing something, OR there is no change?

Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

There are few comments, please track it via github issues, I have completed the review!

Un-blocking it, as fundamentally the code complies with the Coserv standard

Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

Approval subject to all Pending comments been resolved!

@thomas-fossati
Copy link
Contributor Author

@thomas-fossati I see a lot of new .cbor files in the PR, under scheme/psa-iot/test/corim and similarly in other schemes, like psa-iot

However I do not see any src/ folder for this, am I missing something, OR there is no change?

There is no change in the CoRIM JSON templates. Only their serialisations (i.e., the CBOR files) have been updated to match CoRIM.

@yogeshbdeshpande
Copy link
Collaborator

@thomas-fossati I see a lot of new .cbor files in the PR, under scheme/psa-iot/test/corim and similarly in other schemes, like psa-iot
However I do not see any src/ folder for this, am I missing something, OR there is no change?

There is no change in the CoRIM JSON templates. Only their serialisations (i.e., the CBOR files) have been updated to match CoRIM.

ok, so I assume, it is due to new revision of CoRIM that is been applied. ..?
However, why did the CBOR changed, unless anything is changed, I am confused.

@thomas-fossati
Copy link
Contributor Author

@thomas-fossati I see a lot of new .cbor files in the PR, under scheme/psa-iot/test/corim and similarly in other schemes, like psa-iot
However I do not see any src/ folder for this, am I missing something, OR there is no change?

There is no change in the CoRIM JSON templates. Only their serialisations (i.e., the CBOR files) have been updated to match CoRIM.

ok, so I assume, it is due to new revision of CoRIM that is been applied. ..?

yes, exactly. The “new” serialisation (I believe it should -07, or around that time) removes the outer tags.

Signed-off-by: Thomas Fossati <[email protected]>
@yogeshbdeshpande
Copy link
Collaborator

@thomas-fossati I see a lot of new .cbor files in the PR, under scheme/psa-iot/test/corim and similarly in other schemes, like psa-iot
However I do not see any src/ folder for this, am I missing something, OR there is no change?

There is no change in the CoRIM JSON templates. Only their serialisations (i.e., the CBOR files) have been updated to match CoRIM.

ok, so I assume, it is due to new revision of CoRIM that is been applied. ..?

yes, exactly. The “new” serialisation (I believe it should -07, or around that time) removes the outer tags.

ok, thanks, please mark the comment as resolved!

@thomas-fossati
Copy link
Contributor Author

Approval subject to all Pending comments been resolved!

Thanks for the review! I have addressed all your comments and raised a new issue in the veraison/docs repo to deal with the documentation.

@yogeshbdeshpande
Copy link
Collaborator

yogeshbdeshpande commented Nov 5, 2025

Approval subject to all Pending comments been resolved!

Thanks for the review! I have addressed all your comments and raised a new issue in the veraison/docs repo to deal with the documentation.

Yes, it is important that the main page in Veraison README also reflects the changes, which is also lacking at the moment

@thomas-fossati
Copy link
Contributor Author

Approval subject to all Pending comments been resolved!

Thanks for the review! I have addressed all your comments and raised a new issue in the veraison/docs repo to deal with the documentation.

Yes, it is important that the main page in Veraison README also reflects the changes, which is also lacking at the moment

Feel free to extend veraison/docs#71 with any other related documentation task.

@thomas-fossati thomas-fossati merged commit 8f5734c into main Nov 5, 2025
9 checks passed
@thomas-fossati thomas-fossati deleted the coserv branch November 5, 2025 18:40
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.

5 participants