You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small findings from the v0.18.0 pre-release review, grouped in one issue (each takes minutes):
SSRF guard treats IPv6 site-local addresses as public.foca.utils.http.is_public_address() relies on ipaddress.is_global, which is True for the deprecated site-local range fec0::/10 (RFC 3879) under Python 3.12. GuardedClient would thus connect to such addresses. Also reject is_site_local, with a test.
The root .dockerignore excludes only examples/.docker/Dockerfile copies foca/ into the published base image, so a stray foca/.env file or __pycache__ directories would end up in it. Turn it into an allowlist (*, then !pyproject.toml, !MANIFEST.in, !README.md, !LICENSE, !foca/), and exclude .env* (except .env.example), __pycache__ and *.pyc inside the allowed paths, like the examples do since fix: keep local files out of example images #513.
The petstore-access-control README tells users to add admin rules directly in the database. Since perf(access-control): cache the policy enforcer #454, a running app ignores direct database edits until it restarts (or mark_changed() is called). Recommend the permissions API instead, and say that direct edits need a restart.
Activity