get cloudflared client real ip and fix crowdsec mw
This commit is contained in:
@@ -64,7 +64,7 @@ resource "cloudflare_account_token" "token" {
|
||||
expires_on = null
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [expires_on, policies] # ignore permission id change as unstable
|
||||
ignore_changes = [expires_on, policies] # ignore permission id change as unstable
|
||||
replace_triggered_by = [null_resource.cloudflare_account_token_replace] # replace permission name change d
|
||||
precondition {
|
||||
condition = length(local.missing_permissions) == 0
|
||||
@@ -75,7 +75,7 @@ resource "cloudflare_account_token" "token" {
|
||||
|
||||
resource "null_resource" "cloudflare_account_token_replace" { # replace token when permission names change
|
||||
triggers = {
|
||||
"account_permissions" = sha256(join("",sort([for p_id in local.selected_account_permissions: lookup(local.permission_map_from_id, p_id)])))
|
||||
"bucket_permissions" = sha256(join("",sort([for p_id in local.selected_bucket_permissions: lookup(local.permission_map_from_id, p_id)])))
|
||||
"account_permissions" = sha256(join("", sort([for p_id in local.selected_account_permissions : lookup(local.permission_map_from_id, p_id)])))
|
||||
"bucket_permissions" = sha256(join("", sort([for p_id in local.selected_bucket_permissions : lookup(local.permission_map_from_id, p_id)])))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user