Skip to content

How secrets are kept

A secret is a private value your plans use, such as a password. This page explains how Allgreen protects it. To add and use secrets, see Secrets and signing in.

In the desktop app, secret values are kept in your computer’s keychain, the system’s password store: Credential Manager on Windows, Keychain on macOS. Each project has its own entry, under the name “Allgreen”. Nothing about secrets is written in the project folder.

With the command line, secret values are kept in allgreen/secrets.local.json, in your project folder. On macOS and Linux, Allgreen writes the file so that only your user account can read it; on Windows, it is protected by your folder’s permissions. allgreen init also adds a .gitignore in allgreen/ so that Git leaves the file out.

A secret value is one line of text: Allgreen refuses line breaks, tabs and other invisible characters.

  • In plans, a step holds only the secret’s name, written {{NAME}}, never the value.
  • In the editor and in reports, a step that uses a secret shows ••••, for example: Fill “Password” with ••••.
  • In reports, messages and the command line output, Allgreen replaces the value of every saved secret it finds with ••••, even where a step typed that value in clear instead of using the secret. It also catches the value written in the ways error messages and web addresses quote it. A password that was never saved as a secret is masked nowhere.
  • On the Secrets page, a saved value is never shown again, not even to you.
  • In exported Playwright tests, a secret is read from an environment variable, ALLGREEN_<NAME>, never written in the test.
  • For an AI, no tool reads or sets a value. See What the AI sees.

Masking works on text Allgreen writes. Some files record what happened in the browser, and they can hold a value in clear:

  • Traces. A trace records everything the browser did, including what was typed. Share a trace only with someone you trust.
  • Screenshots and videos. They show what the page showed. A password field shows dots, but a secret typed into an ordinary field can be read.
  • Saved sign-in sessions. After the sign-in plan, the run keeps the signed-in session, so the other plans start signed in. Whoever has that file can act as the test account until the session expires.
  • Playwright’s own files, such as the error notes it writes beside a failure, and its raw report if a run is interrupted.

These files stay in the runs folder, on your computer.

  • With the command line, runs are kept in .allgreen/runs/ in your project folder. Allgreen adds a .gitignore in .allgreen/ that leaves everything in it out of Git. Do not share the .allgreen/ folder.
  • In the desktop app, runs are kept in the app’s data folder, outside your project: ~/Library/Application Support/Allgreen on macOS, %LOCALAPPDATA%\Allgreen\data on Windows.

Allgreen does not delete old runs for you. Delete the ones you no longer need, especially those whose traces may show a secret.

  • Test with a test account, not your own or a customer’s. If a value leaks through a trace or a screenshot, it can do little harm.
  • Test a test site (a staging site) when you have one, rather than the live site.
  • Use a secret for anything private, even a test email address you would rather not share: plans are often shared, and an AI reads them whole.
  • Clear a secret on the Secrets page when you no longer need it.