Open stefan-kiss opened 2 years ago
I'm being blocked by this bug as well. Trying to use: 31.0.0.0/7,106.0.0.0/6
, which is rejected inappropriately. Suggested fix is to change:
to:
regexp.MustCompile(`^(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/([1-2]?[0-9]|3[0-2]))?\b[,]?)*$`),
Would you accept a PR?
We're blocked by this as well
Same thing for me. I added private endpoints to our instances, which immediately blocked public access. The only way to handle that is to add the following list of IP ranges:
0.0.0.0/5,8.0.0.0/7,11.0.0.0/8,12.0.0.0/6,16.0.0.0/4,32.0.0.0/3,64.0.0.0/3,96.0.0.0/6,100.0.0.0/10,100.128.0.0/9,101.0.0.0/8,102.0.0.0/7,104.0.0.0/5,112.0.0.0/4,128.0.0.0/3,160.0.0.0/5,168.0.0.0/6,172.0.0.0/12,172.32.0.0/11,172.64.0.0/10,172.128.0.0/9,173.0.0.0/8,174.0.0.0/7,176.0.0.0/4,192.0.0.0/9,192.128.0.0/11,192.160.0.0/13,192.169.0.0/16,192.170.0.0/15,192.172.0.0/14,192.176.0.0/12,192.192.0.0/10,193.0.0.0/8,194.0.0.0/7,196.0.0.0/6,200.0.0.0/5,208.0.0.0/4,224.0.0.0/3
@bart-vmware I'd suggest replacing the current RegEx with
^(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/([1-2][0-9]|3[0-2]|[3-9]))?\b[,]?)*$
instead, since the system won't accept any of /2 or /1 anyway.
Added PR for the issue #24306
Is there an existing issue for this?
Community Note
Terraform Version
v1.2.8
AzureRM Provider Version
v3.20.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
to create the cluster with the filter requested
Actual Behaviour
the error
notes
Steps to Reproduce
you need to have an existing whatever-group-name
Important Factoids
No response
References
This reference is only provided as support for the statement "azure does not accept private ip ranges there" https://github.com/hashicorp/terraform-provider-azurerm/issues/7946