Org-FoodService / FoodServiceAPI

FoodService is a .NET 8.0-based service, optimizing snack bar operations through menu management, inventory tracking, and potential delivery integration. With Docker and SQLServer dependencies, it streamlines processes for snack bar owners, enhancing efficiency and customer experience.
https://foodservice-api.azurewebsites.net/swagger
3 stars 1 forks source link

Exclude sensitive properties while logging the request/response #25

Closed yogendrasgautam closed 3 months ago

yogendrasgautam commented 3 months ago

Currently while logging the request and response we are logging all the properties of request or response DTO. This expose the sensitive details as well.

To achieve this, instead of using middlewares for logging request/response, Use IAsyncActionFilter.

yogendrasgautam commented 3 months ago

@NicolasBuscarini Found th fix for excluding sensitive information while logging, Let me know if I can start with the implementation.

NicolasBuscarini commented 3 months ago

Sure. Please base it on the develop branch.