Skip to content
Start here

Leaked Credential Checks

resource cloudflare_leaked_credential_check

required Expand Collapse
zone_id: String

Defines an identifier.

optional Expand Collapse
enabled?: Bool

Determines whether or not Leaked Credential Checks are enabled.

cloudflare_leaked_credential_check

resource "cloudflare_leaked_credential_check" "example_leaked_credential_check" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  enabled = true
}

data cloudflare_leaked_credential_check

required Expand Collapse
zone_id: String

Defines an identifier.

computed Expand Collapse
enabled: Bool

Determines whether or not Leaked Credential Checks are enabled.

cloudflare_leaked_credential_check

data "cloudflare_leaked_credential_check" "example_leaked_credential_check" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

Leaked Credential ChecksDetections

resource cloudflare_leaked_credential_check_rule

required Expand Collapse
zone_id: String

Defines an identifier.

optional Expand Collapse
password?: String

Defines ehe ruleset expression to use in matching the password in a request.

username?: String

Defines the ruleset expression to use in matching the username in a request.

computed Expand Collapse
id: String

Defines the unique ID for this custom detection.

cloudflare_leaked_credential_check_rule

resource "cloudflare_leaked_credential_check_rule" "example_leaked_credential_check_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  password = "lookup_json_string(http.request.body.raw, \"secret\")"
  username = "lookup_json_string(http.request.body.raw, \"user\")"
}

data cloudflare_leaked_credential_check_rule

required Expand Collapse
detection_id: String

Defines the unique ID for this custom detection.

zone_id: String

Defines an identifier.

computed Expand Collapse
id: String

Defines the unique ID for this custom detection.

password: String

Defines ehe ruleset expression to use in matching the password in a request.

username: String

Defines the ruleset expression to use in matching the username in a request.

cloudflare_leaked_credential_check_rule

data "cloudflare_leaked_credential_check_rule" "example_leaked_credential_check_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  detection_id = "18a14bafaa8eb1df04ce683ec18c765e"
}

data cloudflare_leaked_credential_check_rules

required Expand Collapse
zone_id: String

Defines an identifier.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Defines the unique ID for this custom detection.

password: String

Defines ehe ruleset expression to use in matching the password in a request.

username: String

Defines the ruleset expression to use in matching the username in a request.

cloudflare_leaked_credential_check_rules

data "cloudflare_leaked_credential_check_rules" "example_leaked_credential_check_rules" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}