Commit Graph
32 Commits
Author SHA1 Message Date
c4ch3c4d3 c3954d1533 Break enterprise policy out into openchamber-policy.json
- New --enterprise <policy.json> flag installs a policy file from the
  cloned repo (openchamber-policy.json) instead of the built-in defaults
- --relay-url overrides the source file's relayUrl key; matching relay
  installs the file content verbatim
- Invalid or missing policy source fails closed with a clear error
- Arg parsing extracted into a testable parse_args function
2026-10-06 10:49:54 -06:00
c4ch3c4d3 778341b7a5 Fix review findings: fail-closed merge, die ordering, sudo-path idempotency
- merge_policies: interpreter failure now aborts with the temp file
  removed instead of moving an empty tmp into place (errexit is
  suppressed when the function is called in a || context, so the
  status is checked explicitly); config stays untouched on failure
- move info/ok/warn/die above arg parsing so --allow-provider without
  a value prints the intended error, not 'die: command not found'
- install_enterprise_policy: compare content before writing on the
  sudo path (skip when already enforced, warn on drift), repair the
  no-root-with-existing-file case instead of pinning env vars, chmod
  644 the policy file in both paths
- tests: in-place merge, fail-closed on bad JSON, clean arg error
2026-10-06 10:45:56 -06:00
c4ch3c4d3 c926361ccc Add enterprise mode + provider policy enforcement to bootstrap script
- Install /etc/openchamber/policy.json (enterpriseMode, organization,
  pinned relayUrl); sudo with OPENCHAMBER_ENTERPRISE_MODE=1 env fallback;
  --no-enterprise opt-out
- Inject OpenCode provider policies into the synced config: deny all
  providers, allow those derived from the config's own providers block,
  BASELINE_ALLOWED_PROVIDERS (openai via codex-auth plugin), and
  repeatable --allow-provider extras (e.g. constellation)
- Extend verification: policy file state, pinned relay, effective
  provider allow-list
- Restructure into sourceable functions with a main guard so the policy
  and merge logic is testable
2026-10-06 10:43:46 -06:00
c4ch3c4d3 b0771234da Replace opencode.json with V2-shaped config aligned to host 2026-10-06 10:32:33 -06:00
c4ch3c4d3 09560acaec Revert "Add portable OpenCode config (zuccaro provider, V2 shape, no MCP)"
This reverts commit 995bec5179.
2026-10-06 10:32:24 -06:00
c4ch3c4d3 995bec5179 Add portable OpenCode config (zuccaro provider, V2 shape, no MCP) 2026-10-06 10:31:19 -06:00
bzuccaro 966fe485be Update opencode.json 2026-10-03 15:54:03 -06:00
c4ch3c4d3 e74c20c709 openchamber bootstrap: always update @openchamber/web to latest 2026-10-02 10:08:44 -06:00
bzuccaro 3f3f2f08e8 Update models.json 2026-09-24 08:32:25 -06:00
bzuccaro 4c9116fd1d Update models.json 2026-09-23 17:04:53 -06:00
bzuccaro 7200907840 Update models.json 2026-09-23 16:05:58 -06:00
bzuccaro 1ae7c67d52 Update models.json 2026-09-23 16:02:29 -06:00
bzuccaro fee8efc888 Update opencode.json 2026-09-21 08:13:18 -06:00
bzuccaro 60df7add86 Update models.json 2026-09-18 09:12:18 -06:00
bzuccaro 0e98b02095 Update opencode.json 2026-09-17 14:49:08 -06:00
bzuccaro 76ed42b5c0 Update opencode.json 2026-09-16 21:43:30 -06:00
bzuccaro 5bfa217164 Update opencode.json 2026-09-16 18:11:23 -06:00
bzuccaro 6c38110917 Update models.json 2026-09-16 16:53:10 -06:00
bzuccaro 3e11539b9a Update models.json 2026-09-16 16:44:35 -06:00
bzuccaro 6db2bef0a2 Update models.json 2026-09-16 16:40:40 -06:00
bzuccaro 048ce73c3f Update opencode.json 2026-09-16 15:00:21 -06:00
bzuccaro 80852af09b Update opencode.json 2026-09-15 16:43:16 -06:00
bzuccaro a334f955ec Add openchamber-boostrap.sh 2026-09-15 15:53:42 -06:00
bzuccaro 8493008075 Update models.json 2026-09-08 10:53:41 -06:00
bzuccaro 503e5075c0 Update opencode.json 2026-09-05 22:24:32 -06:00
bzuccaro 64937f249e Update opencode.json 2026-09-05 22:23:00 -06:00
bzuccaro 582db6f6a8 Update opencode.json 2026-09-05 21:59:51 -06:00
bzuccaro 74ab03a048 Update opencode.json 2026-09-04 08:11:26 -06:00
bzuccaro 35e1a1e3bf Add models.json 2026-09-03 15:18:38 -06:00
bzuccaro 97e15f33fb Add Blackwell-Auto and set as default model 2026-08-28 20:26:55 -06:00
c4ch3c4d3 3f32cf31d1 Add GLM-5.3-Flash and set as default model 2026-08-28 09:07:33 -06:00
bzuccaro 25ed1bf53e v1 2026-08-23 19:01:48 -06:00