Skip to content

fix: close small pre-release review gaps #516

Closed

Description

@uniqueg

Small findings from the v0.18.0 pre-release review, grouped in one issue (each takes minutes):

  1. 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.
  2. 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.
  3. 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

  1. added this to the v0.18.0 milestone on Oct 26, 2026
  2. added
    priority: medium
    status: in progress
    type: delivery
    type: docs
    type: security
    workload: hours
    on Oct 26, 2026
  3. removed
    status: in progress
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: deliverytype: docstype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions