question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option for disabling introspection query

See original GitHub issue

Hi. I am using this library for production. I want to disable introspection query for security. I tried to customize the Class SchemaGenerator, but it seems not working. Is there any way to disable introspection quiery?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dariuszkuccommented, Apr 7, 2020

Great question! Unfortunately currently we don’t provide configuration option to easily disable it so you would have to do it manually by modifying the generated GraphQL schema.

See https://www.graphql-java.com/documentation/v14/fieldvisibility/ for details.

@smyrick I think that we probably should add configuration option to spring-server to support it

0reactions
smyrickcommented, Apr 7, 2020

@dariuszkuc The field visibility is handled through the code registry so if we want a config option as part of spring server, that means we have to open the registry to be modified in external packages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why and how to disable introspection query for GraphQL APIs
To disable all types of introspection in this implementation, use the example below.
Read more >
Disable GraphQL Introspection in graphql-java-tools
If you are using graphql-spring-boot, according to the graphql-java-tools README, you can disable the introspection query by setting the ...
Read more >
Disabling introspection - gqlgen
Disable introspection for the whole server. To opt out of introspection globally you should build your own server with only the features ......
Read more >
How to disable introspection query? · Issue #2692 - GitHub
but if all you want to do is, basically hide all introspection queries, then just return Task.FromResult(false) for everything and remove the ...
Read more >
Introspection - Hot Chocolate - ChilliCream GraphQL Platform
We can disable introspection by calling AllowIntrospection() with a false argument on the IRequestExecutorBuilder . C#. services.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found