Skip to content

Conversation

@jan-auer
Copy link
Member

@jan-auer jan-auer commented Dec 12, 2025

This implements a first version of killswitches. Switches are configured through
objectstore config, so in order to create a killswitch one has to apply new
config and restart the service.

Note that all scope values must be strings. Examples for configuration look like this:

killswitches:
  # Drop all requests for a specific usecase, regardless of scopes
  - usecase: broken_usecase

  # Drop requests from a specific org, all projects, all usecases
  - scopes:
      org: "42"

  # Drop requests from a specific project, all usecases
  - scopes:
      org: "42"      # can also be omitted
      project: "4711"

  # Combination of usecase and org
  - usecase: attachments
    scopes:
      org: "42"

At a later stage, we can replace the static configuration with a runtime system.

Ref FS-227

@jan-auer jan-auer requested a review from a team as a code owner December 12, 2025 13:06
@linear
Copy link

linear bot commented Dec 12, 2025

FS-227 Add killswitches

@jan-auer jan-auer enabled auto-merge (squash) December 12, 2025 14:18
@jan-auer jan-auer merged commit e59ed38 into main Dec 12, 2025
19 checks passed
@jan-auer jan-auer deleted the feat/killswitches branch December 12, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants