-
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
application gateway: add advanced ssl_policies #3360
application gateway: add advanced ssl_policies #3360
Conversation
f29caee
to
8331d9a
Compare
For `policy_type`=`Predefined`: | ||
|
||
* `policy_name` - (Optional) The Name of the Policy e.g AppGwSslPolicy20170401S. Required if `policy_type` is set to `Predefined`. Possible values can chang over time and | ||
are published here https://docs.microsoft.com/de-de/azure/application-gateway/application-gateway-ssl-policy-overview. Not compatible with `disabled_protocols`. |
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.
The English version if that helps https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-ssl-policy-overview
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.
@jstewart612 thanks. How could that happen :P.
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.
It is a genuine mystery to one and all! ;)
In all seriousness, I don't think this provider's documentation is localized to any other languages, and thus, I think most are, perhaps unfairly, expecting off-world links to go to sites in the same language.
It's the most minor of minor points and really anyone who knows enough how to use this ought know how to go find the English version.... but yeah.
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.
@jstewart612 anyways fixed it :) 👍
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.
the Azure docs auto redirect to the users locale if you leave off the locale prefix, so we can make this: https://docs.microsoft.com/azure/application-gateway/application-gateway-ssl-policy-overview
:)
8331d9a
to
f504358
Compare
unfortunately a tests of mine is currently broken after rebase. I'm on it. please anyways consider to check the code for its general functionality |
I found the issue. Its caused due to the fact that disabled_protocols now is deprecated but still exists as option. I resolved that by creating a new ssl_policy block in parallel. @jstewart612 may you had any ideas while designing your implementation? |
4f9051b
to
1da0216
Compare
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.
hey @bs-matil
Thanks for this PR :)
I've taken a look through and left some comments inline but this otherwise looks pretty good - if we can fix up the comments and the tests pass we should be able to get this merged 👍
Thanks!
80b3073
to
a740044
Compare
@tombuildsstuff I now added another test wich also unfortunately showed an issue that we need also to mark the ssl_policy block with computed otherwise using disabled_ssl_proctocols would cause a changed resource in the ssl_policy block even if the inner disabled_proctocols block is marked as computed. Are you okay with handling it like that? |
Please do NOT merge right now there is something wrong in the handling with Computed inputs. f not here the textual version: But unfortunately, there is another side effect of this. Example Back to our topic. How should I proceed here? I can do the very same handling which means ignoring anything but the initial input of Alternatively, we could "drop" Thanks for any help |
I now implemented "plan a" which is as the |
491bb2f
to
b6906bd
Compare
a2a0347
to
93dd859
Compare
…ue to overcome conflicts in state with new ssl_policy block
53737c5
to
017a494
Compare
…ith ssl_policy.disabled_protocols
017a494
to
88a98dd
Compare
@katbyte rebased against latest merges. Can be reviewed |
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 for the updates @bs-matil,
This is looking good! just a simple test failure that needs correcting now:
------- Stdout: -------
=== RUN TestAccAzureRMApplicationGateway_disabledSslProtocols
=== PAUSE TestAccAzureRMApplicationGateway_disabledSslProtocols
=== CONT TestAccAzureRMApplicationGateway_disabledSslProtocols
--- FAIL: TestAccAzureRMApplicationGateway_disabledSslProtocols (96.80s)
testing.go:568: Step 0 error: errors during apply:
Error: Error Creating/Updating Application Gateway "acctestag-190510215451350048" (Resource Group "acctestRG-190510215451350048"): network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayInvalidPublicIpSku" Message="Application gateway /subscriptions/8708baf2-0a54-4bb4-905b-78d21ac150da/resourceGroups/acctestRG-190510215451350048/providers/Microsoft.Network/applicationGateways/acctestag-190510215451350048 with SKU Standard_v2 can only reference public ip with Standard SKU." Details=[]
on /opt/teamcity-agent/temp/buildTmp/tf-test115327035/main.tf line 45:
(source code not available)
FAIL
…y_disabledSslProtocols
c4b1140
to
f0a839a
Compare
@katbyte test has been fixed.. Sorry for the inconvenience. |
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 for the changes, LGTM now @bs-matil
This has been released in version 1.29.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 = "~> 1.29.0"
}
# ... other configuration ... |
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! |
This PR should fix the Issue #1536
Feature Request: Full sslPolicy support for azurerm_application_gateway
It adds support for advanced ssl_polcies. and deprecates the old options