Managing secrets
The Secrets tab lists the secrets of one environment. The list shows key names and metadata. Values stay hidden until you explicitly reveal one. Type in Filter keys to narrow the list.
Each row shows the key, the value as dots, and at the end a version badge with how long ago the secret changed: now, then a number of minutes, hours, days or years, such as 2m or 3d. Hover over the time, or click it, for the full date.
Every row has a ⋯ menu with Reveal, Copy value, History, Edit value and, last and in red, Delete. You only see the items your level allows.
A long key ends in "…". Click it to see the whole name, and click again to shorten it. Only one thing opens at a time: showing a name hides a revealed value, and revealing a value folds the name back. The copy icon next to a key copies its name.
Copy key names
To share which keys an environment has without their values, for example with an AI assistant, tick the box at the start of each row you want. The box in the header ticks every key the filter shows, and a key the filter hides is unticked, so what you copy is always what you see. A bar above the table says how many are picked; Copy names puts their names on your clipboard, one per line, and Clear unticks them. Copying names never reads a value, so anyone who can see the table can do it. The selection clears when you open another environment.
An empty environment
What an empty environment shows depends on the rest of the project and on your level. It goes away once the first secret is saved.
In a new project, where no environment has secrets yet, anyone who can write sees the setup timeline from Projects carried on: the project is done, adding secrets is the current step, and running the app waits until there's a secret. One box takes a .env file you drop or pick, opens the Editor view with Paste .env when the server has it on, or starts Add secret. Below it is the dopbase import command for this environment, and the last step shows dopbase login and dopbase run.
When another environment in the project already has secrets, the page offers to start from it instead. Copy from another environment picks the one with the most secrets, which you can change. Keys only is the default: every key comes over with an empty value, so staging never ends up pointing at dev's database by accident. Keys and values copies the values on the server and shows only when you can read the source. Review keys lists the source's keys with their versions, all ticked. Untick what doesn't belong and choose Copy. Keys the environment already has are left alone. The same box for a .env file and the import command sit underneath.
Someone who can see the environment but not write to it is told so and sent to a project manager. If they can open the project's Access tab, See who has access takes them there to find one.
Set and delete
- Set a secret by key name. Dopbase encrypts the value on the server before it is stored. Setting an existing key replaces its value, and Add secret tells you when the key already exists before you save. Trim whitespace is on by default. Like
.trim(), it removes spaces and line breaks at the start and end of a typed value when you save, so a stray space from a paste doesn't end up in the secret. Spaces inside the value stay:Hello Worldis saved as is. Turn it off when the spaces at the ends belong to the value. - Delete a secret from its row menu, after a confirmation.
Every change is an individual record. Replacing STRIPE_SECRET_KEY does not touch DATABASE_URL, and each change lands in the audit log.
Deleting a secret also deletes its version history.
Files
Add secret and Edit value ask whether the value is Text or a File. Choose File, then drop the file on the upload box or click Choose file. One file makes one secret. When the Key box is empty, Dopbase suggests a key from the filename, such as RELEASE_JKS for release.jks, and you can change it. The file's name is saved in lower case with spaces turned into -, so My JSON secrets file.json shows as my-json-secrets-file.json.
A text file is stored exactly as it is. A binary file, such as a .p12 or .jks, is stored as base64 text, and the dialog says so before you save. A file that is empty or too large is refused with the reason. See Files for the limits.
In the table, a file secret shows a file icon, its filename and its size in place of the dots, with a base64 badge for a binary file. Its menu has Download file, which saves the file you uploaded. A binary file has Copy as base64 and no Reveal, because there is nothing readable to show. Clicking its chip says so.
Edit value on a file secret opens on File. Switching to Text and typing a value makes it a plain secret again. The dialog warns you first.
File secrets can't be edited in the Editor view. It leaves them out and names them in a note above the editor. Saving it never changes or deletes them.
History and rollback
Each save creates a new version. Choose History in a row's menu, or See history in the update dialog, to list the versions of that secret, newest first. Each row shows the change (created, updated, imported, or rolled back from an earlier version), who made it, and when. The current version is marked current. Versions past the retention limit are marked expired: their value is no longer stored, so they cannot be revealed or restored.
To check an old value, use the eye button on its row. It asks for your password like any reveal, and hides the value again after thirty seconds.
Roll back saves the value of that version as a new version. The dialog asks you to confirm first and shows the version number the result gets. History is never changed, so you can roll back a rollback. If someone changed the secret while the dialog was open, Dopbase refuses the rollback, reloads the history, and asks you to check it and try again.
Apps get the restored value the next time they fetch secrets. Processes already started with dopbase run keep the old value until they restart.
Revealing a value
Click the dots in the Value column, or choose Reveal in the row menu. The value shows in place of the dots, in its own row. Above it are its length, a countdown starting at thirty seconds, and Copy. A value longer than its cell stays on one line and scrolls sideways. A value with several lines, such as JSON, shows eight of them and scrolls for the rest. A text file does the same, with Copy and Download above its lines. Click the countdown, or choose Hide, to hide the value early. When the countdown ends, the value hides itself. Switching environments or leaving the page hides it immediately too.
Copying the value does not extend the timer. The page keeps the revealed plaintext only in memory and removes it when reloaded.
Copy value puts the value on your clipboard without showing it. It counts as a reveal: it asks for your password when needed, and the audit log records it. Some browsers block copying after the password prompt; reveal the value and copy it from there instead.
Password re-confirmation
When the server sets a re-authentication interval, revealing, exporting, importing, and rolling back need a recent password confirmation. This includes import previews and saving changes from the Editor view. If your last confirmation is older than the interval, the server asks for your password first. After confirmation, the pending action continues. Cancelling the prompt leaves your draft available to try again.
The server checks the window again when you apply an import. If it expires after previewing, you must confirm your password again before saving. A successful preview creates an audit event without changing secrets or layout.
Editing a whole environment as .env
The Editor view is off until the server sets DOPBASE_SECRET_EDITOR=true (see optional features). While it's off, the Secrets page shows the table only.
Switch the view from Table to Editor to edit several values together. The editor loads every secret in the environment as .env text:
# Payment provider keys
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
DATABASE_URL=postgres://...The editor provides:
- Syntax highlighting with a line-number gutter, and malformed lines flagged both inline and in a list below the editor.
- Comments and blank lines are yours to keep. Dopbase remembers the layout (ordering and comments) separately from the values, so they survive reloads and deploys.
- A change summary before saving, grouped by added, updated, unchanged, and deleted keys. Dopbase stores the changes only after you accept the summary.
A value with line breaks, such as a certificate or formatted JSON, shows over several lines inside quotes. To add one, type the key and an opening quote, paste the value, then close the quote:
TLS_CERT="-----BEGIN CERTIFICATE-----
MIIB...
-----END CERTIFICATE-----"
FEATURE_FLAGS='{
"checkout": true
}'Single quotes keep the text exactly as it is, so use them for a value that has double quotes in it, like JSON. Inside double quotes, write \" for a double quote and \\ for a backslash. \n, \r and \t stand for a line break, a carriage return and a tab.
The editor content is wiped when you close it, switch environments, or leave the page. Closing the browser tab counts.
Secrets set through the editor behave exactly like secrets set one at a time. They are individual records, and the CLI sees them the same way.