-
Notifications
You must be signed in to change notification settings - Fork 982
No support for password_validation_policy in cloudsql-instance #2722
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
Comments
Happy to raise a PR if you can let me know how you'd like it done? Copying a bunch of |
We have a few pointers in our contributing guide, for something like this we typically
If you have the time for a PR don't overthink it too much, we'll review and discuss things together. And thanks of course! |
@lyricnz I have added support for password policy settings to the module, but the resource/API documentation is not exhaustive, CloudSQL is not a product I typically use and I don't have the time to bring up a few instances and test this now. Would you have time to check if
Once the above is done we can merge the change. Thanks! |
Thanks man! We'll try that this week! |
(sorry for the delay). Yes, applying the configuration applied the changes to the DB, but it's still showing the warning about no password policy. I think this refreshes periodically, so will check again in 24h |
Great, thanks for confirming! I'll wait before marking this close then. :) |
ach, it's closed already, my bad :) well then reopen please if it turns out we did not fix it |
FYI: If I try and create a DB with
I get an error about root password doesn't meet password policy. I am forced to comment out the |
Describe the bug
There is no current support in the cloudsql-instance module for setting the password_validation_policy, which means the new database shows up in the console with some security warnings out of the box:
This is supported in the upstream module
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance
And reapply the module (after manually making a change) will revert:
Environment
To Reproduce
Create a DB using any settings, go to console, see the three warnings above. (I'm going to try and deal with those next)
Result
Warnings showing up in GCP console
The text was updated successfully, but these errors were encountered: