Skip to content

Comments

add support for custom CA's#21

Open
nithindv wants to merge 5 commits intomainfrom
feat/allow-custom-ca
Open

add support for custom CA's#21
nithindv wants to merge 5 commits intomainfrom
feat/allow-custom-ca

Conversation

@nithindv
Copy link

@nithindv nithindv commented Feb 2, 2026

Summary

Self-hosted customers often use organization-signed certificates which are not supported when using rustls-tls (unlike native-tls which picks up system SSL environment variables). This change adds support for custom CA certificates and optionally disabling TLS verification entirely.

We read these environment variables directly from the OS rather than through connector configuration, as TLS settings are primarily an infrastructure concern.

Environment Variables

Variable Description
GRAPHQL_CA_CERT_FILE Path to a single PEM-encoded CA certificate file
GRAPHQL_CA_CERT_DIR Directory containing PEM-encoded CA certificates (.pem, .crt, .cer)
GRAPHQL_INSECURE_SKIP_TLS_VERIFY Set to true or 1 to disable TLS verification (dangerous, for dev/testing only)

Notes:

  • GRAPHQL_CA_CERT_FILE and GRAPHQL_CA_CERT_DIR can be used together (certificates are combined)
  • GRAPHQL_INSECURE_SKIP_TLS_VERIFY takes precedence and skips all CA cert logic when enabled

Changes

  • Added rustls-pemfile dependency for parsing PEM certificates
  • Added tracing dependency for logging certificate loading info/warnings
  • Updated get_http_client() to configure TLS based on environment variables

@nithindv nithindv requested a review from hgiasac February 2, 2026 14:35
codedmart and others added 3 commits February 12, 2026 21:21
Lower GraphQL interface and union output types into tagged-variant NDC
object types with __typename and nullable on_<ConcreteType> fields.
Adds validation for unsupported polymorphic schemas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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