Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions protection/makeAllPublic/config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# 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.
# For example, you would typically do this for your product catalog queries.
# Remember to test this not through the localhost proxy
# that automatically sets the Apikey to be the admin key and bypasses these permissions,
# but use separate a GraphQL or API client to check these.
ruleset:
- query: "[ALL]"
rules:
- predicate: true
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