drupal-graphql / drupal-graphql/graphql

How to provide public secure API with EntityQuery?

Open
#1,040 1 comment 0 reactions 0 assignees View on GitHub
3.x question
Dominant language
PHP
Stars
287
Forks
198
PR merge metrics
No merged PRs in 30d

Description

We want to offer anyone to query our content by arbitrary GraphQL queries. To have this API useful it is essential to offer EntityQuery, but it is marked insecure, so we need to give Bypass field security permission to all.

The reason why it is insecure is described in source:
> This field is marked as not secure because it does not enforce entity field
> access over a chain of filters. For example node.uid.pass could be used as
> filter input which would disclose information about Drupal's password hashes.

How to fix security issues of EntityQuery so we can offer it publicly?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.