From 38d496ae862b75a2c6a88759539036a745f876e8 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Sat, 10 Aug 2024 17:57:07 +0200 Subject: [PATCH] More GCP DLP InfoTypes enabled --- src/redacters/gcp_dlp.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/redacters/gcp_dlp.rs b/src/redacters/gcp_dlp.rs index 95679be..641cf87 100644 --- a/src/redacters/gcp_dlp.rs +++ b/src/redacters/gcp_dlp.rs @@ -27,7 +27,7 @@ pub struct GcpDlpRedacterOptions { } impl<'a> GcpDlpRedacter<'a> { - pub const INFO_TYPES: [&'static str; 11] = [ + pub const INFO_TYPES: [&'static str; 20] = [ "PHONE_NUMBER", "EMAIL_ADDRESS", "CREDIT_CARD_NUMBER", @@ -39,6 +39,15 @@ impl<'a> GcpDlpRedacter<'a> { "GENDER", "IP_ADDRESS", "PASSPORT", + "AUTH_TOKEN", + "AWS_CREDENTIALS", + "BASIC_AUTH_HEADER", + "VAT_NUMBER", + "PASSWORD", + "OAUTH_CLIENT_SECRET", + "IBAN_CODE", + "GCP_API_KEY", + "ENCRYPTION_KEY", ]; pub async fn new( redacter_options: RedacterOptions,