View
Learn how to inspect a secret.
Command
$ vela view secret <parameters...> <arguments...>
For more information, you can run
vela view secret --help
.Parameters
The following parameters are used to configure the command:
Name | Description | Environment Variables |
---|---|---|
org | name of organization for the secret | VELA_ORG , SECRET_ORG |
repo | name of repository for the secret | VELA_REPO , SECRET_REPO |
secret.engine | name of engine that stores the secret | VELA_ENGINE . SECRET_ENGINE |
secret.type | name of type of secret being stored | VELA_TYPE , SECRET_TYPE |
team | name of team for the secret | VELA_TEAM , SECRET_TEAM |
name | name of the secret | VELA_NAME , SECRET_NAME |
output | format the output for the secret | VELA_OUTPUT , SECRET_OUTPUT |
This command also supports setting the following parameters via a configuration file:
secret.engine
secret.type
org
repo
output
For more information, please review the CLI config documentation.
Permissions
COMING SOON!
Sample
This section assumes you have already installed and setup the CLI.
To install the CLI, please review the installation documentation.
To setup the CLI, please review the authentication documentation.
Request
$ pwd
~/github/octocat
$ vela view secret --secret.engine native --secret.type repo --name foo
Targeted Request
$ pwd
~/github/octocat
$ vela view secret --secret.engine native --secret.type repo --org github --repo octocat --name foo
Response
id: 1
org: github
repo: octocat
team: ""
name: foo
value: "[secure]"
type: repo
images: null
events:
- push
- pull_request
allowcommand: true
createdat: 1641312765
createdby: octokitty
updatedat: 1641312765
updatedby: octokitty
Last modified February 9, 2022: docs for secrets metadata (#266) (179e26d4)