Commit Graph

25 Commits

Author SHA1 Message Date
6eb4b59d97 Fix EAI_AGAIN: work around Docker's internal-network DNS bug with a static IP
- egress-proxy gets a fixed IP (172.28.5.10) on a new 172.28.5.0/24
  subnet for the 'egress' network.
- sde-meeting-toolkit gets a static extra_hosts entry for
  'egress-proxy' instead of relying on Docker's embedded DNS, which
  breaks for internal-network names on a container that's also on a
  normal network (confirmed via a real smoke test run - EAI_AGAIN).
- Update CHANGELOG with the root cause and the subnet-collision caveat.
2026-09-29 18:52:28 -07:00
dc1f6b81e9 Fix egress network internet leak, tinyproxy group config, surface real fetch errors
- docker-compose.yml: mark 'egress' network internal: true. Every
  Docker bridge network gets outbound NAT to the internet by default,
  not just 'default' - missing this meant sde-meeting-toolkit still
  had a direct route out despite being off 'default'. Confirmed via a
  real smoke test run (Check 2 failed before this fix).
- egress-proxy/tinyproxy.conf: 'Group nogroup' doesn't exist on
  Alpine, only 'nobody'. Fixed to 'Group nobody' for both User and
  Group.
- server.js: surface err.cause alongside err.message when the
  Anthropic call fails. undici wraps the real reason in a generic
  'fetch failed' TypeError; without this the actual cause was
  invisible in both the API response and the logs.
2026-09-29 18:46:19 -07:00
77203955a5 Restrict outbound network to api.anthropic.com only
- New egress-proxy/ container (tinyproxy) that only allows CONNECT to
  api.anthropic.com, refuses everything else.
- docker-compose.yml: sde-meeting-toolkit is no longer on 'default' at
  all. Its only networks are 'proxy' (NPM, inbound) and a new private
  'egress' network shared only with egress-proxy. egress-proxy is the
  only container with a real internet route.
- server.js: route the one outbound Anthropic call through
  EGRESS_PROXY_URL when set, using undici's own fetch + ProxyAgent
  together (mixing them with Node's global fetch throws a version
  mismatch error - caught this locally before it hit a real deploy).
- Add undici as a real dependency (package.json, package-lock.json),
  npm ci step in Dockerfile.
- Add smoke-test-egress.sh + Step 9b in DOCKER_TESTING.md to verify
  this whole chain with real Docker.
- Update CHANGELOG.
2026-09-29 18:16:35 -07:00
d6e83dcdf5 Document non-root container, shared login, and data folder permission fix
- PORTAINER_DEPLOY.md: add the chown step needed after the container
  switched to a non-root user, and note EACCES as the symptom if skipped.
- Update CHANGELOG for the shared login, non-root Dockerfile, and
  cap_drop/no-new-privileges hardening.
2026-09-29 18:03:39 -07:00
0f53a159f0 Fix 502 on AI draft button; restyle landing page
- docker-compose.yml: keep the container on both 'proxy' and 'default'
  networks. 'proxy' alone has no internet route, which broke the
  outbound call to api.anthropic.com once NPM routing was added.
- server.js: replace the plain landing page with one matching both
  tools' existing design (dark header, IBM Plex Sans, card layout).
- Update CHANGELOG.
2026-09-29 17:49:15 -07:00
2e8d699a36 Join the proxy network for Nginx Proxy Manager access
- docker-compose.yml now attaches the toolkit's container to the
  external 'proxy' Docker network, the same one NPM already uses to
  reach Work Package Suite's internal nginx container by name
  (confirmed via NPM's generated proxy_host/11.conf).
- Document the exact NPM Proxy Host setup for MVP.controls.dev in
  PORTAINER_DEPLOY.md.
- Update CHANGELOG.
2026-09-23 16:07:27 -07:00
6baf908cf9 Connect the two tools: cross-nav links and Send to Scope Lock handoff
- Add a header link on each tool pointing to the other.
- Add a Send to Scope Lock button on Workshop clusters that carry a
  candidate solution tag. Writes the item to a shared localStorage
  queue (sde_scope_handoff_v1).
- Scope Lock drains that queue on load and adds each item to the
  Scope Boundary Board as unsorted, deduping by a deterministic id so
  a repeat send never creates a duplicate.
- No backend needed: both tools already share the same browser origin.
- Verified with a jsdom test covering send, drain, reload, and
  re-send-after-reset.
- Update README and CHANGELOG.
2026-09-04 14:44:16 -07:00
50424acad1 Fix Portainer deploy: use variable substitution instead of env_file 2026-09-04 13:30:21 -07:00
a0eec98839 Rename default branch to main; update docs 2026-09-04 13:18:17 -07:00
26419cb94c Add Portainer deployment guide; update CHANGELOG 2026-09-04 13:11:38 -07:00
47855c0332 Update CHANGELOG 2026-08-24 16:45:18 -07:00
0854bbc3c5 Enlarge breadcrumb working area, rename delete X to Delete 2026-08-24 16:45:06 -07:00
f4dc01916e Add CHANGELOG.md documenting all changes so far 2026-08-24 16:37:44 -07:00
88f2bf3782 Replace native confirm() with a branded modal on every delete action, both tools 2026-08-24 16:32:44 -07:00
18da00addf Fix breadcrumb nav: was inheriting the top tab bar's nav{display:flex} rule 2026-08-24 16:20:41 -07:00
f68b897562 Fix page width cap and breadcrumb nav horizontal scroll 2026-08-24 16:13:30 -07:00
3df15b3520 Redesign Breadcrumbs panel: list + detail split view (option 3) 2026-08-24 16:09:08 -07:00
e30ef72769 Add roadmap for unifying the two tools onto a shared backend and DB 2026-08-21 13:35:48 -07:00
fac6e7f356 Turn per-user token quota off by default; keep code for later 2026-08-21 12:51:29 -07:00
f1200b7d79 Add per-user daily token quota with persistent usage tracking 2026-08-21 12:25:57 -07:00
2c3dc66878 Add MOCK_AI mode to test the AI draft button with no API key 2026-08-21 11:40:28 -07:00
efa07927f2 Add Docker test environment doc 2026-08-20 15:09:51 -07:00
e77cd64d88 Add login gate, rate limiting, and container deploy files for company-wide use 2026-08-20 15:06:37 -07:00
e5c01003f8 Add local proxy server for AI draft button; point button at /api/claude 2026-08-20 14:49:26 -07:00
ee8f869905 Initial import: SDE meeting toolkit (workshop tools + breadcrumb skill) 2026-08-20 14:17:27 -07:00