GraphQLAllowedQueryPolicy
Proto: graphql_allowed_query_policy.proto
Package: security.policy.gloo.solo.io
Types:
- GraphQLAllowedQueryPolicySpec
- GraphQLAllowedQueryPolicySpec.Config
- GraphQLAllowedQueryPolicyStatus
- GraphQLAllowedQueryPolicyStatus.WorkspacesEntry
GraphQLAllowedQueryPolicySpec
Field | Description |
---|---|
applyToRoutes |
(repeated common.gloo.solo.io.RouteSelector )Select the graphql routes where the policy will be applied. If left empty, will apply to no graphql routes. selection via Destination selectors will not work for this policy, and only route selectors will work. If more than one GraphQLAllowedQueryPolicy applies to a GraphQLRoute, the oldest one will be applied. |
config |
(GraphQLAllowedQueryPolicySpec.Config ) |
GraphQLAllowedQueryPolicySpec.Config
Field | Description |
---|---|
allowedQueryHashes |
(repeated string )A list of SHA-256 hashed graphql queries that are allowed to be executed by the server. If a query hash is not in this list, the server will return an error. If this list is empty, all queries are allowed. Else, all queries must be in this list. Queries that are not sent as hashes will be hashed and compared against the list. This is useful for preventing malicious queries from being executed. |
GraphQLAllowedQueryPolicyStatus
reflects the status of the GraphQLAllowedQueryPolicy
Field | Description |
---|---|
global |
(common.gloo.solo.io.GenericGlobalStatus ) |
workspaces |
(repeated GraphQLAllowedQueryPolicyStatus.WorkspacesEntry )The status of the resource in each workspace that it exists in. |
selectedRoutes |
(repeated common.gloo.solo.io.RouteReference )A list of references to all routes the policy selects. |
GraphQLAllowedQueryPolicyStatus.WorkspacesEntry
Field | Description |
---|---|
key |
(string ) |
value |
(common.gloo.solo.io.WorkspaceStatus ) |