4.0.0-alpha.0 • Published 2 days ago

@magda/create-secrets v4.0.0-alpha.0

Weekly downloads
3
License
Apache-2.0
Repository
-
Last release
2 days ago

MAGDA create-secrets Tool

A CLI tool that helps to create kuberneter secrets required by Magda.

Install

$ npm install --global @magda/create-secrets

Upgrade

To update the existing installation to the latest version:

$ npm install --global @magda/create-secrets@latest

Usage

  • Run without options will show the questionnaire to guide you through the process:
$ create-secrets

magda-create-secrets tool version: x.xx.x
Found previous saved config (September 2nd 2020, 1:58:17 pm).
? Do you want to connect to kubernetes cluster to create secrets without going through any questions?
❯ NO (Going through all questions)
  YES (Create Secrets in Cluster using existing config now)
  • Run with --help will show all options:
$ create-secrets --help

Usage: create-secrets [options]

A tool for magda k8s secrets setup. Version: x.x.xx

Options:
  -V, --version                   output the version number
  -E, --execute [configFilePath]  Create k8s secrets in cluster using `${appName}` config file/data without asking any user input.
     If you want to supply config data via STDIN, you can set `configFilePath` parameter to `-`.
     e.g. `echo $CONFIG_CONTENT | magda-create-secrets -E -` or `cat config.json | magda-create-secrets --execute=-`
     If configFilePath is not specify, program will attempt to load config file from:
     either `$XDG_CONFIG_HOME/configstore/magda-create-secrets.json`
     or `~/.config/configstore/magda-create-secrets.json`
  -P, --print                     Print previously saved local config data to stdout
  -D, --delete                    Delete previously saved local config data
  -h, --help                      output usage information
  Available Setting ENV Variables:

    DEPLOY_TO_GOOGLE_CLOUD : Are you creating k8s secrets for google cloud or local testing cluster?
    LOCAL_CLUSTER_TYPE : Which local k8s cluster environment you are going to connect to?
    USE_CLOUDSQL_INSTANCE_CREDENTIALS : Do you use google cloud SQL service as your database?
    CLOUDSQL_DB_CREDENTIALS : Please provide default google cloud SQL service DB password:
    RESELECT_CLOUDSQL_INSTANCE_CREDENTIALS : Has located saved Google SQL cloud credentials JSON file. Do you want to re-select?
    CLOUDSQL_INSTANCE_CREDENTIALS : Please provide the path to the credentials JSON file for your Google SQL cloud service access:
    USE_STORAGE_ACCOUNT_CREDENTIALS : Do you use google storage service?
    RESELECT_STORAGE_ACCOUNT_CREDENTIALS : Has located saved Google storage private key JSON file. Do you want to re-select?
    STORAGE_ACCOUNT_CREDENTIALS : Please provide the path to the private key JSON file for your Google storage service access:
    USE_SMTP_SECRET : Do you need to access SMTP service for sending data request email?
    SMTP_SECRET_USERNAME : Please provide SMTP service username:
    SMTP_SECRET_PASSWORD : Please provide SMTP service password:
    USE_REGCRED : Do you use Gitlab as your CI system and need the access to Gitlab docker registry?
    USE_REGCRED_PASSWORD_FROM_ENV : Do you want to get gitlab docker registry password from environment variable ($CI_JOB_TOKEN) or input manually now?
    REGCRED_EMAIL : Please provide the email address that you want to use for Gitlab docker registry:
    REGCRED_PASSWORD : Please provide password for Gitlab docker registry:
    USE_OAUTH_SECRETS_GOOGLE : Do you want to create google-client-secret for oAuth SSO?
    OAUTH_SECRETS_GOOGLE : Please provide google api access key for oAuth SSO:
    USE_OAUTH_SECRETS_FACEBOOK : Do you want to create facebook-client-secret for oAuth SSO?
    OAUTH_SECRETS_FACEBOOK : Please provide facebook api access key for oAuth SSO:
    USE_OAUTH_SECRETS_ARCGIS : Do you want to create arcgis-client-secret for oAuth SSO?
    OAUTH_SECRETS_ARCGIS : Please provide arcgis api access key for oAuth SSO:
    USE_OAUTH_SECRETS_AAF : Do you want to create aaf-client-secret for AAF Rapid Connect SSO?
    OAUTH_SECRETS_AAF : Please provide AAF secret for AAF Rapid Connect SSO:
    USE_WEB_ACCESS_SECRET : Do you want to setup HTTP Basic authentication?
    WEB_ACCESS_USERNAME : Please provide the username for HTTP Basic authentication setup:
    MANUAL_WEB_ACCESS_PASSWORD : Do you want to manually input the password for HTTP Basic authentication setup?
    WEB_ACCESS_PASSWORD : Please provide the password for HTTP Basic authentication setup:
    MANUAL_DB_PASSWORDS : Do you want to manually input the password used for databases?
    DB_PASSWORDS : Please provide the password used for databases:
    ACCESSKEY : Please enter an access key for your MinIO server:
    SECRETKEY : Please enter a secret key for your MinIO server::
    GET_NAMESPACE_FROM_ENV : Specify a namespace or leave blank and override by env variable later?
    CLUSTER_NAMESPACE : What's the namespace you want to create secrets into (input `default` if you want to use the `default` namespace)?
    ALLOW_ENV_OVERRIDE_SETTINGS : Do you want to allow environment variables (see --help for full list) to override current settings at runtime?
