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

Address a panic when exporting RSA public keys in transit #24054

Merged

Conversation

stevendpclark
Copy link
Contributor

 - When attempting to export the public key for an RSA key that
   we only have a private key for, the export panics with a nil
   deference.
 - Add additional tests around Transit key exporting
@stevendpclark stevendpclark added bug Used to indicate a potential bug secret/transit backport/1.14.x labels Nov 7, 2023
@stevendpclark stevendpclark added this to the 1.14.7 milestone Nov 7, 2023
@stevendpclark stevendpclark self-assigned this Nov 7, 2023
@stevendpclark stevendpclark requested a review from a team as a code owner November 7, 2023 23:24
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

Build Results:
All builds succeeded! ✅

Copy link

github-actions bot commented Nov 7, 2023

CI Results:
All Go tests succeeded! ✅

Copy link
Contributor

@victorr victorr left a comment

Choose a reason for hiding this comment

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

👍

@stevendpclark stevendpclark merged commit 92682f3 into main Nov 14, 2023
109 checks passed
@stevendpclark stevendpclark deleted the stevendpclark/vault-21677-transit-export-rsa-panic branch November 14, 2023 14:40
stevendpclark added a commit that referenced this pull request Nov 14, 2023
* Address a panic export RSA public keys in transit

 - When attempting to export the public key for an RSA key that
   we only have a private key for, the export panics with a nil
   deference.
 - Add additional tests around Transit key exporting

* Add cl
stevendpclark added a commit that referenced this pull request Nov 14, 2023
…24116)

* Address a panic export RSA public keys in transit

 - When attempting to export the public key for an RSA key that
   we only have a private key for, the export panics with a nil
   deference.
 - Add additional tests around Transit key exporting

* Add cl

Co-authored-by: Steven Clark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed secret/transit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting RSA public keys via transit/export/public-key/<key-name>/<version> causes nil dereference crash
2 participants