-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Setting 127.0.0.1/24 as a CIDR is allowed in terraform plan #4032
Comments
This is a constraint applied by the firewall API itself, not the terraform provider, so we will not be able to allow this via changes to terraform Is there a particular reason you want to be able to use |
We want to allow external computers through this firewall rule, but we don't know what these computers are right now so we use localhost as a placeholder instead of 0.0.0.0/0 so we don't get attacked. I think doing CIDR validation in client code without going to Google API isn't unreasonable |
Terraform could do CIDR validation locally, but will have to send something to the API. Sending no values will result in the default Could you specify |
How does specifying We are ultimately trying to control the source ranges with a list variable, it could be empty sometimes. if adding a Thank you for your help. |
According to this doc https://cloud.google.com/vpc/docs/firewalls you can specify both As long as you have something in the |
That works for our purposes then. Thank you very much for your help |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
0.12.3
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
An error from
terraform plan
to disallow invalid CIDRActual Behavior
Steps to Reproduce
terraform plan
terraform apply
The text was updated successfully, but these errors were encountered: