Menu ▾ ▴

#36 feat: improve server defaults, run auth, and token workflows

closed
nobody
None
2026-09-20
2026-09-11
Anonymous
No

Originally created by: thomijasir

Summary

  • Infer a primary network IP for the public URL when Dopbase binds beyond loopback without an explicit URL. Print setup and HTTP safety guidance, and stop with an actionable error when no usable IP is available.
  • Keep dopbase run non-interactive. It now uses an argument token, DOPBASE_TOKEN, or a saved login, then exits with a clear error when authentication is missing or rejected.
  • Let Admin UI users intentionally save an empty secret value without changing CLI behavior. Turning the option off restores the value they were entering.
  • Use the same one-time token receipt for runner and AI agent tokens, with a working clipboard fallback, manual selection, and clearer placement of token details and actions.

Closes [#13]
Closes [#14]

Compatibility

No API or database migration is required.

A non-loopback bind without an explicit public URL now uses the detected primary IP over HTTP and prints a warning. Servers behind a proxy or NAT should set --public-url, DOPBASE_PUBLIC_URL, or public_url in server.toml. Startup fails with configuration guidance when Dopbase cannot detect a usable address.

dopbase run no longer opens a login prompt. Existing argument, environment, and saved credentials continue to work. Empty secret values are an additive Admin UI option, and CLI secret handling is unchanged.

The behavior changes are documented in /docs. CHANGELOG.md is unchanged because this pull request does not add a release entry.

Verification

  • cargo fmt --manifest-path app/Cargo.toml -- --check
  • cargo clippy --manifest-path app/Cargo.toml --all-targets -- -D warnings
  • cargo test --manifest-path app/Cargo.toml
  • bun run typecheck
  • bun run lint
  • bun run test:run
  • bun run build
  • codegraph sync
  • A live browser pass was not run because the browser-control runtime was unavailable. Component tests cover copy success and failure, manual token selection, acknowledgment, and empty secret values.

Checklist

  • [x] I kept this pull request focused on one problem.
  • [x] I added or updated tests for behavior changes, or explained why tests are not needed.
  • [x] I updated the documentation and CHANGELOG.md when public behavior changed, or explained why they are not needed.
  • [x] I updated relevan documentation inside /docs

Related

Tickets: #13
Tickets: #14

Discussion

  • Anonymous

    Anonymous - 2026-09-11

    Ticket changed by: dopbase

    • status: open --> closed
     

Log in to post a comment.