github dophq/dopbase 0.2.1
Dopbase 0.2.1

one hour ago

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 .pem or .jks. Upload one in Add secret
    or with dopbase secret set --file, and get it back with Download file
    or secret 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
    in dopbase run ops/prod --mount SSH_KEY -- ssh -i {SSH_KEY} host.
  • API: a file secret returns file (name, encoding, size), and PUT takes
    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 like v2 2m with the full date on hover.
  • The .env view of the Secrets tab is now called Editor.
  • The Editor view and dopbase env edit leave file secrets out and keep
    them when you save.
  • The Editor view and dopbase env edit show 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, r or
    t, such as a Google service account key or C:\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 .env file 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
    answering 503 until 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.
  • dopbase says when the server is down or failing. Before, it said the
    credential was invalid or expired, or asked for a password.
  • dopbase export --stdout piped into a command that stops reading early,
    such as head, crashed with exit code 101.
  • dopbase access showed 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 429 with a Retry-After header.
  • GET /api/v1/environments/{id}/secrets/runtime asks a browser session to
    confirm its password, like reveal and export. dopbase run is unchanged.
  • Updated utoipa-swagger-ui to 10 and utoipa to 6, which drops a
    build-only zip 3.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 as app#old could
    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

Don't miss a new dopbase release

NewReleases is sending notifications on new releases.