What stays hidden, and what doesn't
Every Devolutions CLI command that uses a secret has to put the value somewhere: in the environment of a program, in your terminal, in a file, in your shell, or in an AI model's context. Where it ends up decides who can see it. devo secret run keeps the value away from you, your shell, and your files. Other commands hand it over on purpose, because sometimes that's what you need.
Where each command puts the value
devo secret run
In the environment, or the standard input, of the one program you start. When it prints the value, you see <concealed by Devolutions> instead.
Yes. Only the program receives it.
devo secret read
devo secret get
Printed in your terminal, or in the JSON or YAML output. With --out-file, written to a file instead.
No.
devo secret inject
Written in plain text in the filled template, on the standard output or in the --out-file file.
No.
devo secret shell enter
In environment variables of your current shell, and of every program you start from it, until you run devo secret shell leave. Nothing is masked.
No.
devo secret set
The new value comes from an environment variable (--value-env) or a file (--value-file) that you prepare, never from the command line.
Not from the command line or your shell history. The variable or file you prepared still holds it.
An AI client connected with devo mcp
The RDM_resolve_secret_reference tool returns the value to the AI client, which puts it in the model's context.
No. The model, and its transcript, see the value.
SecretSpec
Devolutions CLI returns the value to SecretSpec, which decides where it goes next.
Depends on how you use SecretSpec. Devolutions CLI doesn't mask it.
devo session connect --entry
In your session daemon, the client built into Devolutions CLI that opens the session. Credentials leave the vault the same way as when Devolutions Remote Desktop Manager opens a connection. The value goes through the memory of the devo process that opens the session, never through its output.
Yes. The agent that runs the command doesn't see it either.
When an agent opens a connection
When an agent connects with devo session connect --entry, it never sees the entry's password. It still sees what happens in the session:
The output of the commands it runs and the text of the consoles it reads.
The screenshots it takes of a remote desktop.
Anything the remote computer shows, such as a password on the screen or in a file, reaches the agent that way.
"The agent never sees the password" holds only when the agent can't reach the value another way. At a minimum:
Deny the secret tool to the MCP server:
--deny-tool RDM_resolve_secret_reference.In the shell, block
devo secret read,devo secret get,devo secret inject, anddevo secret shell, which hand the value to whoever runs them, and--no-masking, which turns masking off.
What this means for you
Prefer devo secret run whenever a program can read its secret from an environment variable. The value goes to that program only, never to your shell, and it's gone when the program ends. See Run a command with its secrets.
References are refused in command arguments. If you write a devo:// reference after --, devo secret run stops and asks you to use --env-ref, --stdin-reference, or a launch manifest instead.
Files that hold a secret are private to you. When devo secret read, devo secret get, or devo secret inject writes to --out-file, the file is readable and writable by your account only on macOS and Linux. On Windows, only your account, administrators, and the system account can open it. The value is still in plain text: delete the file when you're done. See Fill a configuration file from a template.
Pick the command that matches how much you want to expose. Reading a secret, filling a template, or loading it in your shell is sometimes the only option, for example for a tool that reads a configuration file. Just know that from then on, the value is in your terminal, your file, or your session. See Use secrets in your current shell.
How masking works, and its limits
By default, devo secret run watches everything the program writes to its standard output and standard error, and replaces each resolved value with <concealed by Devolutions> before it reaches your terminal or log.
Masking is a safety net for what the program prints. It doesn't protect against what the program does:
Only the exact value is replaced. If the program prints part of it, encodes it (for example in Base64), or changes it, the result isn't masked.
A file the program writes, or a request it sends over the network, isn't masked.
The program's own child processes inherit its environment, so they receive the value too.
--no-maskingturns masking off. Use it only when you need the exact output, never in a shared log.
Who Devolutions CLI trusts
Devolutions CLI trusts your operating-system user account. The background process runs under your account and talks to devo over a local channel on your computer. That channel accepts your account and, on Windows, the system account (see Devolutions CLI on Windows, macOS, and Linux for the exception). Every request, except a status check, must also carry a session token that Devolutions CLI keeps in your configuration folder. Your saved contexts are in your configuration folder, and your sign-in sessions are protected by your operating system's secure store. See What data Devolutions CLI sends.
This has a consequence: any other program running under your account is trusted the same way. It can run devo and ask for a secret, just as you can.
What Devolutions CLI can't protect you from
A program that receives a secret can leak it. It can write the value to a file, send it over the network, or print it in a form masking doesn't catch. Only run programs you trust with your secrets.
Other programs running as you. Malware or an untrusted tool running under your account can use your contexts like you do. Devolutions CLI doesn't separate programs that run as the same user.
Values you handed over. Once you read a secret to your terminal, write it to a file, load it in your shell, or give it to an AI model, Devolutions CLI no longer controls where it goes.
A compromised computer. Like any tool, Devolutions CLI is only as safe as the computer and the user account it runs on.
Next
Last updated
Was this helpful?