Skip to content

@elastic/mockopampserver 0.5.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 19:50
· 206 commits to main since this release
e7385d8

Changelog

  • Add TLS and mTLS support. #1044

    The mockopampserver CLI now has these new options for setting TLS data, and
    for requesting client certs (for mTLS):

    --cacert=ARG             Override the built-in-to-Node.js trusted CA
                             certificates with the content of this file, in PEM
                             format. Enables HTTPS.
    --cert=ARG               Path to file with TLS certificate chains, in PEM
                             format, to use. Enables HTTPS.
    --key=ARG                Path to server TLS private keys, in PEM format.
                             Enables HTTPS.
    --request-client-cert    Tells the server to request TLS certs from
                             connecting clients. Enables HTTPS.
    

    The code interface also has equivalent new options:

    const opampServer = new MockOpAMPServer({
        // ...
        ca: fs.readFileSync("..."),
        cert: fs.readFileSync("..."),
        key: fs.readFileSync("..."),
        requestCert: true
    });

README | Full Changelog