Use secrets without exposing them
Devolutions CLI can hand a secret from your vault to a program in several ways. They differ in the one thing that matters most: whether the value ever lands somewhere you, your shell, or a file can see it. Start with devo secret run, and pick another command only when your tool can't work with it.
Pick the right command
devo secret run
Resolves references into the environment or the standard input of one command, starts it, and replaces the values with <concealed by Devolutions> in what it prints.
Yes. The values exist only in that command's environment, while it runs.
devo secret inject
Replaces the references in a template and writes the result to a file or to standard output.
No. The result contains the values in plain text.
devo secret shell enter
Prints Bash or PowerShell code that sets environment variables in your current shell. You run that code with eval or Invoke-Expression.
No. The values stay in plain text in your shell session until you leave the scope.
devo secret read
Resolves one reference and prints the value, or writes it to a private file with --out-file.
No. You get the value.
devo secret get
Same as devo secret read, but you name the field and the entry instead of writing a reference.
No. You get the value.
devo secret set
Writes a new value to a field of an entry. The value comes from an environment variable or a file.
Yes. The new value is never typed on the command line and never printed.
devo secretspec
Registers Devolutions CLI as the provider SecretSpec calls for devo:// provider URIs.
No. Devolutions CLI returns the value to SecretSpec, which passes it to your application.
In this section
Find the reference to a secret: list the
devo://references of an entry, without reading any value.Run a command with its secrets:
devo secret run, the safest way to give a secret to a program.Take the passwords out of a .env file: keep
.envfiles in your repository, with references instead of values.Fill a configuration file from a template:
devo secret inject, for tools that only read a configuration file.Use secrets in your current shell:
devo secret shell enter, for several commands in a row.Update a secret from a script:
devo secret set, to rotate a password without typing it.Use Devolutions CLI with SecretSpec: make your vault the backend of SecretSpec.
Last updated
Was this helpful?