Repository navigation
fix(compose): forward GMAIL_* and GCAL_* into the gateway container - #109
Conversation
…aking gap)
The gateway compose uses an explicit environment: allowlist and NO env_file, so
GMAIL_ADDRESS/GMAIL_APP_PASSWORD written to a per-agent docker.env never reached
the container — os.environ had neither, and the gmail skill could not read the
credential. Verified live: keys present in projectmanager/docker.env, but
MISSING_IN_PROCESS. The dashboard Gmail plan + review assumed docker.env
forwards to container env; it doesn't for non-allowlisted keys. Inline creds
worked only because the agent set them for the script run.
Adds GMAIL_ADDRESS/GMAIL_APP_PASSWORD (empty ${..:-} default) to both gateway
service env blocks. Inert for agents with no mailbox (the skill is per-agent,
installed only on connect). Container recreate required to apply.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Same allowlist rule as the GMAIL_* pair this PR already adds: this compose has no env_file, so a key written to a per-agent docker.env reaches the container ONLY if it is named here. Calendar writes GCAL_RUNTIME_URL and GCAL_RUNTIME_TOKEN on enable; without these lines the skill declares both in requires.env (ALL semantics) and stays permanently invisible behind a green Connected card. Neither value is a Google credential: the URL is public, and the token authenticates only against the dashboard Calendar broker (one endpoint, per-agent, dead the instant the agent is disabled). The Google refresh token stays encrypted in Firestore and never enters this file. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Extended to cover Calendar as well — same file, same root cause, so one merge fixes both. Added Neither value is a Google credential: the URL is public, and the token authenticates only against the dashboard's Calendar broker (one endpoint, per-agent, dead the instant the agent is disabled). The Google refresh token stays encrypted in Firestore and never enters this file.
|
The gateway
docker-compose.ymluses an explicitenvironment:allowlist and noenv_file, soGMAIL_ADDRESS/GMAIL_APP_PASSWORDwritten to a per-agentdocker.envnever reach the container. Verified live on the US host: both keys present inprojectmanager/docker.env,MISSING_IN_PROCESSin the gateway. This is the root cause of dashboard-Gmail not working (openclaw-dashboard openclaw#234/openclaw#235) — the whole plan assumeddocker.envforwards to the container env; it doesn't for non-allowlisted keys. Inline creds worked only because the agent set them for the script run.Adds the two keys to both gateway service
environment:blocks with an empty${..:-}default — inert for agents without a connected mailbox (the gmail skill is per-agent, installed only on connect). Container recreate required to apply. Deploying to /opt/openclaw/docker-compose.yml on both hosts.@codex review