12. Security

Retrospective stores your host credentials on the computer you run it from: passwords, SSH keys and their passphrases. This chapter explains how they are protected, and is equally specific about the limits: anyone deciding whether to trust a tool with a production password needs both halves.

The detail is deliberate, because the assumption behind desktop credential storage has changed. Protecting such files used to mean protecting them from someone who had stolen the machine or its backup. Today, AI assistants and automation tools run routinely on working machines, under your own account — and an ordinary user account is all it takes to read your own home directory, where this configuration lives. No administrator rights are involved.

That is the assumption behind everything in this chapter: not a stolen disk, and not an intruder with special privileges, but a capable program running with exactly your permissions. Retrospective is one of the things such a program can reach, and it is designed on that basis.

12.1. What Retrospective Protects

What Retrospective stores, how it is protected, and what reaches the target hosts

Fig. 12.1 What Retrospective keeps and protects.

  1. Stored credentials are encrypted with AES-256-GCM.

  2. Their key is protected by the installation.key file or, when you set one, by your master password.

  3. Retrospective’s own known_hosts file stores the trusted host keys, with hashed host names.

  4. The known_hosts file of your SSH client is read by default and never written.

  5. On a target host, Retrospective installs nothing and runs read-only commands under the configured account.

  6. An exported configuration carries the host keys. Passwords are cleared, or kept under an export password.

To reach your hosts, Retrospective has to keep the credentials you give it. They are stored in its configuration, in the Retrospective home directory (see Changing Configuration Location), and they are always encrypted — with AES-256-GCM, under a key belonging to this installation alone.

Eight kinds of secret are protected this way:

Secret

Where you enter it

SSH or SFTP password

Host Manager, Authentication

SSH private key

Host Manager, Authentication

SSH key passphrase

Host Manager, Authentication

sudo password

Host Manager, Identity change

Windows host password

Host Manager, Authentication

Per-host proxy password

Host Manager, Proxy (Define Proxy)

Global proxy password

Proxy Settings preferences

Koia database password

Koia Data Analysis preferences

Two properties hold whether or not you set a master password. First, the configuration is not portable. Copied to another computer, the encrypted credentials in it cannot be opened there, because the key stayed behind. Second, Retrospective never shows a stored secret back to you. A field holding one shows a row of dots you cannot type into, with the i-sealed padlock and i-edit Replace the saved value beside it. Leave it alone to keep what is stored, or press the pencil to enter a new value; i-edit Keep the saved value undoes that.

In the Host Manager you can also remove a saved password or key passphrase of a host: press i-edit Replace the saved value and save with the field empty. A sudo password is removed by clearing Requires password, and a per-host proxy password by clearing Requires password in Define Proxy. The global proxy password is removed by setting Proxy Authentication to None. The Koia database password can only be replaced.

A master password adds the third property, and it is the one this chapter is mostly about: that nothing kept on this computer can open your credentials either.

12.2. Turning On Master-Password Protection

Open File ‣ Preferences ‣ Security and press Set Master Password….

The dialog asks for the New password and, to rule out a typing error, the same again in Repeat password. Show password shows both entries in plain text. OK stays disabled until both entries match and meet the rules.

A master password must be at least 12 characters long, must use at least five different characters, and must not begin or end with a space. Length is what matters here: it is what makes guessing the password expensive.

If you keep passwords in a password manager, press Generate. Retrospective proposes a random password of five groups of four characters, separated by hyphens. It shows the password, so you can copy it straight into the manager. It avoids characters that are easy to confuse, so a generated password read off one screen and typed on another still works.

Warning

There is no way to recover your stored credentials if the master password is lost. Retrospective cannot reset it for you, and neither can we — that is what makes it worth setting. Keep it somewhere you can find it again before you continue.

Protection takes effect at once, with no restart. The session you are in stays unlocked. After a restart, or once the auto-lock time has passed without a credential being used, Retrospective asks again the next time it needs a stored credential.

12.3. Working With Protection On

The states of master-password protection and the actions that move between them

Fig. 12.2 Master-password protection states.

  1. No master password: stored credentials are protected by the installation key.

  2. Protected and locked.

  3. Protected and unlocked.

  4. Unusable: the stored credentials are damaged or come from another installation. This can happen with or without protection.

  5. Setting a master password protects the credentials, and the session stays unlocked.

  6. The session locks again after the auto-lock time or at the next start. There is no manual lock.

  7. Entering the master password unlocks the session.

  8. Changing the master password asks for the current one, so it works while locked too.

  9. Turning protection off asks for the master password and returns to no protection.

  10. Forgotten Password… deletes every stored credential and turns protection off.

  11. Reset Stored Passwords… deletes every stored credential and starts without protection.