4.0.0-alpha.0

2 days ago

3.0.2

20 days ago

3.0.2-alpha.1

23 days ago

3.0.2-alpha.0

24 days ago

3.0.1

1 month ago

3.0.1-alpha.0

1 month ago

3.0.0

2 months ago

3.0.0-alpha.2

3 months ago

3.0.0-alpha.1

3 months ago

3.0.0-alpha.0

4 months ago

2.3.0-alpha.0

9 months ago

2.3.0

8 months ago

2.3.2

7 months ago

2.3.1

8 months ago

2.3.3

6 months ago

2.2.5-alpha.1

10 months ago

2.2.5

9 months ago

2.2.6

9 months ago

2.3.2-alpha.1

7 months ago

2.3.2-alpha.0

8 months ago

2.3.2-alpha.2

7 months ago

2.2.5-alpha.0

11 months ago

2.2.4

12 months ago

2.2.4-alpha.0

1 year ago

2.2.4-alpha.1

1 year ago

2.2.3-alpha.3

1 year ago

2.2.3

1 year ago

2.2.3-alpha.1

1 year ago

2.2.3-alpha.0

1 year ago

2.2.3-alpha.2

1 year ago

2.2.2-alpha.1

1 year ago

2.2.2-alpha.0

1 year ago

2.2.2

1 year ago

2.2.2-rc.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.0-alpha.0

2 years ago

2.2.0-alpha.3

1 year ago

2.2.0-alpha.2

1 year ago

2.2.0-alpha.1

1 year ago

2.1.1-alpha.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.1.2-alpha.0

2 years ago

2.0.1

2 years ago

2.1.0-alpha.1

2 years ago

2.1.0-alpha.0

2 years ago

2.0.0-alpha.7

2 years ago

2.0.0-alpha.8

2 years ago

2.0.0-alpha.4

2 years ago

2.0.0-alpha.5

2 years ago

2.0.0-alpha.6

2 years ago

1.3.1-rc.2

2 years ago

1.3.1-rc.1

2 years ago

1.3.1-rc.0

2 years ago

2.0.0

2 years ago

1.3.1

2 years ago

0.0.60-dt.2

2 years ago

2.0.0-alpha.3

2 years ago

2.0.0-alpha.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

2.0.0-alpha.1

2 years ago

1.3.0-rc.0

2 years ago

1.2.2-alpha.0

2 years ago

1.2.1-rc.0

2 years ago

2.0.0-alpha.0

2 years ago

1.2.0

2 years ago

1.2.1-alpha.0

2 years ago

1.2.0-rc.0

2 years ago

1.2.0-alpha.1

2 years ago

1.0.1

2 years ago

1.1.0-arm64.0

3 years ago

1.1.0-rc.1

2 years ago

1.1.0-rc.0

2 years ago

1.1.0

2 years ago

1.2.0-alpha.0

2 years ago

1.1.0-alpha.2

2 years ago

0.0.60-dt.1

2 years ago

1.1.0-alpha.3

2 years ago

0.0.60-dt.0

2 years ago

1.1.0-alpha.4

2 years ago

1.1.0-alpha.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.1.0-alpha.0

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

0.0.60

3 years ago

1.0.0-alpha.0

3 years ago

0.0.60-rc.5

3 years ago

0.0.60-alpha.18

3 years ago

0.0.60-alpha.17

3 years ago

0.0.60-alpha.16

3 years ago

0.0.60-alpha.15

3 years ago

0.0.60-rc.4

3 years ago

0.0.60-alpha.14

3 years ago

0.0.60-alpha.13

3 years ago

0.0.60-rc.3

3 years ago

0.0.60-alpha.12

3 years ago

0.0.60-alpha.11

3 years ago

0.0.60-alpha.10

3 years ago

0.0.60-rc.2

3 years ago

0.0.60-alpha.9

3 years ago

0.0.60-alpha.8

3 years ago

0.0.60-alpha.7

3 years ago

0.0.60-alpha.6

3 years ago

0.0.60-rc.1

3 years ago

0.0.60-alpha.5

3 years ago

0.0.60-rc.0

3 years ago

0.0.60-alpha.4

3 years ago

0.0.60-alpha.3

3 years ago

0.0.60-alpha.2

3 years ago

0.0.60-alpha.1

3 years ago

0.0.60-alpha.0

3 years ago

0.0.59

3 years ago

0.0.59-alpha.3

3 years ago

0.0.59-alpha.2

3 years ago

0.0.59-alpha.1

3 years ago

0.0.59-alpha.0

3 years ago

0.0.58

3 years ago

0.0.58-rc.5

3 years ago

0.0.58-rc.4

3 years ago

0.0.58-alpha.1

4 years ago

0.0.58-alpha.0

4 years ago