forked from zereight/gitlab-mcp
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(health): detect token revocation via authenticated health checks #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
polaz
merged 20 commits into
main
from
feat/#370-feathealth-detect-token-revocation-via-authenticat
Apr 11, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9879675
feat(health): detect token revocation via authenticated health checks
polaz 3ddfc41
fix(health): use neutral 401 message; test no-token skip path
polaz 56cd228
test(health): extract helpers to reduce duplication in revocation tests
polaz 4cf2486
test(health): reduce token revocation test duplication via it.each an…
polaz bb895f2
fix(health): route 403 from authenticated probe to failed state; add …
polaz e9a0ab8
chore(sonar): exclude test files from copy-paste detection
polaz d7d618f
refactor(health): extract shared healthCheckOnError constant to elimi…
polaz e7fed88
refactor(health): replace startsWith auth checks with parseGitLabApiE…
polaz b3f57c6
fix(health): suppress unreachable istanbul branches in auth probe guards
polaz f311ab5
fix(health): revalidate token on forceReconnect fast-path; add regres…
polaz 2a1bf83
fix(health): use token-only probe to prevent session cookie masking
polaz 60d9e40
refactor(test): move token revocation helpers to outer describe scope
polaz a2a31c3
fix(ci): bash syntax error in release summary when changelog has mark…
polaz 1e3fded
test(health): exercise performConnect fast-path in token-still-revoke…
polaz 8fa0311
test(health): assert token-only probe contract in revocation tests
polaz a9d4bb6
test(health): move stubUserEndpointStatus to module scope
polaz fa28b1c
docs(health): add missing JSDoc to HealthMonitor class and getInstanc…
polaz 328f95b
fix(health): narrow error swallow in authenticatedTokenCheck to abort…
polaz 119cc0a
test(health): derive ok flag from status code in stubUserEndpointStatus
polaz e2204b7
fix(health): throw on non-2xx responses in authenticatedTokenCheck
polaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # SonarCloud configuration | ||
| # https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ | ||
|
|
||
| # Exclude test files from Copy-Paste Detection (CPD). | ||
| # Test files naturally repeat assertion patterns (expect, mock setup, await) across | ||
| # test cases — this is intentional test structure, not accidental code duplication. | ||
| sonar.cpd.exclusions=tests/** |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.