Tag: pii
-
How do you mask sensitive request params in gqlgen?
1 I am currently using gqlgen and would like to log request parameters for error investigation purposes. While I know how to access request parameters like below, I am concerned that this way may log sensitive information such as email addresses or passwords. srv.SetErrorPresenter(func(ctx context.Context, err error) *gqlerror.Error { goc := graphql.GetOperationContext(ctx) fmt.Println(goc.Variables) // i…