Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLP-1474: Predefined profiles must be imported for use #2955

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions docs/resources/dlp_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,37 @@ They are referenced in Zero Trust Gateway rules.
## Example Usage

```terraform
# Predefined profile
resource "cloudflare_dlp_profile" "example_predefined" {
# Predefined profile must be imported, cannot be created
resource "cloudflare_dlp_profile" "creds" {
account_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "Example Predefined Profile"
name = "Credentials and Secrets"
type = "predefined"
allowed_match_count = 0
allowed_match_count = 3

entry {
name = "Mastercard Card Number"
enabled = true
name = "Amazon AWS Access Key ID"
id = "d8fcfc9c-773c-405e-8426-21ecbb67ba93"
}

entry {
name = "Union Pay Card Number"
enabled = false
id = "2c0e33e1-71da-40c8-aad3-32e674ad3d96"
name = "Amazon AWS Secret Access Key"
}
entry {
enabled = true
id = "4e92c006-3802-4dff-bbe1-8e1513b1c92a"
name = "Microsoft Azure Client Secret"
}
entry {
enabled = false
id = "5c713294-2375-4904-abcf-e4a15be4d592"
name = "SSH Private Key"
}
entry {
enabled = true
id = "6c6579e4-d832-42d5-905c-8e53340930f2"
name = "Google GCP API Key"
}
}

Expand Down
30 changes: 23 additions & 7 deletions examples/resources/cloudflare_dlp_profile/resource.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
# Predefined profile
resource "cloudflare_dlp_profile" "example_predefined" {
# Predefined profile must be imported, cannot be created
resource "cloudflare_dlp_profile" "creds" {
account_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "Example Predefined Profile"
name = "Credentials and Secrets"
type = "predefined"
allowed_match_count = 0
allowed_match_count = 3

entry {
name = "Mastercard Card Number"
enabled = true
name = "Amazon AWS Access Key ID"
id = "d8fcfc9c-773c-405e-8426-21ecbb67ba93"
}

entry {
name = "Union Pay Card Number"
enabled = false
id = "2c0e33e1-71da-40c8-aad3-32e674ad3d96"
name = "Amazon AWS Secret Access Key"
}
entry {
enabled = true
id = "4e92c006-3802-4dff-bbe1-8e1513b1c92a"
name = "Microsoft Azure Client Secret"
}
entry {
enabled = false
id = "5c713294-2375-4904-abcf-e4a15be4d592"
name = "SSH Private Key"
}
entry {
enabled = true
id = "6c6579e4-d832-42d5-905c-8e53340930f2"
name = "Google GCP API Key"
}
}

Expand Down
Loading