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

Kevault: Add Get/Delete functionality for flattened keys & implement … #815

Merged
merged 2 commits into from
Apr 2, 2020
Merged

Kevault: Add Get/Delete functionality for flattened keys & implement … #815

merged 2 commits into from
Apr 2, 2020

Conversation

dkisselev
Copy link
Contributor

@dkisselev dkisselev commented Mar 24, 2020

What this PR does / why we need it:

  • Implements Get/Delete functionality for flattened keys (and fixes a couple bugs in Get/Delete for regular keys). Prior PR's only included bare-minimum write functionality for the Azure SQL User use-case where the keys were used by external tools.

  • Creates a reusable keyvault in the test suite to test all components that rely on it. The Eventhub test has been migrated to use the master kv and the AzureSQLTests now use it for keyvault-specific functionality. This also required increasing the test setup timeout by 1min to give the KV time to start up.

  • Adds the Keyvault Client test suite to the makefile test suite. It was already written but was missing in the path/module list.

Fixes #751

** Suggested Review Steps**:

  • Run the controller test suite to confirm pass: make BUILD_TAG=azuresqlservercombined test-existing-controllers

  • Manually break the keyvault code in the azuresqlsqluser controller or pkg/secrets keyvault client, re-run tests and confirm failure.

How does this PR make you feel:
gif

If applicable:

  • this PR contains documentation
  • this PR contains tests

@dkisselev dkisselev marked this pull request as ready for review March 27, 2020 16:04
@frodopwns frodopwns requested a review from jananivMS March 30, 2020 16:18
Copy link
Contributor

@jananivMS jananivMS left a comment

Choose a reason for hiding this comment

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

Looks good. A couple comments but rest looks good.

Copy link
Contributor

@jananivMS jananivMS left a comment

Choose a reason for hiding this comment

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

lgtm

@jananivMS
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dkisselev dkisselev merged commit 56891c5 into Azure:master Apr 2, 2020
@dkisselev dkisselev deleted the azure-keyvault-testing branch April 22, 2020 20:44
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.

Task: Add tests to AzureSQLUser to test deleting secrets and ensuring no duplicates
2 participants