lyft / clutch

Extensible platform for infrastructure management

Home Page:https://clutch.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

audit: provide the ability to redact specific fields from being saved in the audit db

scarlettperry opened this issue · comments

Description
In the audit DB, we save the request and response of an API call as metadata. We currently have the ability to redact the entire request and response field values from being saved in the audit db if it contains sensitive data.

Example

message LoginRequest {
option (clutch.api.v1.redacted) = true;
string redirect_url = 1;
}

However, it would be great to be able to specify which specific fields should be redacted so that the non-sensitive values can be preserved in the audit db. An example use case of this raised in #1201.

Complexity [S/M/L]: S