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

Update KV Credential Policy #30512

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Update KV Credential Policy #30512

merged 3 commits into from
Aug 18, 2022

Conversation

g2vinay
Copy link
Member

@g2vinay g2vinay commented Aug 17, 2022

Fixes Sync Flow of Key Vault Credential Policy

@ghost ghost added the KeyVault label Aug 17, 2022
@g2vinay g2vinay requested a review from vcolin7 August 17, 2022 21:41
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -208,6 +208,7 @@ public void authorizeRequestSync(HttpPipelineCallContext context) {
.setTenantId(this.challenge.getTenantId());

setAuthorizationHeaderSync(context, tokenRequestContext);
return;
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: This is required, it was missing before when this policy got updated via #29730

Copy link
Member

@vcolin7 vcolin7 left a comment

Choose a reason for hiding this comment

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

We should add these changes to the KV Administration package as well.

@@ -47,6 +47,7 @@
<!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. -->
<javaModulesSurefireArgLine>
--add-exports com.azure.core/com.azure.core.implementation.http=ALL-UNNAMED
--add-exports com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
Copy link
Member

@vcolin7 vcolin7 Aug 18, 2022

Choose a reason for hiding this comment

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

I take it you needed this for running local live tests? @jairmyree and I ran into the same issue when trying to test Tables locally.

Copy link
Member Author

Choose a reason for hiding this comment

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

for running unit tests in JDK 17 locally, yeah.
This config doesn't impact users, mainly for local tests running only.

Copy link
Member

Choose a reason for hiding this comment

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

Just as a note, we also needed this for Java 11, likely for anything using Java 9+? We're considering adding this to the parent POM. /cc @srnagar

@g2vinay
Copy link
Member Author

g2vinay commented Aug 18, 2022

We should add these changes to the KV Administration package as well.

KV Administration package is autorest generated, so auto rest will take care of it when it adds sync stack to KV admin package.

@vcolin7 vcolin7 closed this Aug 18, 2022
@vcolin7 vcolin7 reopened this Aug 18, 2022
@vcolin7
Copy link
Member

vcolin7 commented Aug 18, 2022

/azp run java - keyvault - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@g2vinay g2vinay marked this pull request as ready for review August 18, 2022 02:48
@vcolin7
Copy link
Member

vcolin7 commented Aug 18, 2022

/check-enforcer override

@vcolin7
Copy link
Member

vcolin7 commented Aug 18, 2022

Live and recorded tests passed. One live test failed due to not being able to fetch a dependency (a transient issue) and another one in a special environment takes too long to execute and times out due to unrelated reasons, so we're ignoring those.

@vcolin7 vcolin7 merged commit 24e1d73 into Azure:main Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants