Skip to content

Feat: add fees only mode filter#1263

Open
RantoniainaAmbi wants to merge 4 commits into
hei-school:preprodfrom
RantoniainaAmbi:feat/fees-only-mode
Open

Feat: add fees only mode filter#1263
RantoniainaAmbi wants to merge 4 commits into
hei-school:preprodfrom
RantoniainaAmbi:feat/fees-only-mode

Conversation

@RantoniainaAmbi

Copy link
Copy Markdown

No description provided.

RantoniainaAmbi and others added 4 commits July 7, 2026 14:14
Add an opt-in HTTP filter that short-circuits the API to a minimal
allow-list of URI prefixes (fees, students, whoami, ping,
authentication, health, mpbs) when the FEES_ONLY property is true.
The filter is wired before the existing bearer filter chain so it
applies before authentication and authorization. Intended as an
incident kill-switch, not as a long-term access control mechanism.
- Replace @value with System.getenv for FEES_ONLY reading
- Add package-private constructor FeesOnlyFilter(boolean) for testing
- Create FeesOnlyFilterTest with 4 test cases covering allowed,
  blocked, and disabled scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant