opentdf / platform

Persistent data centric security that extends owner control wherever data travels
BSD 3-Clause Clear License
19 stars 11 forks source link

Authorization service is logging the subject mappings during an AccessPDP check #1503

Closed jrschumacher closed 1 month ago

jrschumacher commented 3 months ago

There is somewhere in the code that is logging all subject mappings when log level is set to debug. Debug log level should still be performant even when debugging an issue. With the log being so large, this could potentially decrease performance as subject mappings are added.

Find in the code where this log statement is taking place and remove it or change it to trace level log.

Acceptance Criteria:

elizabethhealy commented 3 months ago

some places where the logs are big https://github.com/opentdf/platform/blob/144aeda9141123cbfad44271844df49d632744f2/service/internal/access/pdp.go#L56 https://github.com/opentdf/platform/blob/144aeda9141123cbfad44271844df49d632744f2/service/internal/access/pdp.go#L267

strantalis commented 3 months ago

Also https://github.com/opentdf/platform/blob/144aeda9141123cbfad44271844df49d632744f2/service/internal/access/pdp.go#L568-L571