#secrets-manager #helper #secret #node #tooling #nosana #artifact-uploader

bin+lib nosana-node-helper

Helper tooling for the Nosana Node

3 releases (1 stable)

1.0.0 Jun 8, 2023
0.1.1 May 3, 2023
0.1.0 May 3, 2023

#10 in #tooling

MIT license

16KB
231 lines

Nosana Node Helper

Helper tooling for the Nosana Node.

Usage

Usage: nosana-node-helper artifact-uploader [OPTIONS] --job-id <JOB_ID> --secrets-manager <SECRETS_MANAGER> --secrets-token <SECRETS_TOKEN>

Options:
  -n, --name <NAME>                        The name of the archive [default: artifacts]
  -j, --job-id <JOB_ID>                    The build ID to download and upload artifacts
  -s, --storage <STORAGE>                  Storage backend [default: ipfs] [possible values: ipfs]
      --pinata-jwt <PINATA_JWT>            Token when using ipfs [env: PINATA_JWT=]
  -p, --path <PATH>                        Add paths to archive (can be multiple)
      --secrets-manager <SECRETS_MANAGER>  Url to secrets manager
      --secrets-token <SECRETS_TOKEN>      Token to secrets manager
  -h, --help                               Print help

Testing

To test this you can run cargo test, if you want to see all of the output of running the methods you can run the following command:

cargo test -- --nocapture

PINATA_JWT

Make sure to add your JWT to your environment in order to run Pinata storage tests.

export PINATA_JWT="yourPinataTokenHere"

Make sure to add a fresh Secrets Manager JWT to your environment in order to run secrets tests.

export SECRETS_JWT="yourSecretsTokenHere"

Dependencies

~10–27MB
~420K SLoC