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.

Allow-list does not work?

See original GitHub issue

Hasura v1.0.0 on Heroku.

  • Set HASURA_GRAPHQL_ENABLE_ALLOWLIST .env variable as “true”.
  • Set X-Hasura-Role header as “user”.
  • Add table with one field id (uuid).
  • Insert rows to table.
  • Add all select permissions for role “user”.
  • Add query to “Allowed Queries” interface with name “get_try”:
query get_try {
  try {
    id
  }
}
  • Reload metadata.

“NO SCHEMA AVAILABLE” in GraphiQL Explorer.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
0x777commented, Jan 9, 2020

As @rikinsk pointed you, you can’t introspect the server after enabling allow-list unless the introspection query itself is added to the allow-list. This is the introspection query that is used typically by graphiql like interfaces:

query IntrospectionQuery {
  __schema {
    queryType { name }
    mutationType { name }
    subscriptionType { name }
    types {
      ...FullType
    }
    directives {
      name
      description
      locations
      args {
        ...InputValue
      }
    }
  }
}
fragment FullType on __Type {
  kind
  name
  description
  fields(includeDeprecated: true) {
    name
    description
    args {
      ...InputValue
    }
    type {
      ...TypeRef
    }
    isDeprecated
    deprecationReason
  }
  inputFields {
    ...InputValue
  }
  interfaces {
    ...TypeRef
  }
  enumValues(includeDeprecated: true) {
    name
    description
    isDeprecated
    deprecationReason
  }
  possibleTypes {
    ...TypeRef
  }
}
fragment InputValue on __InputValue {
  name
  description
  type { ...TypeRef }
  defaultValue
}
fragment TypeRef on __Type {
  kind
  name
  ofType {
    kind
    name
    ofType {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
              }
            }
          }
        }
      }
    }
  }
}

I’m closing this issue, feel free to re-open this if you this doesn’t fix your issue.

0reactions
rikinskcommented, Mar 31, 2020

@THPubs Can you clarify what exactly you are attempting to do and what’s not working?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allowlist is not working · Issue #722 · SelfControlApp/selfcontrol
To test this, go to SelfControl --> Preferences, click over to the Advanced setting, and uncheck the "Allowlist blocks should include linked ......
Read more >
Why doesn't adding the domain in the Allowlist work ... - Reddit
I have added the 10play.com.au domain to the allowlist on my NextDNS configuration profile page because the 10play website and corresponding ...
Read more >
Why OIT does NOT allowlist domains
The allowlist lists “trusted sources” which lets them through so email from those addresses are not blocked as spam. Spammers (or Phishers) take...
Read more >
Allowlists, denylists, and approved senders - Google Support
Create an address list of approved senders so messages from these users bypass Gmail's spam filters, and recipients can decide whether they are...
Read more >
Using the allowlist and blocklist to control access to Zendesk ...
To edit your blocklist and allowlist​​ In Admin Center, click People in the sidebar, then select Configuration > End users. Enter your Allowlist...
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