Retrospective asks for the master password only when it actually needs a stored credential — usually the first time you open a connection to a host in a session, not at start-up. Searching log files on your own computer never prompts, because nothing there is protected.

When a credential is needed and Retrospective is locked, the Unlock stored credentials dialog appears. One prompt covers everything: if several connections start at once, they all wait on the same dialog.

The dialog explains Retrospective needs the master password to open a stored credential. Enter it in Password and press Unlock. A wrong password shows That password did not open the stored credentials., and you can try again. Cancel stops the action that needed the credential, which then reports Cancelled — the master password is needed before this stored credential can be used.

12.3.1. Locking Again

In the Master Password group, Ask again after sets how long an unlocked session lasts, from 0 to 1440 minute(s), 30 by default. 0 never locks while Retrospective runs. The field is disabled while no master password is set.

The timer measures credential use, not activity, and expiry is quiet — nothing interrupts you at the 30-minute mark. The next time a connection genuinely has to be opened, the password is asked for again. Connections already open keep working, and Retrospective holds an unused host connection open for a few minutes more, so a host you were just using does not ask again straight away.

12.3.2. Changing the Master Password

Press Change Master Password… on the Security page. The Change master password dialog asks for the Current password, then the New password twice. The same rules as for a new master password apply, and Generate is offered too. Your stored credentials stay as they are; only the key that opens them is protected by the new password.

12.3.3. Turning Protection Off

Turn Off Protection… asks for the master password and then removes it. The confirmation is titled Turn off protection. Your stored credentials are not changed and stay encrypted, but Retrospective can open them on its own again — and so can anything else with access to this computer. Nothing is lost, and you can set a master password again at any time.

12.4. If You Forget the Master Password

There is no recovery, no backdoor and no support procedure. A master password that can be recovered by anyone is one that can be recovered by an attacker.

What you can do is start over with a new key. Forgotten Password… on the Security page does exactly that, and asks you to confirm first, because it cannot be undone.

Lost

Kept

Every stored password, key passphrase and imported SSH private key

Every host and data source definition

Profiles, bookmarks and search history

All other preferences

All collected log data

Afterwards, protection is off. Set a new master password to turn it back on. No restart is needed. Retrospective asks for each password again as you next use the host it belongs to.

The same way out covers a second case: the key file itself being damaged, or belonging to a different installation. Retrospective then reports that the stored credentials cannot be opened, and the Security page offers Reset Stored Passwords… in place of the other buttons — the same fresh start, with the same list above. A configuration copied from another computer is not this case: the credentials in it were never yours to open, and the way to move them is an export with an export password (see Sharing a Configuration).

12.5. Sharing a Configuration

Retrospective encrypts stored credentials with a key that belongs to this installation alone, so no other installation could open them. When you export hosts and profiles (Exporting and Importing Hosts, Profiles and Bookmarks), Retrospective asks whether the file should carry them at all.

Press Clear passwords whenever you can (it is the default). The file then holds host and profile definitions only, and whoever imports it enters their own credentials. That is the right outcome for a colleague who has their own accounts anyway.

Press Keep passwords and two things follow. Retrospective asks for your master password, because moving credentials out of the installation is exactly the kind of act it should confirm. Then you set an export password in the Set export password dialog, and the credentials are re-encrypted under that instead.

Whoever imports the file has to type that export password. Send it to them by some other route than the file itself — a file and its password traveling together are one thing, not two.

Either way the file carries the host keys Retrospective has stored for the hosts it exports. Host keys are public, so they need no password. Whoever imports the file then reaches the same machines without a first-contact question, which is the moment at which an unverified host is easiest to impersonate. See Host Keys in an Exported File.

Note

Exports that carry credentials are recorded in the audit log, with the file they were written to.

12.6. The Audit Log

With Record every use of a stored credential switched on — the default — Retrospective writes one line every time it opens a stored credential, to credential-audit.log in the version folder of the Retrospective home directory (see Changing Configuration Location).

A line names the time, what the credential was for, and which host or setting it belongs to:

2026-08-20T09:14:22.481+02:00  OPENED            SSH_PASSWORD        prod-web-01
2026-08-20T09:31:07.902+02:00  OPENED            SUDO_PASSWORD       prod-web-01
2026-08-20T09:33:12.017+02:00  REFUSED           SSH_PASSWORD        prod-web-02  (Retrospective is locked — the master password is needed before stored credentials can be used)
2026-08-20T09:47:55.118+02:00  HOSTKEY_TRUSTED   ssh-ed25519         db-02:22  (SHA256:l5A2u1Qk9r0nS7pWc3dYbEfXhT4gJmZvKq8NxRtCuI0)
2026-08-20T10:12:03.640+02:00  HOSTKEY_REJECTED  ssh-ed25519         db-02:22  (SHA256:9pQmR2wZ4tYcXbN7hVaL1sKdEuG5oJfT0iCyBnMrPx8 changed)
2026-08-20T10:44:19.205+02:00  HOSTKEY_IMPORTED  ssh-ed25519         db-03:22  (SHA256:Tz6WqC1dLp8vKhNyR4mXbAeUgF7sJoDi0nQrE2cYlV3)
2026-08-20T11:02:10.774+02:00  EXPORTED          CONFIGURATION       C:\Users\me\shared-hosts.xml

