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

Fix Cert.login() handling of use_token argument #720

Merged
merged 1 commit into from Jul 8, 2021

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Jul 1, 2021

The client.auth.cert.login(use_token=True) argument should be passed internally to Adapter.login(). But instead it was sent to Vault in the POST body, which is not recognized by Vault: https://www.vaultproject.io/api/auth/cert#login-with-tls-certificate-method

Regression in #691 (7bb92f7).

The `client.auth.cert.login(use_token=True)` argument should be passed internally to `Adapter.login()`. But instead it was sent to Vault in the POST body, which is not recognized by Vault.

Regression in hvac#691 (7bb92f7).
@intgr intgr requested a review from a team as a code owner July 1, 2021 14:13
@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #720 (3f24480) into develop (afa93a2) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #720   +/-   ##
========================================
  Coverage    82.95%   82.95%           
========================================
  Files           62       62           
  Lines         3356     3356           
========================================
  Hits          2784     2784           
  Misses         572      572           
Impacted Files Coverage Δ
hvac/api/auth_methods/cert.py 90.00% <100.00%> (ø)

@intgr
Copy link
Contributor Author

intgr commented Jul 7, 2021

Ping? @jeffwecan?

Copy link
Member

@jeffwecan jeffwecan left a comment

Choose a reason for hiding this comment

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

Good catch, thanks @intgr!

@jeffwecan jeffwecan added bug tls-cert-auth Related to TLS Certificates Auth Method labels Jul 8, 2021
@jeffwecan jeffwecan merged commit 4092c69 into hvac:develop Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tls-cert-auth Related to TLS Certificates Auth Method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants