Skip to main content

csph secret-source create

connect a secret manager (the secret is read from stdin or a prompt, never a flag)

Usage​

csph secret-source create <name> [flags]

Options​

Command Specific​

--allow <stringArray>
a project that can use it, as <project> (all its environments) or <project>=<env>,<env> (repeatable; names or ids)
--allow-all
every project can use it, including new ones
--allow-none
no project can use it yet
--auth <string>
sign-in method (defaults to the type's first)
--setting <stringArray>
a setting of the type as name=value (repeatable)
--sign-in <stringArray>
a sign-in detail that isn't secret, as name=value (repeatable; for example client_id=<id>)
--type <string>
secret manager type (for example doppler)

-y, --yes

skip the confirmation prompt

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# Doppler: the service token is read from stdin
> printf '%s' "$DOPPLER_TOKEN" | csph secret-source create app-doppler --type doppler \
--setting project=web --setting config=prd --allow web=production

# Azure Key Vault: the app's client ID is a flag, its client secret is read from stdin
> printf '%s' "$CLIENT_SECRET" | csph secret-source create app-vault --type azure-kv \
--setting tenant_id=<tenant-id> --setting vault=<vault-name> \
--sign-in client_id=<client-id> --allow-all

See also​