HU

Secret storage: where the password lives, and who can reach it

We wrote this page for systems engineers. It covers where VisionDesk gets a password from, how it is encrypted, who receives it and when, and which risks we accept.

Where the password comes from

You set one source per target, and the three sources work side by side.

SourceWhere the secret livesHow VisionDesk reaches it
Pleasant Password ServerIn your existing Pleasant, where it is today.The broker requests it with its own service account. The client never receives a vault token, and users need no permission in Pleasant. Pleasant's own usage log also records who asked and why.
VisionDesk's built-in storeIn the VisionDesk SQL database, encrypted.For targets that are not in Pleasant.
Windows SSONowhere: there is no stored password.The technician signs in to the target with their own Windows account.

A credential can also belong to one named user. The database query filters it out up front, so other users never get it back as a candidate.

Encryption in the built-in store

A separate key per secret

Each secret gets its own random 256-bit data key and is encrypted with it using AES-256-GCM. The data key is wrapped by a master key above it.

The master key is not in the database

The master key lives in the environment of the broker's Windows service. Whoever obtains only the database or a backup of it cannot decrypt the secrets.

Key rotation without downtime

The old master key stays alongside the new one for a while, and only the data keys are rewrapped. The secrets themselves do not change and nothing has to be re-entered. A separate runbook describes the procedure.

Passphrase-protected key backup

The installer produces a recovery package for the master key. A passphrase protects it: PBKDF2-HMAC-SHA256 with 600,000 iterations, then AES-GCM.

The audit log builds on the same key

The audit log's seal key is derived from the master key. Whoever can reach only the database cannot forge a valid seal either.

Deletion for good

Deletion overwrites the stored value with random bytes, removes the row and leaves an audit trace. It cannot erase at disk level: the transaction log and backups may keep the old bytes.

Who receives the password, and when

Every secret request goes through the broker. The broker checks permissions and logs who asked, for which target and why. Where the password goes next depends on the connection type.

ConnectionWhere the password goes
SSH in the embedded terminalNowhere. The broker opens the connection and keeps the password and key; the client never receives them.
Classic RDPFrom the broker over an encrypted channel into the technician's client, in the RDP engine's memory. It does not appear in the interface and is not written to disk.
External program (PuTTY, Winbox)Onto the technician's machine. PuTTY reads it from a temporary file only the user can read; Winbox gets it as a launch parameter, because it offers no other way.
Manual sign-in target, such as a web interfaceOnto the technician's clipboard, after a permission check, and logged. The system clears the clipboard after 30 seconds if it still holds our value.

The risks we accept

  • The broker machine is the trust boundary. An administrator on it can read the master key too. We deliberately did not bind the key to the machine, because recovery and server migration would then stop working. Run the broker machine in its own segment with a small group of administrators.
  • With classic RDP and external programs the password reaches the technician's machine, and a compromised workstation can read it there. On SSH the broker-held connection rules this out; on RDP we do not rule it out today.
  • If the master key is lost, the secrets in the built-in store cannot be decrypted, ever. That is why we test the recovery package during onboarding.
  • With Pleasant, the secret is only as safe as the Pleasant installation. The broker's service account can read everything it has been granted, so narrow that grant to the targets VisionDesk manages.
  • The database administrator cannot decrypt the secrets, but a change to the audit log within the sealing window (5 minutes by default) goes unnoticed.

Related: Security and architecture · Access control