Created
December 15, 2020 22:12
-
-
Save Egnod/f43a93acb8379c3de1c2c53303f012f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, Dict | |
from pydantic import Field | |
from sitri.settings.contrib.vault import VaultKVSettings | |
from superapp.config.provider_config import BaseConfig, configurator | |
class KafkaSettings(VaultKVSettings): | |
mechanism: str = Field(..., vault_secret_key="auth_mechanism") | |
brokers: str = Field(...) | |
auth_data: Dict[str, Any] = Field(...) | |
class Config(BaseConfig): | |
default_secret_path = "kafka" | |
default_mount_point = f"{configurator.get('app_name')}/common" | |
local_mode_path_prefix = "kafka" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment