2.0.4 ā€¢ Published 4 months ago

@mongodb-js/mongodb-notary-service-client v2.0.4

Weekly downloads
-
License
SSPL
Repository
github
Last release
4 months ago

@mongodb-js/mongodb-notary-service-client npm

A client for our notary-service (an API for codesigning).

Example

CLI

First, create a .env file:

NOTARY_URL=${url}
NOTARY_AUTH_TOKEN=${token}
NOTARY_SIGNING_KEY=${key_name}

Install the client:

npm install -g @mongodb-js/mongodb-notary-service-client;

Sign a file in-place:

notary my-app.rpm;

Sign multiple files in-place:

notary my-app.rpm my-app.deb my-app.tar.gz;

View more details:

ā˜‰ notary --help

  Commands:

    sign [files...]  sign one or more files
    check            check configuration
    logs             get log from notary-service

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --debug        show debug output

API

process.env.NOTARY_URL="${url}";
process.env.NOTARY_AUTH_TOKEN="${token}";
process.env.NOTARY_SIGNING_KEY="${key_name}";

const sign = require('@mongodb-js/mongodb-notary-service-client');
sign('my-app.rpm').then((signed) => {
  if (signed) console.log('my-app.rpm has been signed and rewritten in-place');
});
2.0.4

9 months ago

2.0.3

11 months ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.5.1

3 years ago