Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to curl the schema without providing the hasura service token secret #12

Open
nihxdr opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@nihxdr
Copy link
Contributor

nihxdr commented Sep 25, 2024

It seems like the connector is not properly using the HASURA_SERVICE_TOKEN_SECRET env var, since I was able to curl the schema without providing auth token in the headers

Expected:

curl -v -X GET http://localhost:8082/schema
{"message":"Internal error","details":{"cause":"Bearer token does not match."}}

curl -v -X GET http://localhost:8082/schema -H "Authorization: Bearer <HASURA_SERVICE_TOKEN_SECRET>"
<outputs schema>

Current :

curl -v -X GET http://localhost:8082/schema
<outputs schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant