[SERVER-67552] Create RsaPublicKey class Created: 27/Jun/22  Updated: 27/Sep/22  Resolved: 27/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Varun Ravichandran Assignee: Adhishree Abhyankar (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-69803 Revert PM-2888 spike on 6.1 Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-07-11, Security 2022-07-25
Participants:

 Description   

Create a generic RsaPublicKey class that serves as a wrapper around RSA public key material in OpenSSL. Aside from the key material, it should also store a unique_ptr to the EVP_PKEY representation of the public key so that it can be used with the AsymmetricKeySignatureVerifier.

Write a unit test to verify that the class can be created and properly converts Base64EncodedURL keys into byte arrays in the class.

More details are available in the design document here.



 Comments   
Comment by Githook User [ 20/Sep/22 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: Revert "SERVER-67552: Creates a generic RsaPublicKey class that serves as a wrapper around RSA public key material in OpenSSL."

This reverts commit 8f895e99ade9d42f015595a60500bb694b9027ce.

(cherry picked from commit bc19fa9af32e8c015f0f58a5455b91196487a490)
Branch: v6.1
https://github.com/mongodb/mongo/commit/ed2177d7d5700900628351bdd3769dc89c298635

Comment by Spencer Jackson [ 19/Sep/22 ]

We are reverting this patch from the v6.1 branch, to keep v6.1 close to the master branch. We previously merged feature-flag guarded work under this ticket to the master branch, but ultimately decided to move development to a feature branch and revert the changes on master. However, the v6.1 branch split off before the revert landed and the change materialized in 6.1.0-rc0-2.

We are tracking the revert in SERVER-69803.

Comment by Githook User [ 23/Aug/22 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: Revert "SERVER-67552: Creates a generic RsaPublicKey class that serves as a wrapper around RSA public key material in OpenSSL."

This reverts commit 8f895e99ade9d42f015595a60500bb694b9027ce.
Branch: master
https://github.com/mongodb/mongo/commit/bc19fa9af32e8c015f0f58a5455b91196487a490

Comment by Githook User [ 15/Jul/22 ]

Author:

{'name': 'Adhishree Abhyankar', 'email': 'adhishree.abhyankar@mongodb.com'}

Message: SERVER-67552: Creates a generic RsaPublicKey class that serves as a wrapper around RSA public key material in OpenSSL.
Branch: master
https://github.com/mongodb/mongo/commit/8f895e99ade9d42f015595a60500bb694b9027ce

Generated at Thu Feb 08 06:08:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.