gofr icon indicating copy to clipboard operation
gofr copied to clipboard

Support to filter and mask PII data from logs at the framework level

Open SUKANT007 opened this issue 10 months ago • 4 comments

Due to privacy concerns, many times we have to mask PII data from logs, rather than each service writing their own filter and masking libraries, This could be supported at the framework level.

Expected Behaviour:

  • Gofr logger supports filter interface which can be implemented.
  • Default filter interface implementation by the framework.
  • Support struct tags for to filter particular fields from the struct while logging.

Attaching references where this is implemented:

  • https://go-kratos.dev/en/docs/component/log/#filter-log-filtering
  • https://github.com/m-mizutani/masq

SUKANT007 avatar Apr 13 '24 15:04 SUKANT007

@srijan-27 Please assign this to me.

srinivas365 avatar Aug 05 '24 04:08 srinivas365

Sure @srinivas365 - assigning this to you.

srijan-27 avatar Aug 05 '24 04:08 srijan-27

@srinivas365 - Hi, just wanted to know if you are working on it? Pls let me know if you are stuck or need any help.

srijan-27 avatar Aug 16 '24 06:08 srijan-27

@srijan-27 got little busy with projects. unassigning myself.

srinivas365 avatar Aug 18 '24 17:08 srinivas365