[SERVER-43005] getKeyVault.createKey() should return the created data key Created: 23/Aug/19  Updated: 29/Oct/23  Resolved: 27/Aug/19

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 4.2.0
Fix Version/s: 4.2.1, 4.3.1

Type: Improvement Priority: Critical - P2
Reporter: Ravind Kumar (Inactive) Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-13041 Investigate changes in SERVER-43005: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Security 2019-09-09
Participants:

 Description   

In 4.2.0, the getKeyVault.createKey() method returns a WriteResult instead of the created key. This requires users to do one of two things:

  • Search by key alternate name for the created key, or
  • Search all keys in reverse creation order for the most recently created key

As noted in the spec document, data key creation methods should return at least the _id of the created document.

The 4.2 shell should either return the _id of the created data key per-spec.

 

Relevant code here

 

cc shreyas.kalyan



 Comments   
Comment by Ravind Kumar (Inactive) [ 20/Sep/19 ]

shreyas.kalyan can you set the downstreamchanges for docs, so our Jira trigger creates the appropriate ticket?

Comment by Githook User [ 16/Sep/19 ]

Author:

{'name': 'Shreyas Kalyan', 'username': 'shreyaskal', 'email': 'shreyas.kalyan@mongodb.com'}

Message: SERVER-43005 : getKeyVault.createKey() should return the created data key

(cherry picked from commit a605bfb8b3ecdff282508263b119f1fcfd13f27e)
Branch: v4.2
https://github.com/mongodb/mongo/commit/be111841ec825b6678d61adfb67f67b915102b15

Comment by Githook User [ 16/Sep/19 ]

Author:

{'username': 'shreyaskal', 'email': 'shreyas.kalyan@mongodb.com', 'name': 'Shreyas Kalyan'}

Message: SERVER-43005 : getKeyVault.createKey() should return the created data key

(cherry picked from commit b4b3e242629f73b44b36689f1ed318965419b2eb)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/e36e375b5c3449285e402aec12dbe983b8f414f6

Comment by Githook User [ 27/Aug/19 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-43005 : getKeyVault.createKey() should return the created data key
Branch: master
https://github.com/mongodb/mongo/commit/a605bfb8b3ecdff282508263b119f1fcfd13f27e

Comment by Githook User [ 27/Aug/19 ]

Author:

{'username': 'shreyaskalyan', 'email': 'shreyas.kalyan@10gen.com', 'name': 'Shreyas Kalyan'}

Message: SERVER-43005 : getKeyVault.createKey() should return the created data key
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b4b3e242629f73b44b36689f1ed318965419b2eb

Generated at Thu Feb 08 05:02:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.