# NousResearch/hermes-agent · Gateway secret scoping and env var regression fixes

## Open now

- Nothing open on GitHub.

These issues and PRs address bugs in gateway/secret scoping logic where environment variables (especially API_SERVER_* and platform env vars) were incorrectly handled, silently dropped, or not falling through to os.environ. A regression in v2026.7.20 broke Docker multiplex deployments by reloading config in the wrong secret scope.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #76663. Verify it addresses your case.
- **Recommended:** read PR #76663 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-76663`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #69379: v2026.7.20 regression for Docker multiplex deployments: load_gateway_config_for_runner reloads config in the default profile's secret scope, silently dropping platform env vars set via container environment — api_server no longer starts

## Prior & competing PRs

- **#76663: fix(secrets): Weixin Slack-pattern scoping, API_SERVER_* global allowlist, xai_http fail-closed (corrects #66073/#68854/#69524; salvages #56982)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/secret_scope.py`, `gateway/platforms/weixin.py`, `tests/agent/test_secret_scope.py`, `tests/gateway/test_64674_multiplex_primary_token_scope.py`, `tests/gateway/test_weixin_secret_scope.py`, `tests/tools/test_xai_http_credentials.py`, `tools/xai_http.py`
- **#69524: fix(gateway): make _getenv fall through to os.environ when var not in secret scope (#69379)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#76663`, `#69379`
- **#69610: fix(gateway): treat API_SERVER_* as global env, not profile secrets**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#76663`, `#69379`

## Fix status

- Merged to main in PR #76663 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-02`.
- Subsystem: `agent/secret_sources`
