mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
- Allow operators to associate Zen and Go credentials with configured proxy routes via optional proxy_bindings in config. - Keys are mapped to their 16-hex fingerprint during normalization so secrets are never stored twice or exposed in diagnostics. - Bound credentials fail closed: when their assigned proxy becomes unavailable, they do not silently migrate to other proxies or fall back to direct egress. - When an assigned proxy recovers, traffic resumes immediately without changing bindings. - Removed or invalid proxy references fail config validation, leaving the previous running runtime untouched on failed reloads. - Unbound configurations, anonymous routing, and session affinity continue to behave exactly as before. - Note in config documentation that binding to a #pool proxy endpoint pins the transport route and does not guarantee a static public egress IP. - Add unit and acceptance tests covering binding resolution, fail-closed isolation, persistence, and secret masking. Co-authored-by: NekomyaDev <neko@nekomya.dev>