Repository navigation
Conversation
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.
What
Teaches
ct gateway proxythe gateway'sGET /simulate/<personId>/api/...route (gateway side: eqrm/eqrm-infra#164, #176).--simulate(opt-in) and--simulate-profile(defaulteqrm-ct-simulate). Without the flag/simulateis denied locally as before; the deny reason names the flag.GET /simulate/<digits>/api/...(no 0, no leading zero, normalized, same query handling andlogin_tokenstripping). Everything else under/simulateand all non-GET stay denied./simulate/...is signed with the simulate role, everything else with the reader role. The simulate role asks for the MFA code at startup (fails fast); MFA itself is enforced by the role's trust policy.cachingCredentialsas the reader, so the next/simulaterequest after expiry re-prompts for an MFA code on the proxy terminal (that request waits)./apiis unaffected.[simulate person <id>].docs/gateway.md(flag, profile block, MFA by trust policy, admins can't be simulated, one simulation per ChurchTools session, measured 2026-11-09). Fixed the stale "reader role with MFA" comment insrc/env/envs.ts.Tests
Filter (allowed/denied shapes), per-route credential selection, no-flag unchanged, expiry re-prompt.
format:check,lint,typecheckclean;vitest run tests/gateway: 3 files, 57 tests passed; docs-staleness current. No live MFA test (needs a real code).