Skip to content

Conversation

jsdt
Copy link
Contributor

@jsdt jsdt commented Sep 24, 2025

Description of Changes

This exposes client credentials in reducer calls for rust.

API and ABI breaking changes

API Changes:

The main API change is the addition of AuthCtx and the sender_auth in ReducerContext.

ABI Changes:

This adds two new functions jwt_len and get_jwt. These use st_connection_credentials to look up the credentials associated with a connection id. jwt_len can be used to figure out the size of the payload, so that get_jwt can provide a large enough buffer.

TODO: I assume I need to bump the ABI version in this PR.

Expected complexity level and risk

  1. This adds new ABI functions

Testing

I've done some manual testing with modified versions of the quickstart. We should add some examples that use the new API.

@jsdt jsdt requested a review from gefjon September 24, 2025 20:28
@Centril Centril self-requested a review September 25, 2025 09:59
@bfops bfops added the release-any To be landed in any release window label Sep 29, 2025
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

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

Looks like there were also stuff from my previous review that was not addressed.

@jsdt jsdt requested a review from Centril October 14, 2025 16:48
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

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

I have some improvements atop of this PR, primarily wrt. docs, but this looks good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants