Skip to content
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

accesslog - porting accesslogs capabilities from DT's gateway #113

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Mar 26, 2024

  1. Add AccessLog and X-Request-Id filters to provide additional informat…

    …ion on the MDC
    
    The `AccessLogFilter` logs at the `org.georchestra.gateway.accesslog`
    logging topic, appending additional information to the MDC useful for
    analysis on collected logs:
    
    - route-id
    - route-uri
    - remoteAddress
    - auth-user
    - auth-roles
    - X-Request-ID
    
    The `RequestIdGlobalFilter` propagates incoming `X-Request-ID` request headers
    to the downstream services, and returns the same value to the caller.
    pmauduit committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    70ab13e View commit details
    Browse the repository at this point in the history
  2. AccessLog: log the effective role names as auth-roles

    The effective authentication role names may differ from the authority
    names given by the authentication provider due to role mappings.
    
    Use the effective set of role names as the MDC's auth-roles entry,
    and add the auth provider role names as principal-roles for the sake of
    debugging.
    groldan authored and pmauduit committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    ef3e6c9 View commit details
    Browse the repository at this point in the history
  3. AccessLogFilter: clear MDC after logging

    groldan authored and pmauduit committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    08d6b84 View commit details
    Browse the repository at this point in the history