Reputation: 121
I am going to publish my app in production. Currently, I am trying to disable the database schema introspection in Hasura core. I tried to download the metadata and add the following to the file
"graphql_schema_introspection": {
"disabled_for_roles": [
"user"
]
}
It doesn't work. But I try in Hasura cloud, it's worked. Maybe this feature is only in Hasura cloud, not Hasura core.
Is there any alternative way to disable the schema introspection in Hasura core?
Upvotes: 3
Views: 1391
Reputation: 422
Available on: Cloud Free, Cloud Professional, Cloud Enterprise, Self-Hosted Enterprise
Upvotes: 0
Reputation: 3537
You need to activate AllowList and introspection queries automatically becomes not allowed query.
You will need to add introspection queries into AllowList to enable them.
Notes:
admin
role. That's reasonable: applications must not work in admin
role anyway.Upvotes: 3