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

apikey: Switch policy from allowedFields to query #3411

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

mastercactapus
Copy link
Member

@mastercactapus mastercactapus commented Nov 2, 2023

Description:
Updates the security model of the GQL API Key feature from a list of allowed fields, to a single static query document per key.

This allows additional flexibility to restrict an API key by resource and input parameters, while also working well with GraphQL features like operationName (a single query doc can be used for multiple operations).

Part of #3007

Out of Scope:

  • automatic persisted queries are compatible, but not implemented by this PR

Screenshots:
image
image

@github-actions github-actions bot added the size/l label Nov 2, 2023
@tony-tvu tony-tvu merged commit 00104b1 into master Nov 2, 2023
@tony-tvu tony-tvu deleted the gql-fixed-query branch November 2, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants