Summary
Dopbase 0.2.2 adds dopbase run --command for shell
strings, and secret references such as ${DB_PASS}, which stay off until
DOPBASE_SECRET_REFERENCES=true. The Secrets table can copy key names, and
token names are optional. The server no longer runs in the background and the
Editor view is off by default, both listed under Note. The database
migrates on first start and 0.2.1 won't open it afterwards, so take a backup
before you upgrade.
Added
dopbase run --command '<command>'(or-c) runs one string in your shell
with the secrets, so$API_TOKEN,&&and pipes work, as in
dopbase run -c 'npm run migrate && npm start'. Use single quotes. With no
terminal, as in CI, systemd or Kubernetes, a stop signal reaches every step
of the string, not only the shell. See
Run a shell command.- The Secrets table has a checkbox on each row, and the header box picks
every key the filter shows. Copy names copies just the picked names, one
per line, ready to paste into a chat with an AI. - A copy icon next to each key copies its name.
- A secret's value can use another secret from the same environment: write
${DB_PASS}anddopbase runfills it in, so a password changed once
reaches every URL built from it.${PORT:-5432}falls back to 5432 when
PORTis missing or empty, and a name that matches no secret stays as text.
It is off until the server starts withDOPBASE_SECRET_REFERENCES=true. See
Secret references. dopbase exportwrites the values apps get, and--rawwrites them as
stored, with${KEY}left in place. Export in the web app has a
Keep references box for the same.- With references on, typing
${in a value or in the.enveditor lists the
keys of the environment, references are coloured, and a name that matches no
secret gets a note with the closest key. A revealed value that has references
gets a Show references switch; turn it on to see the value apps get. - Token names are optional. Leave the name empty in the web app, or leave out
--namein the CLI, and Dopbase picks one such astoken-7kq2mx. - Add secret and Edit value have a Trim whitespace box, on by
default. It removes spaces and line breaks at the start and end of a typed
value when you save and leaves the spaces inside it alone. Untick it to keep
them. DOPBASE_SECRET_EDITOR(orsecret_editorinserver.toml) turns on the
Editor view of an environment's secrets. While it's off, the page shows
the table only, with no Table and Editor switch and no Paste .env.
See optional features.
Improvement
- Hovering a hidden value says a click reveals it for 30 seconds and logs it.
The countdown on a revealed value now reads Hide in 28s, and clicking it
hides the value. dopbase runskips a stored secret namedZDOTDIRunless--onlynames
it, because zsh loads code from that folder.- With no terminal,
dopbase run --mountsends a stop signal to the command's
whole process group, so a step that is still running doesn't outlive its
mounted files. - A page that takes a moment to load shows a thin bar along the top, and the
sidebar marks the item you clicked right away. Pages also download in the
background, so most clicks open at once. - When a page can't be downloaded, Dopbase reloads once, then says so with
Try again instead of doing nothing. - Sign in keeps spinning until the next page is on screen.
- A long key name in the Secrets table ends in "…". Click it to see the
whole name, the way you click the dots to see a value. Only one opens at a
time, so revealing a value folds the name back. - The sign-in, setup and CLI approval pages have a new layout with a link to
the documentation. Each one ends with where the server runs and its version,
and Dopbase there links to dopbase.com. - The CLI approval code boxes fill the width of the form.
- Token lists leave out tokens revoked or expired more than 30 days ago, so
they stay quick however often tokens rotate. The audit log keeps them. - Hints, warnings, errors and extra fields that appear while you type or
click now slide open and shut, so the content below moves smoothly. This
includes the password strength meter on setup, the Secrets selection
bar and revealed values, the.enveditor's problem list, token expiry
fields, role settings, and the errors under fields and forms. With reduced
motion turned on in your system, they appear at once. - A session records its last use at most once a minute, as tokens do, so
page loads no longer queue for the database. An idle session can end up to
a minute early. - Audit retention removes at most 5,000 records per pass. A larger backlog is
archived as several files, each with its ownaudit.prunedrecord. - Writing a large backup and opening the Status page no longer hold up
other requests.
Fixed
- A revoked or expired token no longer keeps its name, so a new token can use
it. An AI agent's replacement token can also take the old token's name. - The sign-in page no longer jumps when the form appears. The placeholder
shown while it loads now has the form's shape, and so does the recovery
key's placeholder on setup. - A factory reset that couldn't remove its marker file answered
200, and the
next restart asked for setup again. It fails, and the server answers503
untildopbase server setupfinishes the reset. - Renaming a custom role, or editing its description, removed capabilities
this version doesn't know. - Two deletes of the same custom role at once both answered
200and
recordedrole.deletedtwice. The second answers404. - Restore during setup can be retried with the same file after a failed try,
and a backup of the same name already there no longer blocks it. - Restore during setup records its audit event together with the restore.
Before, a failed record left the data restored and setup still open. - Deleting a backup keeps the file when the deletion can't be recorded.
- A secret with a damaged stored nonce answers
500. Before, the request
was dropped. --helpfordopbase import,exportandsecret getmatches what they do:
an import updates existing keys, and a token that reads values isn't prompted.- Shutdown waits for open requests for
shutdown_grace_secondsat most, as the
setting says. Before, one stuck request held the server until it was killed. - A data directory with
?,#or%in its path opened the wrong database
file. dopbase audit export --outputwrites records as they arrive. Before, it
held the whole export in memory and refused an existing file only at the end.dopbase cache listandcache cleansay why a cache could not be read.dopbase env editno longer blames an old server for every reply it can't
read.- The
.enveditor marked a quoted value with a comment after it, as in
A="x" # noteorA='a' # don't, or with spaces after it, as an error,
though it saves fine. - A wrong password in the Confirm your password dialog closed the dialog
and dropped what you were doing. It now stays open and says the password is
incorrect. When the server can't be reached or is rate limiting, it says
that instead of calling the password wrong, and one failed check no longer
ends the wait for single sign-on. - A link with
?sso_error=toString, or an old project link ending in
/constructor, broke the page. Old environment links also keep the#part
of the address now. - Edit value refuses an empty value unless Use empty value is ticked,
as Add secret does, and the Key hint no longer says-is allowed. - Revoking a token on an AI agent's own page asks first, as the list does. On
a phone, a filter that matches no agent says so instead of showing nothing. - A role's real token level shows on its page, and Write can be picked.
Saving a role keeps a token lifetime set outside the editor, such as 7 days,
and one day reads "1 day". - The Users list stays when a refresh fails, and "Could not reload" on a
person's or a group's page clears once Try again works. - On the Audit page, a chain check that fails replaces the earlier
"Chain verified" line, and events newer than the last check no longer read
as verified. - Import shows why Validate failed, and asks for a new preview when
the secrets changed. A file that couldn't open the review no longer stays
waiting for the next import. The project switcher says when the project list failed
to load and offers Try again. - The environment and project name errors state the real rule: lowercase
letters, numbers and single hyphens. - Before deleting a project or environment, a count that failed to load is
left out instead of reading as 0. - Give access can pick the same person again after their role failed to
load. - Setup accepts a backup named
BACKUP.DOP, and asks for the setup token
again when the server refuses the one from the link. - The upgrade summary after a restore says "1 row" and "1 value", and a file
just over the size limit no longer reads as the limit itself. - Exporting without files, and paging through a secret's versions, work in
browsers older than Safari 17. - On the Audit page, when the next page of events fails to load, the
message now says so and the events already shown stay. - Give access named two or more protected environments and then said to
give access to them "on its own". It now says "each one on its own".
Security
- Changing secrets, environments or projects, and creating a runner token,
check the caller's access in the same transaction as the write. Before, a
grant removed at that moment still allowed one write. - The first sign-in for an unknown email is hashed in the same worker pool as
every other sign-in. - Passcode sign-in, single sign-on callbacks, and the caps on sign-ins and CLI
logins in progress count an IPv6 client per /64, as password sign-in does.
Note
- Breaking: 0.2.2 migrates the database when it starts, and 0.2.1 won't
start on it afterwards. Take a backup before you upgrade. - Breaking: Dopbase no longer runs the server in the background.
server start --background,server stop,server restartand
server logsprint what to use instead and exit 1. Rundopbase server start
under Docker or systemd. See
Removed commands. - Breaking: Stop a background server with
dopbase server stopbefore you
upgrade. If you already upgraded,dopbase server statusshows its PID. - Breaking:
server status --jsonhas onlystatus,modeand
data_dir.client connectno longer stops a local server, and its JSON has
nobackground_server_stopped. - Breaking: The Editor view is off by default. If your team edits
secrets as a.envfile in the web app, setDOPBASE_SECRET_EDITOR=true
before upgrading.
Full Changelog: 0.2.1...0.2.2