- docker-compose.yml: mark 'egress' network internal: true. Every Docker bridge network gets outbound NAT to the internet by default, not just 'default' - missing this meant sde-meeting-toolkit still had a direct route out despite being off 'default'. Confirmed via a real smoke test run (Check 2 failed before this fix). - egress-proxy/tinyproxy.conf: 'Group nogroup' doesn't exist on Alpine, only 'nobody'. Fixed to 'Group nobody' for both User and Group. - server.js: surface err.cause alongside err.message when the Anthropic call fails. undici wraps the real reason in a generic 'fetch failed' TypeError; without this the actual cause was invisible in both the API response and the logs.
29 lines
1003 B
Plaintext
29 lines
1003 B
Plaintext
# Minimal tinyproxy config for the SDE Meeting Toolkit's outbound restriction.
|
|
#
|
|
# The app container has no direct route to the internet. This is the only
|
|
# way out, and it only allows one destination: api.anthropic.com. Every
|
|
# other outbound request from the app is refused here, not just unrouted,
|
|
# so a compromised app container still can't reach anything else.
|
|
User nobody
|
|
Group nobody
|
|
|
|
Port 8888
|
|
|
|
# Only the app container can reach this proxy at all (it's the only other
|
|
# thing on the "egress" network in docker-compose.yml), so this is a second
|
|
# layer, not the primary control. The primary control is the Filter below.
|
|
Allow 0.0.0.0/0
|
|
|
|
# Domain allow-list. FilterDefaultDeny means anything not matched here is
|
|
# refused. Matched against the CONNECT target for HTTPS traffic, which is
|
|
# all this app ever sends (fetch() to https://api.anthropic.com/...).
|
|
Filter "/etc/tinyproxy/filter"
|
|
FilterDefaultDeny Yes
|
|
FilterExtended Yes
|
|
FilterCaseSensitive No
|
|
|
|
MaxClients 20
|
|
Timeout 60
|
|
|
|
LogLevel Warning
|