From 746209aaf6ccb67a19870ea9513694762d408eac Mon Sep 17 00:00:00 2001 From: amaskara-dd <175134603+amaskara-dd@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:09:57 -0500 Subject: [PATCH] Revert "Make recommended keywords an opt-out option in terraform (#2667)" This reverts commit 91276c1c7b74d80741851e909cc53a09b1aaeca2. --- .github/CODEOWNERS | 2 +- ...rce_datadog_sensitive_data_scanner_rule.go | 48 +--- ...estAccSensitiveDataScannerRuleBasic.freeze | 2 +- .../TestAccSensitiveDataScannerRuleBasic.yaml | 261 ++++++++---------- ...atadog_sensitive_data_scanner_rule_test.go | 97 ++----- docs/resources/sensitive_data_scanner_rule.md | 24 +- .../resource.tf | 22 +- go.mod | 2 +- 8 files changed, 150 insertions(+), 308 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1bdedb108..460d8d729 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -38,7 +38,7 @@ datadog/**/*datadog_integration_confluent* @DataDog/api-clients @DataDog/sa datadog/**/*datadog_integration_fastly* @DataDog/api-clients @DataDog/saas-integrations datadog/**/*datadog_integration_gcp* @DataDog/api-clients @DataDog/gcp-integrations datadog/**/*datadog_restriction_policy* @DataDog/api-clients @DataDog/aaa-granular-access -datadog/**/*datadog_sensitive_data_scanner* @DataDog/api-clients @DataDog/sensitive-data-scanner +datadog/**/*datadog_sensitive_data_scanner* @DataDog/api-clients @DataDog/logs-app @DataDog/sensitive-data-scanner datadog/**/*datadog_service_account* @DataDog/api-clients @DataDog/team-aaa datadog/**/*datadog_spans_metric* @DataDog/api-clients @DataDog/apm-trace-intake datadog/**/*datadog_synthetics_concurrency_cap* @DataDog/api-clients @DataDog/synthetics-app @DataDog/synthetics-ct diff --git a/datadog/resource_datadog_sensitive_data_scanner_rule.go b/datadog/resource_datadog_sensitive_data_scanner_rule.go index bb046fe5e..740d78549 100644 --- a/datadog/resource_datadog_sensitive_data_scanner_rule.go +++ b/datadog/resource_datadog_sensitive_data_scanner_rule.go @@ -80,7 +80,7 @@ func resourceDatadogSensitiveDataScannerRule() *schema.Resource { Optional: true, MaxItems: 1, ForceNew: true, // If the attribute is removed, we need to recreate the rule. - Description: "Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. If the rule has the `standard_pattern_id` field, then discarding this field will apply the recommended keywords. Setting the `create_before_destroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups.", + Description: "Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the `create_before_destroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "keywords": { @@ -303,11 +303,9 @@ func buildSensitiveDataScannerRuleAttributes(d *schema.ResourceData) *datadogV2. attributes.SetTextReplacement(textReplacement) - var includedKeywordConfiguration datadogV2.SensitiveDataScannerIncludedKeywordConfiguration - - _, hasSp := d.GetOk("standard_pattern_id") if _, ok := d.GetOk("included_keyword_configuration"); ok { - // The user is creating a rule with an included keyword configuration specified. Let's simply build that object + var includedKeywordConfiguration datadogV2.SensitiveDataScannerIncludedKeywordConfiguration + keywords := []string{} for _, kw := range d.Get("included_keyword_configuration.0.keywords").([]interface{}) { keywords = append(keywords, kw.(string)) @@ -317,18 +315,6 @@ func buildSensitiveDataScannerRuleAttributes(d *schema.ResourceData) *datadogV2. if characterCount, ok := d.GetOk("included_keyword_configuration.0.character_count"); ok { includedKeywordConfiguration.SetCharacterCount(int64(characterCount.(int))) } - if hasSp { - // If the user creates a rule derived from a standard rule, let's add that the rule is not using the recommended keywords. - includedKeywordConfiguration.SetUseRecommendedKeywords(false) - } - attributes.SetIncludedKeywordConfiguration(includedKeywordConfiguration) - } else if hasSp { - // The user is creating / updating a rule derived from a standard rule, without specifying an included keyword configuration. - // Let's use the recommended keywords here by default. - keywords := make([]string, 0) - includedKeywordConfiguration.SetKeywords(keywords) - includedKeywordConfiguration.SetCharacterCount(int64(30)) - includedKeywordConfiguration.SetUseRecommendedKeywords(true) attributes.SetIncludedKeywordConfiguration(includedKeywordConfiguration) } @@ -432,24 +418,18 @@ func updateSensitiveDataScannerRuleState(d *schema.ResourceData, ruleAttributes } if incKw, ok := ruleAttributes.GetIncludedKeywordConfigurationOk(); ok && incKw != nil { - if _, hasSp := d.GetOk("standard_pattern_id"); hasSp && incKw.GetUseRecommendedKeywords() { - // This situation occurs when the rule is derived from a standard pattern, and that uses the recommended keywords. - // In that case, we shouldn't do anything because it means the user has chosen the default option. - } else { - includedKeywordConfig := make(map[string]interface{}) - includedKeywordConfigList := make([]map[string]interface{}, 0, 1) - - if keywords, ok := incKw.GetKeywordsOk(); ok { - includedKeywordConfig["keywords"] = keywords - } - if characterCount, ok := incKw.GetCharacterCountOk(); ok { - includedKeywordConfig["character_count"] = characterCount - } - includedKeywordConfigList = append(includedKeywordConfigList, includedKeywordConfig) - if err := d.Set("included_keyword_configuration", includedKeywordConfigList); err != nil { - return diag.FromErr(err) + includedKeywordConfig := make(map[string]interface{}) + includedKeywordConfigList := make([]map[string]interface{}, 0, 1) - } + if keywords, ok := incKw.GetKeywordsOk(); ok { + includedKeywordConfig["keywords"] = keywords + } + if characterCount, ok := incKw.GetCharacterCountOk(); ok { + includedKeywordConfig["character_count"] = characterCount + } + includedKeywordConfigList = append(includedKeywordConfigList, includedKeywordConfig) + if err := d.Set("included_keyword_configuration", includedKeywordConfigList); err != nil { + return diag.FromErr(err) } } diff --git a/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.freeze b/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.freeze index cf59a3e9b..ff762ea5e 100644 --- a/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.freeze +++ b/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.freeze @@ -1 +1 @@ -2024-11-13T15:46:07.246591+01:00 \ No newline at end of file +2024-04-22T11:53:12.603353+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.yaml b/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.yaml index 04bfe08f0..29a68d8b5 100644 --- a/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.yaml +++ b/datadog/tests/cassettes/TestAccSensitiveDataScannerRuleBasic.yaml @@ -32,26 +32,26 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},"meta":{"version":252572}} + {"data":{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},"meta":{"version":136}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 419.31075ms + duration: 431.146666ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 441 + content_length: 427 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"a description","excluded_namespaces":["username"],"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"pattern":"regex","tags":["sensitive_data:true"],"text_replacement":{"type":"none"}},"relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} + {"data":{"attributes":{"description":"a description","excluded_namespaces":["username"],"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"pattern":"regex","tags":["sensitive_data:true"],"text_replacement":{"type":"none"}},"relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} form: {} headers: Accept: @@ -70,13 +70,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}},"meta":{"version":252573}} + {"data":{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}},"meta":{"version":137}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 154.1965ms + duration: 166.586541ms - id: 2 request: proto: HTTP/1.1 @@ -105,13 +105,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252573,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","type":"sensitive_data_scanner_rule"}]}}},{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":137,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"s-ByqbAzRx-RPWEQbS3vgw","type":"sensitive_data_scanner_rule"}]}}},{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 131.926875ms + duration: 149.4ms - id: 3 request: proto: HTTP/1.1 @@ -140,13 +140,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252573,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","type":"sensitive_data_scanner_rule"}]}}},{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":137,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"s-ByqbAzRx-RPWEQbS3vgw","type":"sensitive_data_scanner_rule"}]}}},{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 152.519459ms + duration: 139.959709ms - id: 4 request: proto: HTTP/1.1 @@ -175,13 +175,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252573,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","type":"sensitive_data_scanner_rule"}]}}},{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":137,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"s-ByqbAzRx-RPWEQbS3vgw","type":"sensitive_data_scanner_rule"}]}}},{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 136.771958ms + duration: 143.80425ms - id: 5 request: proto: HTTP/1.1 @@ -210,13 +210,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252573,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","type":"sensitive_data_scanner_rule"}]}}},{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":137,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"s-ByqbAzRx-RPWEQbS3vgw","type":"sensitive_data_scanner_rule"}]}}},{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 118.253125ms + duration: 149.351083ms - id: 6 request: proto: HTTP/1.1 @@ -245,13 +245,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252573,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","type":"sensitive_data_scanner_rule"}]}}},{"id":"54c68c4a-84cb-46ad-97fa-da7b816d116a","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":137,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"s-ByqbAzRx-RPWEQbS3vgw","type":"sensitive_data_scanner_rule"}]}}},{"id":"s-ByqbAzRx-RPWEQbS3vgw","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 122.50175ms + duration: 142.621667ms - id: 7 request: proto: HTTP/1.1 @@ -271,7 +271,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/54c68c4a-84cb-46ad-97fa-da7b816d116a + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/s-ByqbAzRx-RPWEQbS3vgw method: DELETE response: proto: HTTP/1.1 @@ -279,36 +279,36 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252574}} + {"meta":{"version":138}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 150.564292ms + duration: 170.184375ms - id: 8 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 219 + content_length: 205 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"","filter":{"query":"*"},"is_enabled":false,"name":"my group","product_list":["logs"]},"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},"meta":{}} + {"data":{"attributes":{"description":"","filter":{"query":"*"},"is_enabled":false,"name":"my group","product_list":["logs"]},"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},"meta":{}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/0fb93c59-0792-4293-b309-d952a314d0f2 + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/V9JXrnmpSVabmxZH8EL99w method: PATCH response: proto: HTTP/1.1 @@ -316,29 +316,29 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252575}} + {"meta":{"version":139}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 171.868833ms + duration: 191.168125ms - id: 9 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 597 + content_length: 583 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"included_keyword_configuration":{"character_count":20,"keywords":["credit card","cc"]},"is_enabled":false,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"pattern":"regex","priority":1,"tags":["sensitive_data:true"],"text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"}},"relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} + {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"included_keyword_configuration":{"character_count":20,"keywords":["credit card","cc"]},"is_enabled":false,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"pattern":"regex","priority":1,"tags":["sensitive_data:true"],"text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"}},"relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} form: {} headers: Accept: @@ -357,13 +357,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}},"meta":{"version":252576}} + {"data":{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}},"meta":{"version":140}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 160.281834ms + duration: 163.751708ms - id: 10 request: proto: HTTP/1.1 @@ -392,13 +392,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":140,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"8FuEvC0PQjKKg7egDnnGvQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 123.390959ms + duration: 151.331166ms - id: 11 request: proto: HTTP/1.1 @@ -427,13 +427,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":140,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"8FuEvC0PQjKKg7egDnnGvQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 145.25225ms + duration: 143.459208ms - id: 12 request: proto: HTTP/1.1 @@ -462,13 +462,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":140,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"8FuEvC0PQjKKg7egDnnGvQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 127.667458ms + duration: 159.631292ms - id: 13 request: proto: HTTP/1.1 @@ -497,13 +497,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":140,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"8FuEvC0PQjKKg7egDnnGvQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 133.584834ms + duration: 144.288917ms - id: 14 request: proto: HTTP/1.1 @@ -532,49 +532,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":140,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"8FuEvC0PQjKKg7egDnnGvQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"8FuEvC0PQjKKg7egDnnGvQ","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 125.919209ms + duration: 285.945625ms - id: 15 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [] - trailer: {} - host: api.datadoghq.com - remote_addr: "" - request_uri: "" - body: "" - form: {} - headers: - Accept: - - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config - method: GET - response: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - transfer_encoding: - - chunked - trailer: {} - content_length: -1 - uncompressed: true - body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252576,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","type":"sensitive_data_scanner_rule"}]}}},{"id":"2f9876e7-8d8d-455a-8c50-827bf1544db8","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":false,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"}}}}]} - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 263.248167ms - - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -593,7 +558,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/2f9876e7-8d8d-455a-8c50-827bf1544db8 + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/8FuEvC0PQjKKg7egDnnGvQ method: DELETE response: proto: HTTP/1.1 @@ -601,17 +566,17 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252577}} + {"meta":{"version":141}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 169.199208ms - - id: 17 + duration: 178.783917ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -642,26 +607,26 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},"meta":{"version":252578}} + {"data":{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},"meta":{"version":142}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 154.305083ms - - id: 18 + duration: 255.280333ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 596 + content_length: 582 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"included_keyword_configuration":{"character_count":20,"keywords":["credit card","cc"]},"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"pattern":"regex","priority":1,"tags":["sensitive_data:true"],"text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"}},"relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} + {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"included_keyword_configuration":{"character_count":20,"keywords":["credit card","cc"]},"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"pattern":"regex","priority":1,"tags":["sensitive_data:true"],"text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"}},"relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} form: {} headers: Accept: @@ -680,14 +645,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}},"meta":{"version":252579}} + {"data":{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}},"meta":{"version":143}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 158.03875ms - - id: 19 + duration: 172.100083ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -715,14 +680,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 139.836625ms - - id: 20 + duration: 149.3145ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -750,14 +715,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 130.535917ms - - id: 21 + duration: 148.669958ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -785,14 +750,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 130.501583ms - - id: 22 + duration: 156.708709ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -820,14 +785,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 149.836ms - - id: 23 + duration: 156.983209ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -855,14 +820,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 128.640458ms - - id: 24 + duration: 143.354708ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -890,14 +855,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 128.643583ms - - id: 25 + duration: 146.973916ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -925,14 +890,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252579,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"07bd636f-278a-47ee-9a26-720600cae6af","type":"sensitive_data_scanner_rule"}]}}},{"id":"07bd636f-278a-47ee-9a26-720600cae6af","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":143,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"mFLNPVsFRcesMUkN82Ey1w","type":"sensitive_data_scanner_rule"}]}}},{"id":"mFLNPVsFRcesMUkN82Ey1w","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"number_of_chars":10,"type":"partial_replacement_from_beginning"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description","priority":1,"included_keyword_configuration":{"keywords":["credit card","cc"],"character_count":20}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 131.746042ms - - id: 26 + duration: 145.181542ms + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -951,7 +916,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/07bd636f-278a-47ee-9a26-720600cae6af + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/mFLNPVsFRcesMUkN82Ey1w method: DELETE response: proto: HTTP/1.1 @@ -959,29 +924,29 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252580}} + {"meta":{"version":144}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 179.811292ms - - id: 27 + duration: 171.38925ms + - id: 26 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 444 + content_length: 430 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"pattern":"regex","tags":["sensitive_data:true"],"text_replacement":{"type":"none"}},"relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} + {"data":{"attributes":{"description":"another description","excluded_namespaces":["email"],"is_enabled":true,"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"pattern":"regex","tags":["sensitive_data:true"],"text_replacement":{"type":"none"}},"relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}} form: {} headers: Accept: @@ -1000,14 +965,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}},"meta":{"version":252581}} + {"data":{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}},"meta":{"version":145}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 141.976917ms - - id: 28 + duration: 177.613166ms + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -1035,14 +1000,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252581,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","type":"sensitive_data_scanner_rule"}]}}},{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":145,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","type":"sensitive_data_scanner_rule"}]}}},{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 127.975958ms - - id: 29 + duration: 142.140417ms + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -1070,14 +1035,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252581,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","type":"sensitive_data_scanner_rule"}]}}},{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":145,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","type":"sensitive_data_scanner_rule"}]}}},{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 128.297958ms - - id: 30 + duration: 139.781209ms + - id: 29 request: proto: HTTP/1.1 proto_major: 1 @@ -1105,14 +1070,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252581,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","type":"sensitive_data_scanner_rule"}]}}},{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":145,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","type":"sensitive_data_scanner_rule"}]}}},{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 131.478583ms - - id: 31 + duration: 142.54975ms + - id: 30 request: proto: HTTP/1.1 proto_major: 1 @@ -1140,14 +1105,14 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","type":"sensitive_data_scanner_group"},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252581,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0fb93c59-0792-4293-b309-d952a314d0f2","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","type":"sensitive_data_scanner_rule"}]}}},{"id":"93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1731509167","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"128ec137-0a0a-445f-b6e5-77c54ca55505","type":"sensitive_data_scanner_group"}}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"},{"id":"V9JXrnmpSVabmxZH8EL99w","type":"sensitive_data_scanner_group"},{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":145,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}},{"id":"V9JXrnmpSVabmxZH8EL99w","attributes":{"name":"my group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"qREd6n8pSiulyVHqivNQ_g","attributes":{"name":"another group","is_enabled":false,"filter":{"query":"*"},"product_list":["apm"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","type":"sensitive_data_scanner_rule"}]}}},{"id":"GZ_ofZ9gRHuWGVN6HNjJ2g","attributes":{"name":"tf-TestAccSensitiveDataScannerRuleBasic-local-1713779592","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"qREd6n8pSiulyVHqivNQ_g","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 137.68825ms - - id: 32 + duration: 135.7385ms + - id: 31 request: proto: HTTP/1.1 proto_major: 1 @@ -1166,7 +1131,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/0fb93c59-0792-4293-b309-d952a314d0f2 + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/V9JXrnmpSVabmxZH8EL99w method: DELETE response: proto: HTTP/1.1 @@ -1174,17 +1139,17 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252582}} + {"meta":{"version":146}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 181.59675ms - - id: 33 + duration: 189.865958ms + - id: 32 request: proto: HTTP/1.1 proto_major: 1 @@ -1203,7 +1168,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/93b4bef5-ea9e-4f13-8fc5-37c1fa378e8b + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/GZ_ofZ9gRHuWGVN6HNjJ2g method: DELETE response: proto: HTTP/1.1 @@ -1211,17 +1176,17 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252583}} + {"meta":{"version":147}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 158.406792ms - - id: 34 + duration: 169.9935ms + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1240,7 +1205,7 @@ interactions: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/128ec137-0a0a-445f-b6e5-77c54ca55505 + url: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/qREd6n8pSiulyVHqivNQ_g method: DELETE response: proto: HTTP/1.1 @@ -1248,17 +1213,17 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 28 + content_length: 25 uncompressed: false body: | - {"meta":{"version":252584}} + {"meta":{"version":148}} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 162.044ms - - id: 35 + duration: 165.723209ms + - id: 34 request: proto: HTTP/1.1 proto_major: 1 @@ -1286,10 +1251,10 @@ interactions: content_length: -1 uncompressed: true body: | - {"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","type":"sensitive_data_scanner_group"},{"id":"TaGOHR22Smiz8EWCJmfUvA","type":"sensitive_data_scanner_group"},{"id":"EXHsPd7aRE2XfaFi26AMXg","type":"sensitive_data_scanner_group"},{"id":"9ZSFF7uGREyPZwjPRR7yOw","type":"sensitive_data_scanner_group"},{"id":"sDKyWbfXQA6NGGwXEgNgMA","type":"sensitive_data_scanner_group"},{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"},{"id":"oUiAzxBFR3qcKjGWtYX_7g","type":"sensitive_data_scanner_group"},{"id":"ppjqNwZxQqG9gb6iTXcNTw","type":"sensitive_data_scanner_group"},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":252584,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xdfyyx1FSzqEaNwOpqhsFw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"TaGOHR22Smiz8EWCJmfUvA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"EXHsPd7aRE2XfaFi26AMXg","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"9ZSFF7uGREyPZwjPRR7yOw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"sDKyWbfXQA6NGGwXEgNgMA","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"0QvFjxASTxK2VgAIXOgGnQ","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"M4PLjvGWR7CMz6XlCjAadA","type":"sensitive_data_scanner_rule"}]}}},{"id":"M4PLjvGWR7CMz6XlCjAadA","attributes":{"name":"tf-TestAccDatadogSensitiveDataScannerRule_DefaultTags-local-1721743568","namespaces":[],"excluded_namespaces":["username"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true","default_key:default_value"],"labels":[],"is_enabled":true,"description":"a description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"0QvFjxASTxK2VgAIXOgGnQ","type":"sensitive_data_scanner_group"}}}},{"id":"oUiAzxBFR3qcKjGWtYX_7g","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"ppjqNwZxQqG9gb6iTXcNTw","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},{"id":"d911f970-2c9a-471c-8546-78c5218a9a36","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}}]} + {"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"},{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"},{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}]}}},"meta":{"version":148,"count_limit":100,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false},"included":[{"id":"xLXhi1Q_ShyCR_W-CbB70g","attributes":{"name":"my real group","is_enabled":true,"filter":{"query":"chicken:tikkamassala"},"product_list":["logs"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"yr8tT_DYTCOOYNTXmw6NZA","type":"sensitive_data_scanner_rule"},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","type":"sensitive_data_scanner_rule"}]}}},{"id":"yr8tT_DYTCOOYNTXmw6NZA","attributes":{"name":"my aws rule","namespaces":[],"excluded_namespaces":["username"],"text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"OfGqX8R9TRqAcorxenl2fQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"ZwV_4PSwQnqH0UdIsXTrNw","attributes":{"name":"hello world","namespaces":[],"excluded_namespaces":["email"],"pattern":"regex","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"description":"another description"},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"xLXhi1Q_ShyCR_W-CbB70g","type":"sensitive_data_scanner_group"}}}},{"id":"zh4ywhwqT4ySZdOAoh6cqg","attributes":{"name":"my group","is_enabled":true,"filter":{"query":"*"},"product_list":["logs","events"],"description":"","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"bn7VQmdJRnOg4augZFcpdA","type":"sensitive_data_scanner_rule"}]}}},{"id":"bn7VQmdJRnOg4augZFcpdA","attributes":{"name":"Rule test","namespaces":["admin"],"excluded_namespaces":["admin.name"],"pattern":"regex","text_replacement":{"number_of_chars":2,"type":"partial_replacement_from_beginning"},"tags":[],"labels":[],"is_enabled":true,"description":"Hello","included_keyword_configuration":{"keywords":["hello","world"],"character_count":10}},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"zh4ywhwqT4ySZdOAoh6cqg","type":"sensitive_data_scanner_group"}}}},{"id":"TJkcbdrkRFGqEDhWQUVU4Q","attributes":{"name":"Experimental (hackathon)","is_enabled":true,"filter":{"query":"@scan_mode:sds "},"product_list":["logs"],"description":"This is an experimental aims to test the performance of openai based SDS","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"oq2CuLgOSQ6Nf5nicbng7Q","type":"sensitive_data_scanner_rule"},{"id":"fYAElXBkRVuo4AJFM-CN4Q","type":"sensitive_data_scanner_rule"},{"id":"nFwyccf-STyFFDYQQyXRqA","type":"sensitive_data_scanner_rule"},{"id":"0KkECl1NShuuMtbvcIDUkQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"oq2CuLgOSQ6Nf5nicbng7Q","attributes":{"name":"Standard Email Address Scanner","namespaces":["email"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:email_address","sensitive_data_category:email_address","sensitive_data:email"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"PuXiVTCkTHOtj0Yad1ppsw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"fYAElXBkRVuo4AJFM-CN4Q","attributes":{"name":"Standard Iban Code Scanner","namespaces":["iban"],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:iban_code","sensitive_data_category:iban_code"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"8VS2RKxzR8a_95L5fuwaXQ","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"nFwyccf-STyFFDYQQyXRqA","attributes":{"name":"SSN rule","namespaces":["ssn"],"excluded_namespaces":[],"pattern":"^\\d{3}-?\\d{2}-?\\d{4}$","text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"0KkECl1NShuuMtbvcIDUkQ","attributes":{"name":"MasterCard Scanner (1x16 digits)","namespaces":[],"excluded_namespaces":[],"text_replacement":{"replacement_string":"[sensitive_data]","type":"replacement_string"},"tags":["sensitive_data:master_card_credit_card","sensitive_data_category:credit_card"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"standard_pattern":{"data":{"id":"76EhmoK3TPqJcpM-fK0pLw","type":"sensitive_data_scanner_standard_pattern"}},"group":{"data":{"id":"TJkcbdrkRFGqEDhWQUVU4Q","type":"sensitive_data_scanner_group"}}}},{"id":"dR860H66Rki-3_7enOu0IA","attributes":{"name":"Experimental Openai scrubbing (Hackathon) ","is_enabled":true,"filter":{"query":"@scan_mode:openai "},"product_list":["logs"],"description":"Group that will highlight openai detections","samplings":[]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"0a0fbaa128db50122e932b9b90c4ec2297e5a1a72a33bf385ac7b144409022d6","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[{"id":"L9NfLTt7QvKJ-JWbahExBQ","type":"sensitive_data_scanner_rule"}]}}},{"id":"L9NfLTt7QvKJ-JWbahExBQ","attributes":{"name":"OpenAI Highlight rule","namespaces":[],"excluded_namespaces":[],"pattern":"(\\[)\\b(sensitive_data)\\b(\\])","text_replacement":{"type":"none"},"tags":["sensitive_data:true","sensitive_data_category:openai"],"labels":[],"is_enabled":true},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"dR860H66Rki-3_7enOu0IA","type":"sensitive_data_scanner_group"}}}}]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 124.888875ms + duration: 146.136042ms diff --git a/datadog/tests/resource_datadog_sensitive_data_scanner_rule_test.go b/datadog/tests/resource_datadog_sensitive_data_scanner_rule_test.go index c1b073704..8bfe73e62 100644 --- a/datadog/tests/resource_datadog_sensitive_data_scanner_rule_test.go +++ b/datadog/tests/resource_datadog_sensitive_data_scanner_rule_test.go @@ -71,7 +71,6 @@ func TestAccSensitiveDataScannerRuleBasic(t *testing.T) { resource_name, "included_keyword_configuration.0.character_count", "20"), resource.TestCheckResourceAttr( resource_name, "priority", "1"), - testAccCheckDatadogSensitiveDataScannerRuleRecommendedKeywords(accProvider, resource_name, nil), ), }, { @@ -133,15 +132,10 @@ func TestAccSensitiveDataScannerRuleWithStandardPattern(t *testing.T) { } ctx, accProviders := testAccProviders(context.Background(), t) - uniq1 := uniqueEntityName(ctx, t) - uniq2 := uniqueEntityName(ctx, t) + uniq := uniqueEntityName(ctx, t) accProvider := testAccProvider(t, accProviders) - resource_name_1 := "datadog_sensitive_data_scanner_rule.sp_rule_1" - resource_name_2 := "datadog_sensitive_data_scanner_rule.sp_rule_2" - - value_true := true - value_false := false + resource_name := "datadog_sensitive_data_scanner_rule.another_rule" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -149,37 +143,23 @@ func TestAccSensitiveDataScannerRuleWithStandardPattern(t *testing.T) { CheckDestroy: testAccCheckDatadogSensitiveDataScannerRuleDestroy(accProvider), Steps: []resource.TestStep{ { - Config: testAccCheckDatadogSensitiveDataScannerRuleWithStandardPattern(uniq1, uniq2), + Config: testAccCheckDatadogSensitiveDataScannerRuleWithStandardPattern(uniq), Check: resource.ComposeTestCheckFunc( - testAccCheckDatadogSensitiveDataScannerRuleExists(accProvider, resource_name_1), - resource.TestCheckResourceAttr( - resource_name_1, "description", "a description"), - resource.TestCheckResourceAttr( - resource_name_1, "is_enabled", "true"), - resource.TestCheckResourceAttr( - resource_name_1, "name", uniq1), - resource.TestCheckResourceAttr( - resource_name_1, "excluded_namespaces.0", "username"), - resource.TestCheckResourceAttr( - resource_name_1, "text_replacement.0.number_of_chars", "10"), + testAccCheckDatadogSensitiveDataScannerRuleExists(accProvider, resource_name), resource.TestCheckResourceAttr( - resource_name_1, "text_replacement.0.type", "partial_replacement_from_beginning"), + resource_name, "description", "a description"), resource.TestCheckResourceAttr( - resource_name_1, "text_replacement.0.replacement_string", ""), + resource_name, "is_enabled", "true"), resource.TestCheckResourceAttr( - resource_name_1, "included_keyword_configuration.0.keywords.0", "credit"), + resource_name, "name", uniq), resource.TestCheckResourceAttr( - resource_name_1, "included_keyword_configuration.0.character_count", "20"), - testAccCheckDatadogSensitiveDataScannerRuleRecommendedKeywords(accProvider, resource_name_1, &value_false), - // assertions on resource 2 - testAccCheckDatadogSensitiveDataScannerRuleExists(accProvider, resource_name_2), + resource_name, "excluded_namespaces.0", "username"), resource.TestCheckResourceAttr( - resource_name_2, "description", "a description"), + resource_name, "text_replacement.0.number_of_chars", "10"), resource.TestCheckResourceAttr( - resource_name_2, "is_enabled", "true"), + resource_name, "text_replacement.0.type", "partial_replacement_from_beginning"), resource.TestCheckResourceAttr( - resource_name_2, "name", uniq2), - testAccCheckDatadogSensitiveDataScannerRuleRecommendedKeywords(accProvider, resource_name_2, &value_true), + resource_name, "text_replacement.0.replacement_string", ""), ), }, }}) @@ -315,7 +295,7 @@ resource "datadog_sensitive_data_scanner_rule" "sample_rule" { `, name) } -func testAccCheckDatadogSensitiveDataScannerRuleWithStandardPattern(name1, name2 string) string { +func testAccCheckDatadogSensitiveDataScannerRuleWithStandardPattern(name string) string { return fmt.Sprintf(` resource "datadog_sensitive_data_scanner_group" "sample_group" { name = "my group" @@ -330,7 +310,7 @@ data "datadog_sensitive_data_scanner_standard_pattern" "sample_sp" { filter = "AWS Access Key ID Scanner" } -resource "datadog_sensitive_data_scanner_rule" "sp_rule_1" { +resource "datadog_sensitive_data_scanner_rule" "another_rule" { name = "%s" description = "a description" excluded_namespaces = ["username"] @@ -342,21 +322,8 @@ resource "datadog_sensitive_data_scanner_rule" "sp_rule_1" { replacement_string = "" type = "partial_replacement_from_beginning" } - included_keyword_configuration { - keywords = ["credit"] - character_count = 20 - } -} - -resource "datadog_sensitive_data_scanner_rule" "sp_rule_2" { - name = "%s" - description = "a description" - excluded_namespaces = ["username"] - is_enabled = true - group_id = datadog_sensitive_data_scanner_group.sample_group.id - standard_pattern_id = data.datadog_sensitive_data_scanner_standard_pattern.sample_sp.id } -`, name1, name2) +`, name) } func testAccCheckDatadogSensitiveDataScannerRuleDestroy(accProvider func() (*schema.Provider, error)) func(*terraform.State) error { @@ -369,10 +336,10 @@ func testAccCheckDatadogSensitiveDataScannerRuleDestroy(accProvider func() (*sch for _, resource := range s.RootModule().Resources { if resource.Type == "datadog_sensitive_data_scanner_rule" { resp, _, err := apiInstances.GetSensitiveDataScannerApiV2().ListScanningGroups(auth) - if err != nil { - return fmt.Errorf("received an error retrieving all scanning groups: %s", err) - } if ruleFound := findSensitiveDataScannerRuleHelper(resource.Primary.ID, resp); ruleFound == nil { + if err != nil { + return fmt.Errorf("received an error retrieving all scanning groups: %s", err) + } return nil } return fmt.Errorf("scanning rule still exists") @@ -412,33 +379,3 @@ func testAccCheckDatadogSensitiveDataScannerRuleExists(accProvider func() (*sche return nil } } - -func testAccCheckDatadogSensitiveDataScannerRuleRecommendedKeywords(accProvider func() (*schema.Provider, error), name string, expectedUseRecommendedKeywords *bool) resource.TestCheckFunc { - return func(s *terraform.State) error { - provider, _ := accProvider() - providerConf := provider.Meta().(*datadog.ProviderConfiguration) - apiInstances := providerConf.DatadogApiInstances - auth := providerConf.Auth - - ruleId := s.RootModule().Resources[name].Primary.ID - resp, _, err := apiInstances.GetSensitiveDataScannerApiV2().ListScanningGroups(auth) - if err != nil { - return fmt.Errorf("received an error retrieving the list of scanning groups, %s", err) - } - - ruleFound := findSensitiveDataScannerRuleHelper(ruleId, resp) - if ruleFound == nil { - return fmt.Errorf("received an error retrieving scanning group") - } - - actualUseRecommendedKeywords := ruleFound.Attributes.IncludedKeywordConfiguration.UseRecommendedKeywords - if expectedUseRecommendedKeywords == nil && actualUseRecommendedKeywords == nil { - return nil - } - if *actualUseRecommendedKeywords != *expectedUseRecommendedKeywords { - return fmt.Errorf("actual use_recommended_keywords: %v. expected: %v", actualUseRecommendedKeywords, expectedUseRecommendedKeywords) - } - - return nil - } -} diff --git a/docs/resources/sensitive_data_scanner_rule.md b/docs/resources/sensitive_data_scanner_rule.md index 250e5eaeb..760c8a822 100644 --- a/docs/resources/sensitive_data_scanner_rule.md +++ b/docs/resources/sensitive_data_scanner_rule.md @@ -54,7 +54,7 @@ data "datadog_sensitive_data_scanner_standard_pattern" "aws_sp" { filter = "AWS Access Key ID Scanner" } -resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_custom_included_keywords" { +resource "datadog_sensitive_data_scanner_rule" "mylibraryrule" { name = "My library rule" description = "A description" group_id = datadog_sensitive_data_scanner_group.mygroup.id @@ -63,26 +63,6 @@ resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_custom_includ excluded_namespaces = ["username"] is_enabled = true tags = ["sensitive_data:true"] - - // SDS will set the recommended keywords by default. If the user doesn't want to use the recommended keywords, - // they have to create an empty included keyword configuration (with empty keywords) - included_keyword_configuration { - keywords = ["cc", "credit card"] - character_count = 30 - } -} - -resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_recommended_keywords" { - name = "My library rule" - description = "A description" - group_id = datadog_sensitive_data_scanner_group.mygroup.id - // As standard_pattern_id is provided, the resource MUST NOT contain the "pattern" attribute - standard_pattern_id = data.datadog_sensitive_data_scanner_standard_pattern.aws_sp.id - excluded_namespaces = ["username"] - is_enabled = true - tags = ["sensitive_data:true"] - - // SDS will set the recommended keywords by default. } ``` @@ -97,7 +77,7 @@ resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_recommended_k - `description` (String) Description of the rule. - `excluded_namespaces` (List of String) Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array. -- `included_keyword_configuration` (Block List, Max: 1) Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. If the rule has the `standard_pattern_id` field, then discarding this field will apply the recommended keywords. Setting the `create_before_destroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. (see [below for nested schema](#nestedblock--included_keyword_configuration)) +- `included_keyword_configuration` (Block List, Max: 1) Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the `create_before_destroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. (see [below for nested schema](#nestedblock--included_keyword_configuration)) - `is_enabled` (Boolean) Whether or not the rule is enabled. - `name` (String) Name of the rule. - `namespaces` (List of String) Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned. diff --git a/examples/resources/datadog_sensitive_data_scanner_rule/resource.tf b/examples/resources/datadog_sensitive_data_scanner_rule/resource.tf index ff59316f7..a1327c09f 100644 --- a/examples/resources/datadog_sensitive_data_scanner_rule/resource.tf +++ b/examples/resources/datadog_sensitive_data_scanner_rule/resource.tf @@ -39,7 +39,7 @@ data "datadog_sensitive_data_scanner_standard_pattern" "aws_sp" { filter = "AWS Access Key ID Scanner" } -resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_custom_included_keywords" { +resource "datadog_sensitive_data_scanner_rule" "mylibraryrule" { name = "My library rule" description = "A description" group_id = datadog_sensitive_data_scanner_group.mygroup.id @@ -48,24 +48,4 @@ resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_custom_includ excluded_namespaces = ["username"] is_enabled = true tags = ["sensitive_data:true"] - - // SDS will set the recommended keywords by default. If the user doesn't want to use the recommended keywords, - // they have to create an empty included keyword configuration (with empty keywords) - included_keyword_configuration { - keywords = ["cc", "credit card"] - character_count = 30 - } -} - -resource "datadog_sensitive_data_scanner_rule" "mylibraryrule_with_recommended_keywords" { - name = "My library rule" - description = "A description" - group_id = datadog_sensitive_data_scanner_group.mygroup.id - // As standard_pattern_id is provided, the resource MUST NOT contain the "pattern" attribute - standard_pattern_id = data.datadog_sensitive_data_scanner_standard_pattern.aws_sp.id - excluded_namespaces = ["username"] - is_enabled = true - tags = ["sensitive_data:true"] - - // SDS will set the recommended keywords by default. } diff --git a/go.mod b/go.mod index f7dbd6a16..d93bf458d 100644 --- a/go.mod +++ b/go.mod @@ -96,4 +96,4 @@ require ( google.golang.org/protobuf v1.33.0 // indirect ) -go 1.23.0 +go 1.23