Decisions about a server’s identity are recorded here as well. A host-key line names the key type, the host and port, and the fingerprint, so a host you accepted months ago can still be checked against a runbook. Fingerprints are public, which is what makes writing them down safe. A key taken on from an imported configuration is recorded too, and is the one you are most likely to want afterwards: nobody was shown its fingerprint at the time.

The log never contains a secret, or anything derived from one — a log that could leak a password would be worse than no log at all.

Refusals are recorded as well as successes. A run of refusals against a locked Retrospective is the shape of something trying to use credentials it cannot open, and it is exactly what a successes-only log would miss.

The file is readable only by your own account, and is capped at one megabyte: when it fills, it becomes credential-audit.log.1 and a fresh one starts, so one previous file is always kept.

Switching auditing off is itself recorded, on the way out.

12.7. Hardening the Installation

The master password protects your credential files. It does not, on its own, protect the Retrospective program.

If the account you work with can modify the installed program, so can anything else running as that account. A program that can be modified can be started differently — for instance, so that another program observes the master password as you type it. No amount of encryption prevents this, because at the moment you type the password, the altered program is what you are typing it into.

The remedy is one-time and ordinary: install Retrospective for all users, which places the program files under an administrator account. Your everyday account can then run Retrospective, but not change it.

Retrospective checks this at every start. When master-password protection is on and the account running Retrospective can change its installation directory, it shows an Installation can be modified warning and records the same warning on the Status tab. The warning returns at each start until the cause is removed:

System

Making the installation read-only for your account

Windows

Run the installer as an administrator and keep the suggested folder under C:\Program Files. An installation inside your own profile, such as %LOCALAPPDATA%\Programs\Retrospective, can always be changed by your account.

macOS

An application copied to /Applications belongs to your account. Hand it to the system with sudo chown -R root:wheel /Applications/Retrospective.app. Updating it then needs an administrator password.

Linux

Run the installer as root, for example into /opt/Retrospective, or give an existing installation to root with sudo chown -R root:root <installation directory>.

Without a master password the warning is not shown: the key that opens your credentials is then on this computer anyway, so a writable installation changes nothing (see What This Does Not Protect Against).

Retrospective also checks how it was started. If it finds that it was started with an option that lets another program observe it, it refuses to accept the master password at all and names the option to remove. See Troubleshooting and Best Practices.

12.8. What This Does Not Protect Against

Master-password protection closes one specific gap: it stops your stored credentials from being read off this computer’s disk. What it leaves open matters just as much, because it decides how you should set up the rest of your environment.

Without a master password, this protects against copying, not against local access. Retrospective always encrypts stored credentials, and a configuration file copied to another machine is useless there. But until you set a master password, the key that opens it sits on this computer — so Retrospective can open your credentials on its own, and so can anything else running under your account. Setting a master password is what closes the remaining gap.

While a credential is in use, it is in the computer’s memory. Retrospective decrypts a credential only at the moment it opens a connection, and never shows one back to you. It cannot, however, present a password to a remote host without holding it briefly. Anything able to read the memory of the running, unlocked program can reach what is in use at that moment — as it can in any program that authenticates to something else. When Retrospective locks, after the idle time you set or when you quit, it no longer holds the key and must ask for the master password again.

The master password protects your credentials, not your hosts. Anyone at your unlocked computer can use Retrospective to search every host you have configured, without ever seeing a password. That is what an unlocked application is for. The real boundary is the permissions of the account each host definition logs in with — see Preparing Hosts and Security. For that reason we recommend giving Retrospective a dedicated account with read access to the logs you need and nothing further, rather than a personal or administrative login.

A stored host key is only as trustworthy as the file that holds it. Retrospective refuses a connection when a host presents a key that does not match the one stored for it, which is described under Server Identity. That check rests on known_hosts, an ordinary file under your own account. Anything running as you can rewrite it, and the next connection would then be measured against the wrong key. The remedy is the one above: install Retrospective for all users, and keep the account you work with an ordinary one.

The audit log records; it does not prevent. With Record every use of a stored credential switched on — the default — every credential Retrospective opens leaves a line in the log, and so does every refusal. That makes quiet, repeated use discoverable afterwards. It is not tamper-proof: anyone who can read your files can also delete it. Treat it as evidence, not as a barrier.