diff --git a/Makefile b/Makefile index 61f347e..c9f5cd8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ help: ## display this help .PHONY: run run: build ## run application - @LOG_LEVEL=debug PURGE_METRICS_ON_CRAWL=true BLOCK_SCHEMA_INTROSPECTION=false CACHE_TTL=10 JWT_ROLE_RATE_LIMIT=false JWT_ROLE_CLAIM_PATH="Hasura.x-hasura-default-role" JWT_USER_CLAIM_PATH="Hasura.x-hasura-user-id" HOST_GRAPHQL=https://hasura8.lan/ HEALTHCHECK_GRAPHQL_URL=https://hasura8.lan/v1/graphql ./graphql-proxy + @LOG_LEVEL=debug PURGE_METRICS_ON_CRAWL=true BLOCK_SCHEMA_INTROSPECTION=true CACHE_TTL=10 JWT_ROLE_RATE_LIMIT=false JWT_ROLE_CLAIM_PATH="Hasura.x-hasura-default-role" JWT_USER_CLAIM_PATH="Hasura.x-hasura-user-id" HOST_GRAPHQL=https://hasura8.lan/ HEALTHCHECK_GRAPHQL_URL=https://hasura8.lan/v1/graphql PORT_GRAPHQL=8111 ./graphql-proxy .PHONY: build build: ## build the binary diff --git a/graphql.go b/graphql.go index 07525d5..a3d8dc7 100644 --- a/graphql.go +++ b/graphql.go @@ -32,7 +32,8 @@ func prepareQueriesAndExemptions() { // Process allowed introspection queries for _, q := range cfg.Security.IntrospectionAllowed { - introspectionAllowedQueries[strings.ToLower(strings.TrimSpace(q))] = struct{}{} + cleanQuery := strings.Trim(strings.TrimSpace(q), `"`) + introspectionAllowedQueries[strings.ToLower(cleanQuery)] = struct{}{} } // Process allowed URLs