-
Notifications
You must be signed in to change notification settings - Fork 14
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
API/Web Access Logs Requirements #2790
Comments
I've confirmed that web was already recording the x_forwarded_for and I updated the configuration to filter out the health checks. The API needs to read the x_forwarded_for and write it and the guid of the user to the associated logs. |
@sslaws I would say the first AC below would be no longer needed after your last commit, right? During the call we were able to see the client IP correctly logged. Would you agree to remove the below AC? Make necessary changes to the web app access logs to write the actual address of the end user as the requesting IP address. |
@JasonCTang the second AC mentioned "Web" but we believe that it meant "SIMS API", does it make sense? Stop logging health check log entries in Web access logs |
@andrewsignori-aot I think it did mean web and I resolved that already but I do see that it applies to the API as well as they are overly verbose. |
Yes @sslaws the APIs ones should be removed. Since the web part is handled, can we adjust the ACs as below?
|
As discussed with @JasonCTang we are removing the below ACs related to the Web POD that are already implemented.
|
# Update API Access Logs ## Implementation of Access logging with NestJS Middleware - [x] Created a middleware to log all the requests coming to API, except the health check requests using `NestJS Middleware` Resource: https://docs.nestjs.com/middleware - [x] Log `Http Method`, `URL` ,`Client IP` ,`User GUID(on authenticated endpoints)` and `User Agent Header` for all requests to API. ### Authenticated API access logs  ### Non-Authenticated API access logs  ## Refactor health controller - [x] Refactored the class name and endpoint of health controller(Previously known as app controller) ## Centralization - [x] Centralized the code to get client IP from HTTP request.
Describe the task
Changes to logging to satisfy security audit requirements
Acceptance Criteria
sims.users.user_name
) of the user associated with any API call log entries.http_x_forwarded_for
. Similar log was also done for All users' log in / log off needs to be logged #18.Additional context
The text was updated successfully, but these errors were encountered: