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

Disable the introspection of GraphQL API #255

Closed
ThibBal opened this issue Apr 17, 2020 · 3 comments
Closed

Disable the introspection of GraphQL API #255

ThibBal opened this issue Apr 17, 2020 · 3 comments

Comments

@ThibBal
Copy link
Contributor

ThibBal commented Apr 17, 2020

We need a way to disable the introspection of the GraphQL API in production mode to avoid a leak of the database schema.

@moufmouf
Copy link
Member

Disabling the introspection can be done in Webonyx using:

https://webonyx.github.io/graphql-php/security/#disabling-introspection

we need to do it on a per-query basis:

https://webonyx.github.io/graphql-php/executing-queries/#custom-validation-rules

@moufmouf
Copy link
Member

Bonus: same thing for Laravel and service providers (or open a new issue for those)

@moufmouf
Copy link
Member

Closed by #263

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

No branches or pull requests

2 participants