Skip to content

Add OpenBao secrets, GitHub project creation and project dashboard - #5

Draft
madsholme wants to merge 51 commits into
steenfeldt:mainfrom
madsholme:codex/openbao-phase0
Draft

madsholme wants to merge 51 commits into
steenfeldt:mainfrom
madsholme:codex/openbao-phase0

Conversation

@madsholme

@madsholme madsholme commented Nov 9, 2026 •

Copy link
Copy Markdown

Purpose and review scope

Agents and external apps can save generated credentials once and retrieve them through the CLI, a project's Secrets tab, or a scoped API, with project → branch → worktree inheritance.

This is a draft for upstream scope and approach discussion. It includes the fork dependencies already used by the OpenBao integration: 51 commits across 377 files, rather than an isolated OpenBao patch. These include the Vue 3/SwiftDesign dashboard, project/worktree views, document editing/media, container controls, QEMU/libvirt inventory and lifecycle tools, project creation and Git controls, and LAN diagnostics. The frontend/build dependencies differ from upstream's current vanilla-JavaScript convention. Maintainer feedback on scope and sequencing is welcome before treating this as merge-ready.

OpenBao behavior

  • Guided first-run setup, manual unseal, restricted backend provisioning and native administrator login.
  • Persistent owner-only bind-directory storage, private Traefik HTTPS routing for LAN/Tailscale access, and vault-backed Cloudflare/integration credentials.
  • Single-value and paired username/password secrets, inheritance and overrides, version history, recoverable deletion and restore, and explicit purge.
  • Configurable retention and cleanup, including never-expire and automatic cleanup off. Existing tools retain Git, branch and worktree lifecycle ownership.
  • Encrypted OpenBao and ACME backups, pinned upgrades and recovery workflows. Traefik keeps ACME state in its protected local storage.
  • CLI support, project dashboard controls, and shared Codex/Claude Code skill assets.
  • Versioned external secrets API with hashed, expiring, revocable context-bound tokens and explicit read/write/cleanup permissions; tokens do not grant host administration.
  • Operational, API, recovery and architectural documentation in docs/secrets.md, docs/secrets-api.md and the implementation plans/ADRs.

The intended security model is a trusted single-user development host, preserving existing T3, Codex and Claude Code workflows.

GitHub project creation and preview access

  • New projects can optionally create a github.com repository with an explicit owner and repository name, private by default, and an opt-in initial push. Host integration credentials remain ephemeral; existing remote repositories are never reused or deleted. Token setup and required permissions are documented.
  • Mobile previews use stacked rows; desktop health summaries and long metadata wrap to keep Actions visible. Clicking a preview name opens the same information as its disclosure arrow, while the external-open control still opens the running app.
  • Actions → Secrets opens a fixed-checkout overlay with effective inherited secrets, copy/reveal controls and Refresh. Scope selection, registration, adding secrets and management actions remain on the normal Secrets page. Missing or ambiguous checkout associations disable the shortcut; closing the overlay clears transient values and ignores late reveal responses.
  • Updated dashboard documentation, agent credential guidance and committed frontend assets.

Validation completed

  • Go suite and vet passed; formatting/diff checks clean. The Go suite also passed on the locally merged main checkout.
  • Latest changes: production frontend build, 30 frontend tests, Go suite and diff checks passed. Eleven focused browser regressions passed for desktop/mobile previews, copying, fixed-checkout overlay requests, transient cleanup and the unchanged full Secrets page. The full 30-test browser suite passed before the overlay refinements.
  • Deployed revision 9252aa1 on the development host; verified the running binary and served frontend assets, dashboard/API health and ready vault state while preserving running containers, T3 and host configuration.
  • Disposable local Docker tests exercised real OpenBao provisioning/root retirement, bind persistence, restart/manual unseal, snapshot recovery, scoped secrets, and external HTTPS token use/revocation.
  • Encrypted backup/ACME recovery and OpenBao 2.7.1 → 2.7.2 upgrade/recovery tests passed.
  • Fresh guided setup used a real terminal and OpenBao, including interrupted initialization resume (three shares, threshold two), ready reruns, and sealed restart. Tailscale, DNS/Cloudflare, TLS/proxy and systemd boundaries used isolated fixtures.

Remaining live-environment validation

  • Complete fresh-host OS/bootstrap and real systemd/network setup.
  • Second-device LAN and remote Tailscale access.
  • Real ACME issuance/renewal using vault-backed Cloudflare delivery.
  • Fresh paired-login agent workflow and authenticated Claude Code validation (deferred).
  • Configuration and recovery using a real off-host encrypted backup destination.

This PR does not automatically deploy to upstream hosts. The feature branch is retained for upstream review.

Mads Sigvert added 30 commits November 3, 2026 22:28
@madsholme madsholme changed the title Add OpenBao development secrets and supporting project dashboard Add OpenBao secrets, GitHub project creation and project dashboard Nov 10, 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