Skip to content

Allow disabling ssl verification on schema introspection #328

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

Merged
merged 3 commits into from
Jul 30, 2020

Conversation

danielharbor
Copy link

@danielharbor danielharbor commented May 20, 2020

What this PR does

Introduces a flag for disabling SSL verification when using the introspect-schema command:

no_ssl: set this to disable SSL verification. The default value is false, so if the flag is not passed, SSL verification will be enabled.

Why

My team recently decided to use graphql_client_cli for introspecting our GraphQL services but quickly realized that there was no way to do this on a host where https is enabled, hence this flag.

Sample Usage:

$ graphql-client introspect-schema https:/localhost:8080/graphql --no-ssl --header 'Authorization: Basic a5WcefsppefwfeX2pB25Z3JhtleQ='

@danielharbor
Copy link
Author

@tomhoule please could you help take a look at this PR? As far as I can tell, the wasm test failure doesn't seem to be due to these changes.

@tomhoule
Copy link
Member

It's an additional feature to maintain if we want to switch client, but I think it's fine. I'm trying to minimize the scope as much as possible, since as you noticed, I don't have lots of free time for non-work projects at the moment. Thanks for the PR :)

@tomhoule tomhoule merged commit 34bbd67 into graphql-rust:master Jul 30, 2020
@danielharbor
Copy link
Author

Thanks @tomhoule 🙂

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

Successfully merging this pull request may close these issues.

3 participants