You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The advanced data scrubbing settings are represented as a JSON-encoded string in their API:
# GET https://sentry.io/api/0/projects/<organization>/<project>/
{
# ...
"relayPiiConfig": "{\"rules\":{\"0\":{\"type\":\"creditcard\",\"redaction\":{\"method\":\"hash\"}},\"1\":{\"type\":\"creditcard\",\"redaction\":{\"method\":\"remove\"}},\"2\":{\"type\":\"anything\",\"redaction\":{\"method\":\"hash\"}},\"3\":{\"type\":\"imei\",\"redaction\":{\"method\":\"remove\"}}},\"applications\":{\"**\":[\"0\"],\"password\":[\"1\",\"2\"],\"$http.headers.x-custom-token\":[\"3\"]}}",
}
The schema is defined in their relay project which is written in Rust. Significant effort is needed to port the schema and validation rules to Go. Therefore, my proposal is to build the rules via Sentry's UI and copy the resulting JSON into the sentry_project resource configuration. It's a less ideal Terraform experience, but it is much simpler to implement.
Reference: https://docs.sentry.io/product/data-management-settings/scrubbing/
Enhancement 1: New properties in the
sentry_project
resourceEnhancement 2: Advanced data scrubbing
The advanced data scrubbing settings are represented as a JSON-encoded string in their API:
The schema is defined in their relay project which is written in Rust. Significant effort is needed to port the schema and validation rules to Go. Therefore, my proposal is to build the rules via Sentry's UI and copy the resulting JSON into the
sentry_project
resource configuration. It's a less ideal Terraform experience, but it is much simpler to implement.The text was updated successfully, but these errors were encountered: