Hasura MySQL Preview : Admin Console Login Fail #5827
Unanswered
ReghuShanker
asked this question in
General
Replies: 2 comments
-
I am experiencing this exact issue, while attempting to use HASURA_GRAPHQL_ADMIN_SECRET to login. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Solved this by using a chrome extension to set the The extension -> https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to login to the Hasura MySQL preview console. When I enter the admin password, it logins and I see the console for a second. The console then returns back to the login screen. I checked my docker-compose file and verified I am using the correct admin password. Server is in Digital Ocean.
The following is the screencast of the issue: https://nimb.ws/8aOfkK
My docker-compose is the following :
docker-compose.txt
When I check the network requests I at first login requests returns success but later another request is denied permission.
Screenshots of the failed requests:
The Hasura log from docker container for the above request is the following:
graphql-engine_1 | {"type":"http-log","timestamp":"2020-09-23T11:27:54.577+0000","level":"error","detail":{"operation":{"user_vars":{"x-hasura-role":"anonymous"},"error":{"path":"$.args","error":"restricted access : admin only","code":"access-denied"},"request_id":"aa58017e-b26e-4b64-af5c-39db9610f0d4","response_size":81,"query":{"args":{"cascade":false,"check_metadata_consistency":null,"sql":"SELECT version();","read_only":false},"version":1,"type":"run_sql"}},"http_info":{"status":400,"http_version":"HTTP/1.1","url":"/v1/query","ip":"103.134.135.89","method":"POST","content_encoding":null}}}
The following is the log for successful requests:
graphql-engine_1 | {"type":"http-log","timestamp":"2020-09-23T11:27:54.577+0000","level":"info","detail":{"operation":{"query_execution_time":0.183807047,"user_vars":{"x-hasura-role":"admin"},"request_id":"eb3b6a6b-c262-4f99-aa58-f5825d0186a9","response_size":1918,"request_read_time":2.531373e-3},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"103.134.135.89","method":"POST","content_encoding":"gzip"}}}
Seems like x-hasura-role has changed from admin to anonymous not sure if this the reason or not.
If anyone can take a look at it, then it would be really helpful.
Beta Was this translation helpful? Give feedback.
All reactions