Skip to content

Add v2 token support for chares - #82

Merged
cowbon merged 1 commit into
mainfrom
ratsd-core-v2
Jun 28, 2026
Merged

Add v2 token support for chares#82
cowbon merged 1 commit into
mainfrom
ratsd-core-v2

Conversation

@cowbon

@cowbon cowbon commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add content negotiation for legacy and v2 /ratsd/chares responses
  • generate RATSD v2 CBOR token responses with CMW evidence records
  • document the v2 response content type as application/cmw+cbor with the RATSD v2 cmwct parameter

Testing

  • env GOCACHE=/tmp/go-build-cache go test -mod=mod ./...

Signed-off-by: Ian Chin Wang <ian.chin.wang@oracle.com>

@thomas-fossati thomas-fossati left a comment

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.

LGTM, thanks!

Comment thread api/server.go
return adjusted, nil
}

func negotiateCharesResponse(accept *string) (charesResponse, error) {

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.

Just a thought. If we used gin-gonic directly, this would be a simple library call to Negotiate() or NegotiateFormat().

@cowbon
cowbon merged commit 1e18aa0 into main Jun 28, 2026
4 checks passed
@cowbon
cowbon deleted the ratsd-core-v2 branch June 28, 2026 18:12
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