Skip to content

feat(credential): expose the full accepted key set via AcceptedKeys#730

Open
aaron-zeisler wants to merge 1 commit into
aaronz/SDK-2534/credential-key-identifiersfrom
aaronz/SDK-2534/rotator-accepted-keys
Open

feat(credential): expose the full accepted key set via AcceptedKeys#730
aaron-zeisler wants to merge 1 commit into
aaronz/SDK-2534/credential-key-identifiersfrom
aaronz/SDK-2534/rotator-accepted-keys

Conversation

@aaron-zeisler

@aaron-zeisler aaron-zeisler commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Note

Stacked PR — splitting #724 (review/merge bottom-up):

  1. fix(envfactory): reject primary mobile key absent from mobileKeys[] #728 — reject primary mobile key absent from mobileKeys[]
  2. refactor(credential): carry wire key identifiers through the accepted set #729 — carry wire key identifiers through the accepted set
  3. feat(credential): expose the full accepted key set via AcceptedKeys #730 (this PR) — expose the full accepted key set via AcceptedKeys
  4. feat(status): surface full sdkKeys[]/mobileKeys[] arrays on /status #731 — surface sdkKeys[] / mobileKeys[] on /status

Base: #729.

Summary

Expose the full accepted credential set via Rotator.AcceptedKeys() and EnvContext.GetAcceptedKeys() — every server-side SDK key and mobile key (anchor and primary mobile key included), each with its type, optional identifier, and optional expiry.

Jira: SDK-2534

Background

Third in the stack splitting #724, based on #729; consumed next by #731, which partitions the returned set by type to build the sdkKeys[] / mobileKeys[] response arrays.

Changes

@aaron-zeisler aaron-zeisler marked this pull request as ready for review June 29, 2026 22:13
@aaron-zeisler aaron-zeisler requested a review from a team as a code owner June 29, 2026 22:13

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 06b94b2. Configure here.

Comment thread internal/credential/rotator.go
Add AcceptedKey (type, value, optional identifier, optional expiry) and
KeyType, plus Rotator.AcceptedKeys() to snapshot every accepted SDK and
mobile key — anchor and primary mobile key included — and an EnvContext
GetAcceptedKeys() accessor that delegates to it. The status endpoint will
partition this set by type to build the sdkKeys[] / mobileKeys[] arrays.
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.

1 participant