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

Conversation

pmauduit
Copy link
Member

Somehow relates to #112

This work has been done on the DT fork but not ported here yet.

TODO:

  • Adding documentation ; DT is making use of JSON format, I think we can have something as JSON or closer to what is expected in Produce logs for the analytics module #112 with only changes in the logging configuration, making everyone happy. Note that the -Dreactor.netty.http.server.accessLogEnabled=true should also be documented
  • One test related to rabbitmq event emission is failing, because it expects an output from the console testcontainer, which somehow does not work with the modified logging configuration. There might be something more relevant than parsing the container output as test result, but not sure of what could be a better approach yet.

pmauduit and others added 3 commits March 26, 2024 18:44
…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.
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.
@pmauduit
Copy link
Member Author

  • One test related to rabbitmq event emission is failing

maybe the test should go into the console testsuite instead of here ?

@f-necas f-necas force-pushed the main branch 2 times, most recently from 74698bf to 4660e3a Compare July 11, 2024 09:45
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.

2 participants