Initial state: - ia_dev was historically referenced as ./ia_dev in docs and integrations, while the vendored module lives under services/ia_dev. - AnythingLLM sync and hook installation had error masking / weak exit signaling. - Proxy layers did not validate proxy path segments, allowing path normalization tricks. Motivation: - Make the IDE-oriented workflow usable (sync -> act -> deploy/preview) with explicit errors. - Reduce security footguns in proxying and script automation. Resolution: - Standardize IA_DEV_ROOT usage and documentation to services/ia_dev. - Add SSH remote data mirroring + optional AnythingLLM ingestion. - Extend AnythingLLM pull sync to support upload-all/prefix and fail on upload errors. - Harden smart-ide-sso-gateway and smart-ide-global-api proxying with safe-path checks and non-leaking error responses. - Improve ia-dev-gateway runner validation and reduce sensitive path leakage. - Add site scaffold tool (Vite/React) with OIDC + chat via sso-gateway -> orchestrator. Root cause: - Historical layout changes (submodule -> vendored tree) and missing central contracts for path resolution. - Missing validation for proxy path traversal patterns. - Overuse of silent fallbacks (|| true, exit 0 on partial failures) in automation scripts. Impacted features: - Project sync: git pull + AnythingLLM sync + remote data mirror ingestion. - Site frontends: SSO gateway proxy and orchestrator intents (rag.query, chat.local). - Agent execution: ia-dev-gateway script runner and SSE output. Code modified: - scripts/remote-data-ssh-sync.sh - scripts/anythingllm-pull-sync/sync.mjs - scripts/install-anythingllm-post-merge-hook.sh - cron/git-pull-project-clones.sh - services/smart-ide-sso-gateway/src/server.ts - services/smart-ide-global-api/src/server.ts - services/smart-ide-orchestrator/src/server.ts - services/ia-dev-gateway/src/server.ts - services/ia_dev/tools/site-generate.sh Documentation modified: - docs/** (architecture, API docs, ia_dev module + integration, scripts) Configurations modified: - config/services.local.env.example - services/*/.env.example Files in deploy modified: - services/ia_dev/deploy/* Files in logs impacted: - logs/ia_dev.log (runtime only) - .logs/* (runtime only) Databases and other sources modified: - None Off-project modifications: - None Files in .smartIde modified: - .smartIde/agents/*.md - services/ia_dev/.smartIde/** Files in .secrets modified: - None New patch version in VERSION: - 0.0.5 CHANGELOG.md updated: - yes
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# smart-ide-sso-gateway — copy to .env, do not commit .env
|
|
# Or merge into config/services.local.env (repo root)
|
|
|
|
SSO_GATEWAY_HOST=127.0.0.1
|
|
SSO_GATEWAY_PORT=37148
|
|
# Optional: browser SPA origin for CORS on JSON and proxied responses
|
|
# SSO_CORS_ORIGIN=https://app.example.test
|
|
# SSO_GATEWAY_MAX_BODY_BYTES=33554432
|
|
|
|
# Upstream allowlist (comma-separated). Default is "orchestrator".
|
|
# Use "*" or "all" to allow every upstream key.
|
|
# SSO_ALLOWED_UPSTREAMS=orchestrator
|
|
|
|
# Required: docv / Enso OpenID issuer URL (JWKS discovery)
|
|
OIDC_ISSUER=https://docv.example.test
|
|
# Optional: validate access_token audience
|
|
# OIDC_AUDIENCE=smart-ide-gateway
|
|
# Optional: override JWKS URL
|
|
# OIDC_JWKS_URI=https://docv.example.test/.well-known/jwks.json
|
|
|
|
# smart-ide-global-api (must be running; same secret on both sides)
|
|
GLOBAL_API_URL=http://127.0.0.1:37149
|
|
GLOBAL_API_INTERNAL_TOKEN=
|
|
|
|
# Optional: monorepo root for .logs/sso-gateway/
|
|
# SMART_IDE_MONOREPO_ROOT=
|
|
|
|
# Micro-service tokens and hosts are read by smart-ide-global-api, not this process.
|
|
# See services/smart-ide-global-api/.env.example
|