Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Issue JWT access tokens from Hydra and tighten k6 users checks - #18

Open
HenriBlacksmith wants to merge 1 commit into
mainfrom
fix/k6-jwt-access-tokens
Open

HenriBlacksmith wants to merge 1 commit into
mainfrom
fix/k6-jwt-access-tokens

Conversation

@HenriBlacksmith

Copy link
Copy Markdown
Owner

Summary

Smoke run showed 30/30 users requests returning 401: Hydra issues opaque access tokens by default, while the API validates them with jwt.decode. compose.yml now sets STRATEGIES_ACCESS_TOKEN=jwt so client-credentials tokens are JWTs signed with the JWKS served on port 4444.

Also, k6 counts 401 responses in http_req_failed (49.18% threshold breach). The users check is now strict (200 expected with a token, 401 only when anonymous) and the response callback accepts 401 so anonymous runs do not breach the threshold; a token regression still fails via the checks threshold.

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