Skip to content

New Caller Type, Helpers#442

Merged
matoszz merged 1 commit intomainfrom
feat-caller
Feb 22, 2026
Merged

New Caller Type, Helpers#442
matoszz merged 1 commit intomainfrom
feat-caller

Conversation

@matoszz
Copy link
Member

@matoszz matoszz commented Feb 22, 2026

  • Introduces a unified caller identity type that represents any request actor through a single, consistent interface rather than a fragmented set of context types
  • Replaces boolean privilege flags with named, explicitly valued constants that remain stable as new permissions are added over time
  • System administrator status is now a first-class permission rather than a loosely coupled boolean, making privilege checks consistent with how all other bypass logic is handled
  • Provides a migration bridge that converts the existing authenticated user context into the new type, allowing core to adopt the new model incrementally
  • Establishes the foundation for collapsing the large surface of field-specific context accessor functions in core down to a single context lookup with direct field access

Related to theopenlane/utils#125

@matoszz matoszz requested a review from a team as a code owner February 22, 2026 22:20
@github-actions github-actions bot added the enhancement New feature or request label Feb 22, 2026
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@matoszz matoszz enabled auto-merge (squash) February 22, 2026 22:31
@matoszz matoszz merged commit ea130b0 into main Feb 22, 2026
12 of 13 checks passed
@matoszz matoszz deleted the feat-caller branch February 22, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants