Skip to content

docs: endorsement lifecycle management API#74

Open
shefali-kamal wants to merge 2 commits into
veraison:mainfrom
MonakaResearch:main
Open

docs: endorsement lifecycle management API#74
shefali-kamal wants to merge 2 commits into
veraison:mainfrom
MonakaResearch:main

Conversation

@shefali-kamal
Copy link
Copy Markdown

API spec for activation/deactivation of triples using CoRIM IDs, CoMID IDs, or CoSERV query.
This is the SPEC whose implementation will resolves Github issue: veraison/services#402

API spec for activation/deactivation of triples using CoRIM
IDs, CoMID IDs, or CoSERV query.

Co-authored-by: Dhanus M Lal <Dhanus.MLal@fujitsu.com>
Co-authored-by: Kumar, Atul <Atul.Kumar@fujitsu.com>
Signed-off-by: Kumar, Atul <Atul.Kumar@fujitsu.com>
Copy link
Copy Markdown
Contributor

@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.

LGTM

- use coserv data model primitives to create endorsements lifecycle
  management (ELM) queries

>[!TODO]
> Migrate from application/problem+json (RFC 9457) to
> applicaton/concise-problem-details+cbor (RFC 9290).
> This change should be applied to other endpoints
> (and services) to maintain consistency in the response
> encondings. Better to address it in a future PR when
> consensus is reached on the response format(s).

Signed-off-by: Kumar, Atul <Atul.Kumar@fujitsu.com>
Copy link
Copy Markdown
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

Before merging, I’d like to discuss the position of the profile in the query.

Following is the CDDL format for an ELM query:
```
elm-query = {
&(profile: 0) => coserv.profile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The profile does not belong in the rim query. I think it makes more sense to move it into the environment query.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I used this diagnostic notation as a reference: rv-rim-query.diag, where the profile is included in the rim query. I'm not sure why it makes sense there but not here.
Slightly on the same topic, I would like to confirm if it's okay for the ELM query to diverge from the CoSERV data model beyond the fields that it imports? For example, I have removed coserv.result-type from the query because it is not useful here. Removing the profile from the rim query would be a step in the same direction.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I used this diagnostic notation as a reference: rv-rim-query.diag, where the profile is included in the rim query. I'm not sure why it makes sense there but not here.

here, we are not constrained by the wrapping choices made by coserv, we have a bit more leeway to rearrange the objects in the most logical way for the use case… which segways into:

Slightly on the same topic, I would like to confirm if it's okay for the ELM query to diverge from the CoSERV data model beyond the fields that it imports?

Yes.

For example, I have removed coserv.result-type from the query because it is not useful here. Removing the profile from the rim query would be a step in the same direction.

Yes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

FYI: @thomas-fossati so then because we have can diverge from the CoSERV data model please note in implementation we might have to write new structs and probably modify current coserv code so that these fields can be made optional.

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