Skip to content

Conversation

tjeerddie
Copy link
Contributor

@tjeerddie tjeerddie commented Oct 10, 2025

Currently, GraphQLOPAAuthorization uses the POST method, which is also used by API endpoints for creating resources.
This led to an unintended side effect that granting a user access to GraphQL could also grant them access to other POST endpoints, unless those were explicitly restricted. Changing the method to a dedicated one (such as QUERY) eliminates this overlap and prevents accidental authorization leaks.

I think that mutation doesn't necessarily need to be changed since its similar to POST requests.

@tjeerddie tjeerddie force-pushed the change-graphql-query-method branch from 115fab9 to 812a033 Compare October 10, 2025 11:42
@tjeerddie tjeerddie changed the title Change Graphql Query auth method to QUERY Change Graphql Query authz method to QUERY Oct 10, 2025
Copy link
Contributor

@mrijk mrijk left a comment

Choose a reason for hiding this comment

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

LGTM

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