-
Notifications
You must be signed in to change notification settings - Fork 1.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
cloudfunctions: allow to configure trigger_http
security level
#9583
base: main
Are you sure you want to change the base?
cloudfunctions: allow to configure trigger_http
security level
#9583
Conversation
- This is not a backwards compatible change - Possible values are `SECURE_OPTIONAL` (http/s) and `SECURE_ALWAYS` (https)
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.
Unfortunately we won't be able to accept this change.
This would be a breaking change because changing the type of this field from Bool -> String will break existing user's configs if they define this field as a boolean. This is possible to do in a major version of the provider, but unlikely to be something we would do.
I think the better approach would be to add a new optional field that controls this setting
@slevenick got it. I then added a new In case everything is good, I will squash commits afterwards. Also note cloudfunctions.HttpsTrigger.SecurityLevel possible values are |
I don't think we can include Removing that should make this feasible at the cost of some validation |
My wrong @slevenick, I was trying to make Please check my latest commit ;). |
53b9c1d
to
19d140d
Compare
19d140d
to
252ee33
Compare
Ping @slevenick |
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.
I've upstreamed this to our code generator so it can be replicated across the google
and google-beta
providers.
We will need docs describing this new field before we can merge this, can you add that? It would go into this file: https://github.com/hashicorp/terraform-provider-google/blob/master/website/docs/r/cloudfunctions_function.html.markdown
Sure, there you go ;). I also fixed a typo in the code. |
4708254
to
4de607e
Compare
So it looks like RequiredWith causes the dependency both ways:
which may make this a breaking change. We will likely have to remove that RequiredWith validation |
… Source Manager Instance resource (hashicorp#9583) [upstream:d026cd2d4c705b31429b353b8ef1df25ee18048a] Signed-off-by: Modular Magician <[email protected]>
… Source Manager Instance resource (#9583) (#16731) [upstream:d026cd2d4c705b31429b353b8ef1df25ee18048a] Signed-off-by: Modular Magician <[email protected]>
Current provider doesn't allow to create an only-HTTPS-triggered function.
SECURE_OPTIONAL
(http/s) andSECURE_ALWAYS
(https)Relates to #8465