We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8908a18 commit 0808d91Copy full SHA for 0808d91
protection/makeAllPublic/config.yaml
@@ -1,10 +1,8 @@
1
-# This is a blanket way to make all endpoints public, i.e. not requiring an API Key or JWT.
+# This is a blanket way to make all Query fields public, i.e. not requiring an API Key or JWT.
2
# For example, you would typically do this for your product catalog queries.
3
-# Remember to test this not through the localhost proxy
4
-# that automatically sets the Apikey to be the admin key and bypasses these permissions,
5
-# but use separate a GraphQL or API client to check these.
6
-ruleset:
7
- - query: "[ALL]"
8
- rules:
9
- - predicate: true
10
- action: allow
+# Remember to test this through a GraphQL client that does not automatically set an api or admin key.
+access:
+ policies:
+ - type: Query
+ policyDefault:
+ condition: true # allow all fields in Query with no authorization
0 commit comments