Skip to content

Conversation

@cowbon
Copy link
Collaborator

@cowbon cowbon commented Aug 18, 2025

This pull request add a new endpoint GET /ratsd/subattesters to query all available leaf attesters and their available options. The usage can be found in the following

# curl http://localhost:8895/ratsd/subattesters
[{"name":"mock-tsm","options":[{"data-type":"string","name":"privilege_level"}]},{"name":"tsm-report","options":[{"data-type":"string","name":"privilege_level"}]}]

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.

LGTM, thanks!

cowbon added 3 commits August 20, 2025 12:25
Add a new endpoint /ratsd/subattesters to list all available leaf
attesters and all of their available specific options. All leaf
attesters must return a list of options thru method GetOptions().

Signed-off-by: Ian Chin Wang <[email protected]>
Implement GetOptions() in TSM and MockTSM plugin to expose
attester-specific options to leaf attesters discovery API.

Signed-off-by: Ian Chin Wang <[email protected]>
Add unit tests for various numbers of subattesters to test endpoint
/ratsd/subattesters.

Signed-off-by: Ian Chin Wang <[email protected]>
Add information of endpoint GET /ratsd/subattesters to README, in
section Get available attesters.

Signed-off-by: Ian Chin Wang <[email protected]>
@cowbon cowbon merged commit 222a456 into main Sep 4, 2025
3 checks passed
@cowbon cowbon deleted the api-discovery branch September 4, 2025 14:35
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