Repository navigation
Summary
Dopbase 0.2.1 can store a file such as a .pem key as a
secret, and dopbase run --mount hands it to a command as a temporary file.
Wrong passwords count per email and client address, and five of them pause
sign-in for 5 minutes. This release also fixes backups, sign-in and several CLI errors.
The database migrates on first start and 0.2.0 won't open it afterwards, so
take a backup before you upgrade.
Added
- Secrets can hold files such as
.pemor.jks. Upload one in Add secret
or withdopbase secret set --file, and get it back with Download file
orsecret get --reveal --output. Names are saved in lower case with-
for spaces. See Files. dopbase run --mount <KEY>gives a command a secret as a temporary file, as
indopbase run ops/prod --mount SSH_KEY -- ssh -i {SSH_KEY} host.- API: a file secret returns
file(name, encoding, size), andPUTtakes
one. See File secrets. - The 0.1 docs stay online at
docs.dopbase.com/v0.1.
Improvement
- The Secrets table shows a revealed value inside its own row, and
Updated reads likev2 2mwith the full date on hover. - The .env view of the Secrets tab is now called Editor.
- The Editor view and
dopbase env editleave file secrets out and keep
them when you save. - The Editor view and
dopbase env editshow a value with line breaks
over several lines inside quotes, and JSON in single quotes. Imports read
both. - Five wrong tries pause sign-in for 5 minutes, down from 15. Password
confirmation, setup tokens and the other rate limits follow.
Fixed
- Set a password kept loading when the sign-in was over ten minutes old.
It asks you to confirm first. - Change password and Set a password say when the session ended or
there were too many tries. An ended session read as a wrong password. - Switching environment while the Editor view was open left the
Secrets tab blank. It goes back to Table. - The Editor view changed a value holding a backslash before
n,ror
t, such as a Google service account key orC:\new, when you saved. - The Editor view and the import dialog report a quote that is never
closed. Before, the quote was saved as part of the value. - Dropping a file that isn't a
.envfile on an empty environment says so.
Before, nothing was shown. - Creating a backup of a database over 250 MB fails with
BACKUP_DATABASE_TOO_LARGE. Before, the backup was written and could never
be restored. - A factory reset that couldn't write to the data directory left every route
answering503until a restart. It now fails once and the server keeps
working. - The access report and passcode sign-in could time out on a busy server.
Each held a database connection while it waited for a second one. - Restoring a damaged 0.1.x backup says the upgrade failed. Before, the
request crashed. dopbasesays when the server is down or failing. Before, it said the
credential was invalid or expired, or asked for a password.dopbase export --stdoutpiped into a command that stops reading early,
such ashead, crashed with exit code 101.dopbase accessshowed an audit token as reaching all projects. It reads
only the audit log.
Security
- Wrong passwords count per email and client address, so knowing an email no
longer locks its owner out. All addresses share 50 per email. See
Failed attempt limits. - A paused sign-in answers
429with aRetry-Afterheader. GET /api/v1/environments/{id}/secrets/runtimeasks a browser session to
confirm its password, like reveal and export.dopbase runis unchanged.- Updated
utoipa-swagger-uito 10 andutoipato 6, which drops a
build-onlyzip3.0.0 with three known CVEs. - A backup upload checks the caller's role before it reads the file. Before,
any signed-in account could make the server hold up to 250 MB per request. - Backup routes other than upload take at most 3 MB, like the rest of the
API. - The CLI encodes the names and ids it puts in a request path, and refuses a
path the server would read differently. A name such asapp#oldcould
reach another project.
Note
- Breaking: 0.2.1 migrates the database when it starts, and 0.2.0 won't
start on it afterwards. Take a backup before you upgrade.
Full Changelog: 0.2.0...0.2.1