Repository navigation
[ISSUE #22] Reuse configured token membership sets - #52
Merged
Merged
Conversation
mxsm
force-pushed
the
mxsm/fix-26-token-sets
branch
from
November 28, 2026 11:32
5d5dd50 to
e15d902
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22
Build immutable membership sets when each configured role list is bound or replaced. Configuration getters retain the original ordering and duplicate entries. Request authentication reads the current role sets without copying credentials into new hash tables.
Validation
POST /api/v1/snowflake/uidover HTTP/1.1 loopback with one Spring Boot process at a time, fixed worker ID and an isolated local PostgreSQL 18 writer. Eight client threads reused an HTTP client. Each row follows 3,000 warm-up requests and contains 8,000 verified HTTP 200/SUCCESS responses (0 failures). Each JVM ran 1 then 256 synthetic credentials per role. JVM order was baseline, candidate, candidate, baseline; the shared host limits inference from latency changes.At 256 credentials per role the candidate reduced measured allocation from about 31.5 kB to 10.5–10.8 kB per successful request. At one credential per role allocation fell modestly and timings were noisy. Compare rows at the same credential count; the JVM was warmer during the second case.
The A/B isolated this change on Spring Boot 4.0.6 in both variants. The merged Spring Boot 4.1.3 baseline and method-level registration guard were separately exercised in the focused authorization, binding and rotation tests. The timing results characterize these synthetic credential counts, this JDK and this loopback workload. No production credentials were used.