graphql-engine: Hasura console fails to launch when using --insecure-skip-tls-verify
I get the error “Invalid admin-secret passed from CLI” when trying to use the console UI with the --insecure-skip-tls-verify flag.
The other cli commands run just fine (e.g. migrate apply) but I cannot access the console UI.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 19 (7 by maintainers)
Try removing (or adjusting) the HASURA_GRAPHQL_CORS_DOMAIN env var. I ran into this problem a few moments ago, after playing a bit with the environment variables I found that I had a strict CORS policy. That’s what worked for me anyways.
Yep, this is exactly what happens to me as well.
@scriptonist I get the same as you on the cmd, but then when I go to http://localhost:9695/ in a browser I get this, which sounds like the same thing as @pradyuman

… and it’s back! No idea what changed. Everything about my environment is the same, running all the same commands the same as I did during office hours…
EDIT: did a bit more poking around… I have two machines:
laptopand a remote machine calleddoodoo. I’m attempting to runhasura consoleondoodoo, and then connect to it fromlaptop. One thing that I’ve noticed is that the--endpointmust be accessible fromlaptop. Sogives me an error when I try to access
http://doodoo:9695/console/login: “Hasura console is not able to reach your Hasura GraphQL engine instance. Please ensure that your instance is running and the endpoint is configured correctly.” as well as “Invalid admin-secret passed from CLI”But
only gives me the “Invalid admin-secret passed from CLI” error.
Also, I can be certain that my secret is valid since if I intentionally pass in an incorrect secret via
--admin-secretI get a different error altogether:EDIT EDIT: I think I figured out why it worked in office hours but not otherwise… I believe the difference is that I was accidentally running two hasura instances one on the
doodooand one onlaptop. I’m still not able to come up with a 100% reliable reproduction however.For us we had
HASURA_GRAPHQL_DISABLE_CORS: 'true'which broke the cli console - removing that when we need to use the console fixed the issue for us.Same problem here. This is only happening on v2. Have tried many variations. Any ideas?
for me it doesn’t even work if I provide the admin secret with
--admin-secretmy version is:
Same problem here. All commands except
hasura consolework fine with the provided admin secret inconfig.yamlfile.same problem here. what could be the problem?
Same here all other CLI things work fine only console fails with invalid password no matter what I try.