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

[keyvault] add cae support #23543

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

Conversation

gracewilcox
Copy link
Member

Closes https://github.com/Azure/azure-sdk-for-go-pr/issues/43

Adding CAE support to key vault libraries:

  • Upgrade to the latest version of azcore with CAE support
  • Add tests to the key vault challenge policy to ensure that it's compatible with CAE

@gracewilcox gracewilcox added KeyVault Client This issue points to a problem in the data-plane of the library. labels Oct 3, 2024
mock.WithHeader("WWW-Authenticate", kvChallenge),
mock.WithStatusCode(401),
)
srv.AppendResponse(
Copy link
Member

Choose a reason for hiding this comment

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

It's not obvious from outside the policy, but this test is effectively the same as the "KVThenCAE" test above. To avoid that overlap, it should send a second request that receives the two CAE challenges

Suggested change
srv.AppendResponse(
srv.AppendResponse()
srv.AppendResponse(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. KeyVault
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

2 participants