Skip to content

Migrate keyvault to pipeline #962

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 17 commits into from
Aug 24, 2022

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented Jul 28, 2022

No description provided.

@cataggar cataggar mentioned this pull request Aug 4, 2022
9 tasks
@rylev rylev mentioned this pull request Aug 11, 2022
@bmc-msft bmc-msft marked this pull request as ready for review August 15, 2022 22:50
));
let creds = Arc::new(
DefaultAzureCredentialBuilder::new()
.exclude_managed_identity_credential()
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is always excluded in our examples, should we perhaps think about inverting this and requiring users who want it, to opt into it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see #1016

@@ -54,63 +58,51 @@ impl KeyvaultClient {
) -> azure_core::Result<Self> {
let vault_url = Url::parse(vault_url)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we eventually adopt something like azure_data_cosmos::CloudLocation instead of dealing in raw URLs?

scope: String,
) -> Pipeline {
let auth_policy: Arc<dyn azure_core::Policy> =
Arc::new(AuthorizationPolicy::new(credentials, scope));
Copy link
Contributor

Choose a reason for hiding this comment

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

In cosmos we're sending the equivalent of scope as part of the Context. Would that perhaps work better here too?

@rylev
Copy link
Contributor

rylev commented Aug 24, 2022

@bmc-msft this looks good! I known there's still lots of improvements that we could make, but it seems like it would be a good idea to land this and then do some follow up PRs. What do you think?

@bmc-msft
Copy link
Contributor Author

Yeah, I'm happy to do that. It will take some refactoring to enable client builders to enable alternate transports, which is needed for doing the mocking.

@bmc-msft bmc-msft merged commit 16cfd97 into Azure:main Aug 24, 2022
@bmc-msft bmc-msft deleted the migrate-keyvault-to-pipeline branch August 24, 2022 12:48
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