Secret
doohickey secret allows you to interact with secrets in the OIH environment. Secrets are used to store sensitive information. OIH automatically encrypts the secret for you. Once a record is stored, you only need to reference that record by its alias to retrieve the credentials.
Arguments
doohickey secret accepts one argument - an alias for the secret
Create
doohickey secret create instantiates a secret record in OIH. The UUID for this secret will be saved for Doohickey CLI to reference later, as well as for you to use within your templates.
| flags | type | description | 
|---|---|---|
| --environment (-e) | string | Alias of OIH environment | 
| --file (-f) | string | A path to a file that contains the data to be used as input | 
| --output (-o) | string | A file path to use for saving output, as opposed to the default of sending to stdout | 
| --id (-i) | string | The ID used for selecting a secret | 
| --name (-n) | string | The display name for the secret to be stored in OIH | 
| --stdin (-N) | boolean | Use stdin for input instead of file | 
Delete
doohickey secret delete will remove a secret from both your local integration environment and OIH.
| flags | type | description | 
|---|---|---|
| --environment (-e) | string | Alias of OIH environment | 
| --id (-i) | string | The ID used for selecting a secret | 
Update
doohickey secret update will apply an update to an existing secret.
| flags | type | description | 
|---|---|---|
| --environment (-e) | string | Alias of OIH environment | 
| --output (-o) | string | A file path to use for saving output, as opposed to the default of sending to stdout | 
| --id (-i) | string | The ID used for selecting a secret | 
View
You are able to view a single secret as well as viewing all secrets available in an OIH environment.
View One Secret
To view a single secret, run the command doohickey secret view mySecretAlias, replacing mySecretAlias with the alias of the secret you would like to view, or doohickey secret view --id 12345 replacing 12345 with the UUID of the secret.
| flags | type | description | 
|---|---|---|
| --environment (-e) | string | Alias of OIH environment | 
| --output (-o) | string | A file path to use for saving output, as opposed to the default of sending to stdout | 
| --id (-i) | string | The ID used for selecting a secret | 
View All Secrets
To view all secrets in an OIH environment, run the command doohickey secret view and OIH will retrieve all secrets and return limited information about them. To retrieve additional information, you can pass the --verbose flag.
| flags | type | description | 
|---|---|---|
| --environment (-e) | string | Alias of OIH environment | 
| --output (-o) | string | A file path to use for saving output, as opposed to the default of sending to stdout | 
| --id (-i) | string | The ID used for selecting a secret | 
| --verbose (-v) | boolean | Verbose mode for view command to list all columns | 
