Skip to content

Support selecting attesters in /ratsd/chares#69

Merged
cowbon merged 4 commits into
mainfrom
cowbon-patch-10
May 11, 2026
Merged

Support selecting attesters in /ratsd/chares#69
cowbon merged 4 commits into
mainfrom
cowbon-patch-10

Conversation

@cowbon
Copy link
Copy Markdown
Collaborator

@cowbon cowbon commented Apr 29, 2026

Summary

  • parse attester-selection as a list of attester names and read attester-specific options from top-level request fields
  • honor selected attesters in /ratsd/chares responses while still enforcing selection in selected mode
  • update the generated API/docs and README examples, and add coverage for selected-attester behavior

Testing

  • go test ./api/...

cowbon added 3 commits April 28, 2026 15:39
Place string tsm-report between a pair of quotes to the example of
Complex queries README.md, and move tsm-repot under attester-selection

Signed-off-by: Ian Chin Wang <ian.chin.wang@oracle.com>
Make `attester-selection` a list of attester names instead of an object
containing nested option maps. Read attester-specific options from
top-level JSON fields named after each attester, and allow attesters
with no options to be selected without requiring `"attester-id":
null`.

Update the `/ratsd/chares` handler, tests, OpenAPI schema/generated
types, and README examples to match the new request format.

Signed-off-by: Ian Chin Wang <ian.chin.wang@oracle.com>
Apply request-provided attester selection even when the server is not running in selected mode, and add coverage for the all-mode request path.

Signed-off-by: Ian Chin Wang <ian.chin.wang@oracle.com>
Return a specific error when the request body cannot be deserialized as JSON while preserving the existing missing-nonce validation path. Add coverage for malformed JSON and missing nonce requests in the POST /ratsd/chares tests.

Signed-off-by: Ian Chin Wang <ian.chin.wang@oracle.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.

LGTM

@cowbon cowbon merged commit 54013ff into main May 11, 2026
3 checks passed
@cowbon cowbon deleted the cowbon-patch-10 branch May 11, 2026 15:03
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.

2 participants