Skip to content

ref(server): Create extractors for params#238

Merged
jan-auer merged 2 commits intomainfrom
feat/server-extractors
Dec 12, 2025
Merged

ref(server): Create extractors for params#238
jan-auer merged 2 commits intomainfrom
feat/server-extractors

Conversation

@jan-auer
Copy link
Member

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

This creates a new module in objectstore-server that contains all extractors
we need for our web API.

The extractor for the auth-aware service has been moved into this module. This
gives us a cleaner separation between the HTTP layer and the auth logic, which
would even allow us to move that wrapper into a different crate. Additionally,
there are minor changes to it:

  • The service no longer has an explicit enforce flag. This is inferred from
    Option and documented on its new constructor.
  • We now support case-insensitive parsing of the bearer prefix.

There are also two new extractors for ObjectId and ObjectContext. Endpoints
no longer have to use the Params types directly and also do not have to deal
with configuring the Sentry scope.

This change is a preparation for introducing killswitches.

Ref FS-227

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

linear bot commented Dec 12, 2025

FS-227 Add killswitches

@jan-auer jan-auer force-pushed the feat/server-extractors branch from 0cb71d0 to cad60a1 Compare December 12, 2025 10:22
@jan-auer jan-auer merged commit e9a6e0f into main Dec 12, 2025
19 checks passed
@jan-auer jan-auer deleted the feat/server-extractors branch December 12, 2025 13:06
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.

2 participants