-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_app_service
, azurerm_app_service_slot
, azurerm_function_app
: Support for site_config.ip_restrictions.headers / site_config.scm_ip_restrictions.headers
#11209
Conversation
5205dc5
to
67b36cc
Compare
a727be8
to
bd612de
Compare
bebbf0b
to
28c1cb1
Compare
28c1cb1
to
e573085
Compare
I believe it's now complete and ready for a thorough review: ❯ make acctests SERVICE='web' TESTARGS='-run=TestAccAppService_zeroedIpRestrictionHeaders'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./azurerm/internal/services/web -run=TestAccAppService_zeroedIpRestrictionHeaders -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/04/20 20:44:39 [DEBUG] not using binary driver name, it's no longer needed
2021/04/20 20:44:40 [DEBUG] not using binary driver name, it's no longer needed
=== RUN TestAccAppService_zeroedIpRestrictionHeaders
=== PAUSE TestAccAppService_zeroedIpRestrictionHeaders
=== CONT TestAccAppService_zeroedIpRestrictionHeaders
--- PASS: TestAccAppService_zeroedIpRestrictionHeaders (400.28s)
PASS
ok github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web 403.909s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @aristosvo - Thanks for the updates!
Could you add in the necessary lint ignores for the Sets with MaxItems (S018 - see the changed files tab), whilst not a fail, this will help us keep the linting clean.
I think it's also worth adding an additional note to the docs for these new properties to ensure users are aware that these headers are combined with the other settings so if used, all items must match for the rule to apply. WDYT?
Otherwise this LGTM so we should be able to get this merged as soon as this is done. 👍
Thanks! Fixed it, will check later today if it complies to all linting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @aristosvo - LGTM 👍
…app`: Support for site_config.ip_restrictions.headers / site_config.scm_ip_restrictions.headers (hashicorp#11209) Fixes hashicorp#11156
This has been released in version 2.57.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.57.0"
}
# ... other configuration ... |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #11156
Example
Acceptance Tests
ip_restrictions
TestAccAppService_zeroedIpRestrictionHeaders