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

Add SSL credentials support for secure gRPC channels #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlphaKhaw
Copy link

Description

This PR adds native support for secure gRPC channels in the ImmuDB Python client by introducing an optional ssl_credentials parameter to the ImmudbClient constructor.

Changes

  • Added ssl_credentials parameter to ImmudbClient.__init__
  • Modified channel creation logic to support both secure and insecure channels
  • Updated documentation to reflect new parameter
  • Maintained backward compatibility with existing implementations

Example Usage

Create secure channel

credentials = grpc.ssl_channel_credentials()
client = ImmudbClient(immudUrl="host:port", ssl_credentials=credentials)

Existing usage remains unchanged

client = ImmudbClient(immudUrl="host:port") # Creates insecure channel

Related Issue

Closes #79

Testing

  • Tested with both secure and insecure connections
  • Verified backward compatibility
  • Tested with production ALB setup

Documentation

Updated docstring in ImmudbClient.__init__ to document the new parameter.

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.

Add support for secure gRPC channels in ImmudbClient
1 participant