Skip to content

feat(dcm): add Dopbase self host secrets management - #229

Open
thomijasir wants to merge 1 commit into
ajnart:mainfrom
thomijasir:feat/dcm-dopbase-container
Open

thomijasir wants to merge 1 commit into
ajnart:mainfrom
thomijasir:feat/dcm-dopbase-container

Conversation

@thomijasir

@thomijasir thomijasir commented Nov 24, 2026 •

Copy link
Copy Markdown

Adds Dopbase to Docker Compose Maker as a DCM-only Container in dcm/src/tools/other.ts, under Security. Dopbase is a self-hosted secrets manager (Rust, Apache-2.0) that stores secrets by project and environment and passes them to an app when it starts. The Catalog, dcm/src/tools and ALIASES had no entry for it.

Sources

Choices

  • The image is pinned to 0.2.1 instead of latest. Upstream asks for a pinned tag because 0.2.0 refuses to start on a 0.1.x data directory, so pulling a moving tag can break a working install.
  • Data goes to ${DATA_PATH}/dopbase:/data instead of the upstream named volume, since no Container declares top-level volumes:. The image runs as UID 10001 and does not chown /data, so a directory Docker creates as root stops the first start. The description tells people to make the folder writable first. I left out user: "${PUID}:${PGID}" because upstream doesn't document running as another UID and I couldn't test it without Docker.
  • DOPBASE_ROOT_EMAIL is left out. Without it the first start prints a one-time setup link, and the compose doesn't carry a placeholder email. DOPBASE_PUBLIC_URL defaults to http://localhost:8840.
  • The healthcheck, init, stop_grace_period, cap_drop and no-new-privileges match the upstream compose example.
  • No icon, since dashboard-icons has none for Dopbase (404), and no stars field.

Gate

bun test dcm/tests/validate-all-containers.test.ts dcm/tests/templates.test.ts dcm/tests/validate-networks.test.ts
13 pass, 0 fail

SELF_HOST_SITE_VERSION=0.0.0 bunx turbo run build test lint check --env-mode=loose
Tasks: 9 successful, 9 total

On macOS, testkit's "Action runs installed SDK" test fails when TMPDIR goes through the /var to /private/var symlink, and it fails the same way on main. I ran turbo with TMPDIR set to the resolved path and --env-mode=loose so turbo passes it through.

Not run locally: the Go gate and the go run ./tools/sitegen drift check (no Go toolchain on this machine; the change touches no Go code or sitegen input), and validate-compose.test.ts, which needs Docker and runs in CI.

There is no issue for this. It comes from the Suggest container prompt, so the body has no Closes line.

Summary by CodeRabbit

  • New Features
    • Added Dopbase as an available security tool, with a web interface accessible at port 8840 and persistent data storage.
    • Setup instructions are available in the container logs. The data directory must be writable by the tool’s required user.

Dopbase is a self-hosted secrets manager with an official image at
dopbase/dopbase. The Container pins 0.2.1, publishes port 8840, keeps
the SQLite database, configuration and master key in DATA_PATH, and
copies the upstream healthcheck, init and hardening options.

The image runs as UID 10001 and does not chown /data, so the
description tells people to make the data folder writable first.
@thomijasir
thomijasir requested a review from ajnart as a code owner November 24, 2026 10:04
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The exported tool list now includes Dopbase, with container settings, setup requirements, and a persistent data mount.

Changes: Dopbase tool configuration

Layer / File(s) Summary
Add Dopbase tool configuration
dcm/src/tools/other.ts
Adds Dopbase metadata and Docker Compose settings, including port 8840, the configurable public URL, persistent storage, health check, and security options. The description documents the UID 10001 write-permission requirement and the one-time setup link in the container log.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Merge Risk: Low · up to 09d0c

This adds Dopbase to the container list with its data mount, health check and hardening settings. Its default port mapping is reachable on every host network interface, which matters for a secrets manager. That could allow direct HTTP access that bypasses a reverse proxy. The repository's convention allows this form, so the maintainer should decide whether to default to loopback. This is a low merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(dcm): add Dopbase self host secrets management" names the main change: adding the Dopbase container to Docker Compose Maker. The raw summary confirms a new Dopbase entry in dcm/src/too…
Full details: Title check

Explanation

The title "feat(dcm): add Dopbase self host secrets management" names the main change: adding the Dopbase container to Docker Compose Maker. The raw summary confirms a new Dopbase entry in dcm/src/tools/other.ts with image, port, data mount, healthcheck, and hardening settings. The title is specific and concise. It says "secrets management" rather than "container," which fits the PR description of Dopbase as a self-hosted secrets manager. No title-only issues were found.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Biome (2.6.5)

dcm/src/tools/other.ts

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

dcm/src/tools/other.ts-143-143: 1

143-143: Major · Security & Privacy · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Keep the default HTTP listener on loopback.

With Docker's default binding configuration, "8840:8840" exposes the secrets manager on all host interfaces. DOPBASE_PUBLIC_URL=http://localhost:8840 does not restrict network access. This also leaves a direct HTTP route around an HTTPS reverse proxy. Docker documents this binding behavior; Dopbase's official example uses "127.0.0.1:8840:8840" instead. Preserve that binding by default and require an explicit change for remote access. Local browser access and a host-based reverse proxy will still work. (docs.docker.com)

Based on learnings, this concern was checked against upstream's intended localhost binding before flagging the published port.

Source: Learnings

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 071514ac-e8a6-4913-9f4e-3ab8d861e505
Commits

Reviewing files that changed from the base of the PR and between c8371ba and 09d0c62.

Files selected for processing: 1

  • dcm/src/tools/other.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@thomijasir thomijasir changed the title feat(dcm): add Dopbase container feat(dcm): add Dopbase self host secrets management Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant