Skip to content
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

add deletion_protection for autonomousDatabase resource #12298

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tulika-aakriti
Copy link
Contributor

part of : hashicorp/terraform-provider-google#20284
Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

oracledatabase: added `deletion_protection` field to `google_oracle_database_autonomous_database`

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 29 insertions(+), 145 deletions(-))
google-beta provider: Diff ( 4 files changed, 29 insertions(+), 145 deletions(-))
Open in Cloud Shell: Diff ( 2 files changed, 2 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 14
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • oracledatabase

🟢 All tests passed!

View the build log

@tulika-aakriti tulika-aakriti marked this pull request as ready for review November 11, 2024 18:31
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@slevenick
Copy link
Contributor

I don't believe we can add this in a minor version of the provider because it would be changing the default behavior of the resource. @rileykarson is that correct in this case?

@rileykarson
Copy link
Member

Yeah, we'd strongly prefer to not do so outside of a major. We discuss in https://googlecloudplatform.github.io/magic-modules/best-practices/immutable-fields/ that immutable fields are expected in Terraform. However, if there's undue risk w/ deleting these resources past the standard risks of a database deletion we're glad to continue to discuss an exception here.

@tulika-aakriti
Copy link
Contributor Author

I see that the major release is once every year which might be risk for customer.
The deletion api will delete all the exisiting data from database and the data in the third party i.e oracleDatabase and there will be no way for a user to restore the data. I see many GCP products like bugQuery and SQL uses this to warn the user regarding the data loss. Moving forward we are planning to add update API and will continue to use deletion_protection as a mitigations for accidental delete.

@tulika-aakriti
Copy link
Contributor Author

We don't support update API as of now, so every update call can lead to accidental deletion. Can we get exception for 3 of our resources for weekly release. Our service onboarded few weeks ago and we don't have any active customers now.

Copy link

@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

I'm fine with this being added. We should sync up merging with the other 3 resources so they all go out at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants