Skip to content

Database users: added x509_type attribute #122

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

Merged
merged 6 commits into from
Feb 6, 2020
Merged

Database users: added x509_type attribute #122

merged 6 commits into from
Feb 6, 2020

Conversation

PacoDw
Copy link
Contributor

@PacoDw PacoDw commented Feb 4, 2020

Added:

  • x509_type attribute was added in the resource and the data source in the database resource, this allows us to configure it with the future X509 resource.
  • The GET and DELETE Methods were refactored due to the client changed, so when the x509_type is enabled the database name must be $external and to be able to Get or Delete it we need to pass the database name to avoid errors.
  • The documentation was updated.

Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a few things, especially in docs. See comments. Thanks!

…tribute and refactored the code due to this change in the singular datasource
Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small doc change and a few notes.

"database_name": databaseName,
"project_id": projectID,
"username": username,
"auth_database_name": databaseName,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a lot clearer as some found this confusing, thank you! Is there any way to still support the old database_name as well without getting too messy? If not then we'll need to be sure to log this as a breaking change in the Changelog, Fyi @marinsalinas

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it is a breaking change, what do you think @marinsalinas ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the little change in the client breaked up all :S

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, if it's breaking too much we should just leave it as is then, sorry to suggest it as didn't think about how much impact it has and we are already short on time. Let's just revert this and save the headache.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay it breaks a little bit but with this PR all the breaking changes are fixed

…tribute and refactored the code due to this change in plural datasource

chore: changed database_name to auth_database_name
Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - reminder we'll want to note in the changelog that database_name is changing to auth_database_name as of 0.4.0 so users can change their terraform configuration to match.

@PacoDw PacoDw merged commit 0a2d202 into master Feb 6, 2020
@PacoDw PacoDw deleted the dbusers branch February 6, 2020 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants