Skip to content

Commit d2ec70d

Browse files
patel-lyzrclaude
andcommitted
chore(compose): AGENTOS_DEV_AUTH for local no-login runs; ignore local override
Add AGENTOS_DEV_AUTH=1 (default) to the agentos service so `docker compose up` + SPA work with no Keycloak — LOCAL DEV ONLY (disables auth; set =0 for the real flow). Gitignore docker-compose.override.yml so ephemeral local overrides (e.g. switching the trace backend to ClickHouse) never get committed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent d7726d3 commit d2ec70d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ private.md
3939
PRIVATE.md
4040
*.private.md
4141
docs.md
42+
43+
# Local-only compose overrides (e.g. pointing agentos at local ClickHouse)
44+
docker-compose.override.yml

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ services:
8888
environment:
8989
AGENTOS_PORT: "8788"
9090
CA_BASE: http://harness:8787
91+
# Local auth bypass: with no Keycloak/OIDC configured, the auth gate would
92+
# 401 every request. AGENTOS_DEV_AUTH=1 makes it resolve a fixed admin
93+
# principal so `docker compose up` + the SPA "just work" with no login.
94+
# ⚠️ LOCAL DEV ONLY — this disables authentication entirely (everyone is
95+
# admin). NEVER set it in a shared/deployed environment. Override with
96+
# AGENTOS_DEV_AUTH=0 in .env to test the real Keycloak/API-key flow.
97+
AGENTOS_DEV_AUTH: ${AGENTOS_DEV_AUTH:-1}
9198
MONGO_URL: mongodb://mongo:27017
9299
MONGO_DATABASE: ${MONGO_DATABASE:-computeragent-test}
93100
CLICKHOUSE_URL: http://clickhouse:8123

0 commit comments

Comments
 (0)