Skip to content

fix: address 0.17.0 review findings #442

Closed

Description

@uniqueg

The round-2 pre-release review of FOCA 0.17.0 and foca-common 0.2.0 (d843c63..6d2989c) found the following items to fix before the release.

Access control

  • M1: _remove_policies fails open. Any PyMongoError, also one raised while removing stored configured rules, is only logged, and the revoked rules stay in effect. Tolerate only connection failures from the existence check; if configured rules exist, let errors from the removal propagate, so startup fails, as it does when policies is set.
  • With access control and no policies, startup blocks for about 30 s when MongoDB is unreachable (default server selection timeout). Use a short timeout for the existence check.
  • GET returns 404 for a configured rule of an inactive generation, while DELETE returns 409. Return 404 unless the rule is configured in the active generation.
  • L2: stale docstring in foca/models/config.py ("If not set, stored rules are not changed on startup").

Documentation

  • L3: apps on a shared external MongoDB must set their own db_name, since the default policy collection is shared (migration guide and access control docs).
  • Migration guide: 0.1.0 values render MongoDB unchanged except for the keep annotation on the claim.
  • README quick start: named specs: entries.
  • Contributing guide: use "Re-run failed jobs" for releases, never "Re-run all jobs", since the artifacts are not reproducible; fix the "reproduced from their tag" wording in requirements/release.txt.

Packaging

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: hightype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions