feat(collab): default to dev mode + auto-seed demo users for lab start #74

Merged
sameh-farouk merged 1 commit from collab_dev_default into development 2026-06-03 19:08:17 +00:00
Member

Make lab service hero_collab --start bring collab up in zero-config local-dev mode, matching the other Hero apps (router, no proxy):

  • service.toml (server + admin): COLLAB_AUTH_MODE default proxydev. lab forwards declared env defaults into the hero_proc action env, so a bare lab service hero_collab --start now starts in dev. Production MUST override to proxy (operator env / hero_proc template); the compiled binary default stays proxy, so any path ignoring service.toml is fail-safe.
  • server: auto-seed demo users when auth_mode == Dev (not only via the --seed-dev-users flag, which lab can't pass). Idempotent (no-op on non-empty DB), dev-gated (never in proxy mode), safe across restarts.

Verified: lab service hero_collab --start (no override) → both binaries COLLAB_AUTH_MODE=dev, users Alice/Bob/Carol/Dave auto-seeded, browser works via hero_router :9988 with no auth errors.

Will cherry-pick to main after merge (per the main = stable-snapshot policy; service/lab default-start changes land on development first).

Make `lab service hero_collab --start` bring collab up in zero-config local-dev mode, matching the other Hero apps (router, no proxy): - **service.toml (server + admin): COLLAB_AUTH_MODE default `proxy` → `dev`.** lab forwards declared [[env]] defaults into the hero_proc action env, so a bare `lab service hero_collab --start` now starts in dev. Production MUST override to `proxy` (operator env / hero_proc template); the compiled binary default stays `proxy`, so any path ignoring service.toml is fail-safe. - **server: auto-seed demo users when auth_mode == Dev** (not only via the `--seed-dev-users` flag, which lab can't pass). Idempotent (no-op on non-empty DB), dev-gated (never in proxy mode), safe across restarts. Verified: `lab service hero_collab --start` (no override) → both binaries `COLLAB_AUTH_MODE=dev`, users Alice/Bob/Carol/Dave auto-seeded, browser works via hero_router :9988 with no auth errors. Will cherry-pick to main after merge (per the main = stable-snapshot policy; service/lab default-start changes land on development first).
Make `lab service hero_collab --start` bring collab up in the zero-config
local-dev mode — matching how the other Hero apps run locally behind
hero_router (no hero_proxy needed):

- service.toml (server + admin): COLLAB_AUTH_MODE default `proxy` → `dev`.
  lab forwards declared [[env]] defaults into the hero_proc action env, so
  a bare `lab service hero_collab --start` now starts in dev mode. Operators
  / hero_proc templates MUST override to `proxy` in production; the compiled
  binary default stays `proxy`, so any path that ignores service.toml is
  fail-safe.
- server: auto-seed demo users (Alice/Bob/Carol/Dave + workspace/channel)
  whenever auth_mode == Dev, not only on the explicit --seed-dev-users flag
  (which lab cannot pass). The seed is idempotent (no-op on a non-empty DB)
  and dev-gated, so it never runs in proxy mode and is safe across restarts.

Verified: `lab service hero_collab --start` (no env override) → both
binaries COLLAB_AUTH_MODE=dev, users auto-seeded, browser works via
hero_router :9988 with no auth errors.
sameh-farouk merged commit 8e9a27f1ac into development 2026-06-03 19:08:17 +00:00
sameh-farouk deleted branch collab_dev_default 2026-06-03 19:08:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_collab!74
No description provided.