Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28605

Implement KeysCollectionDocument

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.6
    • Affects Version/s: 3.5.5
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2017-04-17

      Implement class for parsing and serializing a admin.system.keys document:

      {
          _id: <int>,
          purpose: 'signLogicalTime',
          key: <20 byte key generated with secure PRNG in BinData>,
          expiresAt: <LogicalTime, currently Timestamp format>
      }
      
      class KeysCollectionDocument {
      public:
          KeysCollectionDocument(long long keyId, std::string purpose, TimeProofService::Key key, LogicalTime expiresAt);
          static StatusWith<TypeKeys> fromBSON(const BSONObj& doc);
          BSONObj toBSON() const;
      
          // getter methods
      };
      

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: