Skip to content

feat: enforce gateway scope authorization - #23

Merged
ramioooz merged 4 commits into
mainfrom
feature/203-gateway-security
Sep 4, 2026
Merged

ramioooz merged 4 commits into
mainfrom
feature/203-gateway-security

Conversation

@ramioooz

@ramioooz ramioooz commented Sep 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Enforce JWT authentication and scope authorization at the API Gateway when gateway.security.enabled=true.
  • Require admin.internal for admin APIs and centralized OpenAPI documentation.
  • Require mfa.internal, transaction.internal, and payment.internal for the corresponding workflow routes.
  • Require authentication for customer and account APIs while keeping health endpoints and Auth login public.
  • Return stable RFC 7807-style Problem Details for gateway 401 and 403 responses.
  • Support local SIT HMAC validation and future OIDC/JWK validation without committing secrets.
  • Inject the SIT JWT secret from the auth-service-secrets Kubernetes Secret.

Project Tracking

Fixes digital-bank-java/.github#203

Related:

Merge Order

Merge the shared secret runbook and Auth scope configuration before this PR, then merge the gateway implementation. Merge config-repo#39 after this PR and its dependent service contracts are available. There is no fixed delay between merges; wait for the Config Server revision to be available and then roll out the gateway.

Verification

  • ./mvnw verify passed: 13 tests, 0 failures.
  • helm lint helm --strict --values helm/values-sit.yaml passed.
  • helm template api-gateway helm --values helm/values-sit.yaml | kubectl apply --dry-run=client -f - passed.
  • Default Helm render keeps security disabled and omits the JWT Secret reference.
  • Focused security coverage verifies public health, unauthenticated admin access (401), and insufficient scope (403).

No redundant endpoint-specific tests were added.

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.

TASK: Enforce scope-based authorization at API Gateway

1 participant