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

Implementation of TDE for MS SQL Server #11148

Merged
merged 11 commits into from
Apr 20, 2021

Conversation

MoAhuja
Copy link
Contributor

@MoAhuja MoAhuja commented Mar 29, 2021

Fixes #87

TF_ACC=1 go test -v ./azurerm/internal/services/mssql -run=TestAccMsSqlServerTransparentDataEncryption -timeout 60m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/03/29 14:47:59 [DEBUG] not using binary driver name, it's no longer needed
2021/03/29 14:47:59 [DEBUG] not using binary driver name, it's no longer needed
=== RUN TestAccMsSqlServerTransparentDataEncryption_byok
=== PAUSE TestAccMsSqlServerTransparentDataEncryption_byok
=== RUN TestAccMsSqlServerTransparentDataEncryption_systemManaged
=== PAUSE TestAccMsSqlServerTransparentDataEncryption_systemManaged
=== RUN TestAccMsSqlServerTransparentDataEncryption_update
=== PAUSE TestAccMsSqlServerTransparentDataEncryption_update
=== CONT TestAccMsSqlServerTransparentDataEncryption_byok
=== CONT TestAccMsSqlServerTransparentDataEncryption_update
=== CONT TestAccMsSqlServerTransparentDataEncryption_systemManaged
2021/03/29 14:48:04 [DEBUG] TF_ACCTEST_REATTACH set to 1 and acctest.TestHelper is not nil, using reattach-based testing
--- PASS: TestAccMsSqlServerTransparentDataEncryption_systemManaged (246.96s)
--- PASS: TestAccMsSqlServerTransparentDataEncryption_byok (491.30s)
--- PASS: TestAccMsSqlServerTransparentDataEncryption_update (523.55s)
PASS
ok github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/mssql 523.850s

@MoAhuja MoAhuja changed the title Implementation of TDE for MS SQL Servers Implementation of TDE for MS SQL Server Mar 29, 2021
@MoAhuja MoAhuja marked this pull request as ready for review March 29, 2021 19:28
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @MoAhuja - Thanks for this, it's off to a good start. I've left some comments below that I think need to be addressed before continuing to review. If you can fix those up, I'll continue asap.
Thanks!

@MoAhuja
Copy link
Contributor Author

MoAhuja commented Mar 31, 2021

@jackofallops thanks for the review! I've made the changes you suggested and it's ready for another review. Thanks.

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @MoAhuja - Thanks for the quick turn-around on the changes. There's a couple more below, in particular the behaviour of the resource Delete. Again, I'll loop back as quickly as I can once these are addressed.

@MoAhuja MoAhuja force-pushed the feature/SqlTDE branch 2 times, most recently from 6310a9a to 4561a0e Compare April 15, 2021 13:39
@MoAhuja
Copy link
Contributor Author

MoAhuja commented Apr 15, 2021

@jackofallops Just an FYI, I rebased on top of the latest changes from master as there were some conflicts in the mssql clients.go file.

Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

Hi @MoAhuja, thanks for addressing @jackofallops' earlier comments. I've rebased and pushed the branch to resolve the merge conflict, and the acceptance tests look good and are passing 🎉

Screenshot 2021-04-20 at 12 18 07

I have a few additional comments inline - if you can take a look at these then this should be good to merge. Thanks!

@ghost ghost removed the size/XXL label Apr 20, 2021
@manicminer
Copy link
Contributor

Test passing

Screenshot 2021-04-20 at 21 25 27

@manicminer manicminer merged commit ae38601 into hashicorp:master Apr 20, 2021
manicminer added a commit that referenced this pull request Apr 20, 2021
@manicminer manicminer added this to the v2.57.0 milestone Apr 20, 2021
@ghost
Copy link

ghost commented Apr 30, 2021

This has been released in version 2.57.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 = "~> 2.57.0"
}
# ... other configuration ...

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL Server: support for Transparent Data Encryption
4 participants