Skip to content

feat(entropy): add KAFKA to firehose SINK_TYPE schema and validation#164

Open
sumitaich1998 wants to merge 1 commit into
mainfrom
kafka-sink-sonnet
Open

feat(entropy): add KAFKA to firehose SINK_TYPE schema and validation#164
sumitaich1998 wants to merge 1 commit into
mainfrom
kafka-sink-sonnet

Conversation

@sumitaich1998

Copy link
Copy Markdown

Adds "KAFKA" to the SINK_TYPE enum in the firehose JSON schema so entropy accepts firehose resources with SINK_TYPE=KAFKA.

Adds SINK_KAFKA_* constants and validateKafkaSinkEnvVars which is called from readConfig when SINK_TYPE=KAFKA to fail-fast if required env vars (BROKERS, TOPIC, PROTO_MESSAGE, PROTO_KEY, PROTO_MAPPING) are absent.

SINK_KAFKA_BROKERS is expected to be resolved upstream (dex/odin) from SINK_KAFKA_STREAM before the request reaches entropy; entropy only validates that it is present.

Adds "KAFKA" to the SINK_TYPE enum in the firehose JSON schema so entropy
accepts firehose resources with SINK_TYPE=KAFKA.

Adds SINK_KAFKA_* constants and validateKafkaSinkEnvVars which is called
from readConfig when SINK_TYPE=KAFKA to fail-fast if required env vars
(BROKERS, TOPIC, PROTO_MESSAGE, PROTO_KEY, PROTO_MAPPING) are absent.

SINK_KAFKA_BROKERS is expected to be resolved upstream (dex/odin) from
SINK_KAFKA_STREAM before the request reaches entropy; entropy only
validates that it is present.

Co-authored-by: Cursor <cursoragent@cursor.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.

1 participant