Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[permisions] Bypass permission checks with api key #10516

Merged
merged 3 commits into from
Feb 28, 2025
Merged

Conversation

ijreilly
Copy link
Collaborator

@ijreilly ijreilly marked this pull request as ready for review February 27, 2025 12:36

import { getRequest } from 'src/utils/extract-request';

export const AuthApiKey = createParamDecorator(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -91,6 +93,7 @@ export class BillingResolver {
@AuthWorkspace() workspace: Workspace,
@AuthUser() user: User,
@AuthUserWorkspaceId() userWorkspaceId: string,
@AuthApiKey() apiKey: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too @ijreilly

@ijreilly ijreilly merged commit a3a05c6 into main Feb 28, 2025
32 checks passed
@ijreilly ijreilly deleted the perm--api-key branch February 28, 2025 06:50
pacyL2K19 added a commit to pacyL2K19/twenty that referenced this pull request Mar 4, 2025
pacyL2K19 added a commit to pacyL2K19/twenty that referenced this pull request Mar 4, 2025
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.

Permissions with API key
2 participants