这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rakeshkky
Copy link
Member

@rakeshkky rakeshkky commented Oct 25, 2018

Description

--unauthorized-role flag or HASURA_GRAPHQL_UNAUTHORIZED_ROLE env variable can be specified (optional) in following modes:

  • Access key only
  • JWT

In access-key only mode, when the x-hasura-access-key is absent, the query will be executed using the role specified with unauthorized-role option. JWT mode will have the same behavior when the Authorization header is absent in the request.

unauthorized-role option is not required for Webhook mode.

What component does this PR affect?

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Requires changes from other components? If yes, please mark the components:

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Related Issue

closes #595

Solution and Design

Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs update
  • Community content

Checklist:

  • I have read the contributing guide and my code conforms to the guidelines.
  • This change requires a change in the documentation.
  • I have updated the documentation accordingly.
  • I have added required tests.

@rakeshkky rakeshkky requested a review from 0x777 October 25, 2018 11:22
@rakeshkky rakeshkky self-assigned this Oct 25, 2018
@rakeshkky rakeshkky added s/ok-to-merge Status: This pull request can be merged to master c/server Related to server labels Oct 25, 2018
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-856.herokuapp.com

@0x777
Copy link
Member

0x777 commented Oct 25, 2018

do not allow unauthorized role for webhook

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-856.herokuapp.com

1 similar comment
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-856.herokuapp.com

where
unAuthRoleNotReqForWebHook =
when (isJust mUnAuthRole) $
throwError $ "Fatal Error: --unauthorized-role (HASURA_GRAPHQL_UNAUTHORIZED_ROLE) is not required"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is not allowed

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-856.herokuapp.com

1 similar comment
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-856.herokuapp.com

@0x777 0x777 merged commit 10d8529 into hasura:master Oct 25, 2018
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-856.herokuapp.com is deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server s/ok-to-merge Status: This pull request can be merged to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow anonymous use without webhook

3 participants