Skip to content

apikey: Switch policy from allowedFields to query#3411

Merged
tony-tvu merged 3 commits into
masterfrom
gql-fixed-query
Nov 2, 2023
Merged

apikey: Switch policy from allowedFields to query#3411
tony-tvu merged 3 commits into
masterfrom
gql-fixed-query

Conversation

@mastercactapus
Copy link
Copy Markdown
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