Skip to content

fix: make namespace dry runs read-only #339

Closed

Description

@uniqueg

python -m cloud_registry.namespace_subjects <namespace> --dry-run is documented to only count subjects, but it calls create_app() first. That creates configured indexes, replaces the configured policy rules, and changes the TTL index of invitations.

Run with a newer image against a database that an older version still uses, the dry run leaves pods of that version unable to restart (the index conflicts), and owners on these pods can get 403 Forbidden.

To do

  • With --dry-run, read the config and the stored data without FOCA's app setup and without the app's startup tasks.
  • Add a regression test: the dry run on a database in the state of 1.0.0rc1 leaves its indexes and rules as they are, and still counts the subjects.
  • Say so in the docs of the command.

Activity

  1. added this to the v1.0.0-rc2 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: in progress
    type: bug
    workload: hours
    on Nov 3, 2026
  3. removed
    status: in progress
    on Nov 3, 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: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions