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

DM-39648: Add kafkit.settings module #23

Merged
merged 3 commits into from
Jun 13, 2023
Merged

DM-39648: Add kafkit.settings module #23

merged 3 commits into from
Jun 13, 2023

Conversation

jonathansick
Copy link
Member

This new module provides the KafkaConnectionSettings module we built in Squarebot. This class, built with Pydantic's BaseSettings provides a consistent framework for gathering Kafka client configurations from an app's environment variables. It also provides a ready-to-use SSLContext if TLS certs are included in the configuration.

The KafkitConnectionSettings makes it easy to gather configurations for
a Kafka client based on environment variables (or environment variables
that point to certificate files). The settings class also provides an
ssl_context that's ready to use in setting up a consumer or producer.
@jonathansick jonathansick merged commit fbe6900 into main Jun 13, 2023
@jonathansick jonathansick deleted the tickets/DM-39648 branch June 13, 2023 17:10
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.

1 participant