Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.27 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.27 KB

MonoDb Protocol

You can directly use the "proxy" as a normal mongodb backend

Login

If setting login and password on connection string should set "authMechanism=PLAIN". This is the only supported auth mechanism for the proxy

The connection string to connect to the proxy must always be without login and passwords, the SaslStart message is not supported

Missing features

  • Real authentication (always allowed)

Documentation used

Interesting information

Document format

The document starts with the Int32 length

struct Section {
    uint8 payloadType;
    union payload {
        document  document; // payloadType == 0
        struct sequence { // payloadType == 1
            int32      size;
            cstring    identifier;
            document*  documents;
        };
    };
};

struct OP_MSG {
    struct MsgHeader {
        int32  messageLength;
        int32  requestID;
        int32  responseTo;
        int32  opCode = 2013;
    };
    uint32      flagBits;
    Section+    sections;
    [uint32     checksum;]
};