Skip to content

Conversation

@cowbon
Copy link
Collaborator

@cowbon cowbon commented Mar 13, 2025

It's not a simple task to deal with exposing the custom options for each attester. This PR assumes the users will know the input format of each attester beforehand. The following is an example of the request with the options

"nonce": "base64urlencoded",

  "attester-selection": {
    "attester-id-1": {
      "param11name": "param11value",
      "param12name": "param12value"
    },
    "attester-id-2": {
      "param21name": "param21value"
    },
  }

The selection of what goes into the EAT, however, is beyond the scope of this PR, and will be added soon.

Copy link
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 awesome! Again a few silly comments inlined that should be easy to fix.

@cowbon cowbon force-pushed the cowbon-patch-4 branch 2 times, most recently from 2414f14 to 77af9d6 Compare March 13, 2025 19:41
@cowbon
Copy link
Collaborator Author

cowbon commented Mar 13, 2025

Thanks @thomas-fossati for your constructive suggestions, and I have adopted all of them.

Copy link
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.

🚢 it!

cowbon added 2 commits March 17, 2025 09:58
Add a way for users to specify attester-specific options in /chares
endpoint. Each attesters is responsible for parsing the parameters. If
the options are not supplied in the request, the attester should
continue with the default options. Options specified for unavailable
attesters are ignored by ratsd.

Signed-off-by: Ian Chin Wang <[email protected]>
MockTSM now takes the support of options, only privilege_level is
supported at this time. The schema is defined as the following:

mocktsm:{"privilege_level": "$level"}. Replace $level with number 0-3

Signed-off-by: Ian Chin Wang <[email protected]>
@cowbon cowbon merged commit d5bc8dc into main Mar 17, 2025
4 checks passed
@cowbon cowbon deleted the cowbon-patch-4 branch March 17, 2025 14:46
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.

3 participants