Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use Devolutions CLI with SecretSpec

SecretSpec lets a project declare the secrets it needs in a secretspec.toml file, and fetches them from a provider. Devolutions CLI can be that provider: once it's registered, SecretSpec starts devo to read secrets from Devolutions Cloud, Devolutions Server, or a local Devolutions Remote Desktop Manager profile, using your existing contexts.

1

Register Devolutions CLI as the provider

devo secretspec register

This writes a small claim file, devo.secretspec.json, that tells SecretSpec which devo executable to start for devo:// provider URIs. Add --dry-run to see the claim without writing it.

OPTION
WHAT IT DOES

--system

Writes the claim for every user of the computer instead of only for you. This usually needs administrator rights.

--executable <path>

Registers another devo executable. The path must be absolute. By default, the devo you're running is registered.

--environment <name>, --env

Lets SecretSpec pass an extra environment variable to devo, by exact name or by prefix such as DEVO_*. Repeat for several. RDM_CONFIG_PATH and DEVO_CLI_CONFIG_HOME are always included.

--force

Replaces a claim that points at another executable for the devo scheme.

2

Get the provider URI

Select the workspace with --context (or use the current context), then ask for its provider URI:

devo secretspec uri --context <context-name> --vault-id <vault-id>

Put the URI it prints in your secretspec.toml as the provider. --vault-id is optional: it sets the default vault, and a secret can still name its own vault.

3

Check the registration

devo secretspec status

The status shows the claim for your user and for the computer, and for each one whether it's registered, points at the devo you're running, points at another one, or points at an executable that no longer exists.

Provider URI forms

WORKSPACE
PROVIDER URI

Devolutions Cloud

devo://cloud/<vault-id>?context=<context-name>

Devolutions Server

devo://server/<vault-id>?context=<context-name>

Local profile

devo://sqlite/<vault-id>?workspace=sqlite:<file-name>.db

  • The vault ID is optional in every form. Without it, every secret must name its own vault, or Devolutions CLI refuses it.

  • For Devolutions Cloud and Devolutions Server, ?context= is optional. Without it, the provider uses the current context.

  • For a local profile, the workspace is required. Pass it to devo secretspec uri with --workspace-id, for example --workspace-id sqlite:Connections.db.

These provider URIs select a workspace for SecretSpec. They aren't secret references: you can't use them with devo secret run.

How secrets are addressed

Devolutions CLI accepts native SecretSpec addresses only: each secret names the entry ID (item), the field (required), and optionally a vault that replaces the one in the provider URI. SecretSpec's convention-based addresses (project, profile, and key) are refused, because they can't point at one entry for sure. Sections aren't supported.

WORKSPACE
READ
WRITE

Devolutions Server

Any data property of the entry.

Any data property of the entry.

Devolutions Cloud

domain, host, password, port, privatekey, url, username.

password only, on an entry that holds its own credentials.

Local profile

Yes.

password only, with the workspace passphrase.

Stop using Devolutions CLI as the provider

Add --system to remove the claim for the whole computer, and --dry-run to see which claim would be removed.

Where the claim file goes

SYSTEM

FOR YOUR USER

WITH --system

Windows

SecretSpec\providers.d in your roaming application data folder

SecretSpec\providers.d in the machine-wide application data folder

macOS

~/Library/Application Support/SecretSpec/providers.d

/Library/Application Support/SecretSpec/providers.d

Linux

$XDG_CONFIG_HOME/secretspec/providers.d, or ~/.config/secretspec/providers.d when XDG_CONFIG_HOME isn't set, is empty, or isn't an absolute path

/etc/secretspec/providers.d

Good to know

  • SecretSpec starts devo itself. You don't need to run devo secretspec provider.

  • Add with --environment any other variable your contexts depend on, so SecretSpec can pass it to devo.

Next

Last updated

Was this helpful?