Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • rbac rbac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • saas-public
  • rbacrbac
  • Merge requests
  • !6

[IN-784] Classify missing and invalid authentication tokens as 401

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged antonizsar13 requested to merge IN-784 into master Nov 02, 2026
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 4

Missing, malformed, expired, not-yet-valid and incorrectly signed JWTs now return AuthenticationError with BusinessCode 401 and GraphQL extensions.code=401. Public messages omit JWT contents and validation details; Unwrap preserves the original JWT error. Header/cookie precedence and successful authentication remain unchanged. Access-checker permission and infrastructure errors pass through unchanged. Validation: go test -race ./..., go vet ./... and git diff --check passed. A local integration probe using the existing playlist-service middleware confirmed warning/401 plus GraphQL code 401 for token rejections, successful valid-token requests and error/500 for an infrastructure failure. No dependency versions or deployments changed; consumers need a new rbac release.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: IN-784