Commit Graph
16 Commits
Author SHA1 Message Date
Leon Acosta 2771abc6a7 verify Kafka broker TLS certificate by default
When SASL credentials are present, getClient() connected with
`rejectUnauthorized: false`, so the SASL password was sent over a TLS
connection whose broker certificate was never verified — a MITM could
present any certificate and capture the credentials.

Verify by default; set KAFKA_SSL_ALLOW_UNAUTHORIZED=true to opt out for
self-signed brokers.
2026-07-04 18:45:45 +07:00
Mike Cao 05cce05a11 Batch Kafka messages and drop oversized payloads 2026-06-15 22:02:08 -07:00
Mike Cao fa8d8055df Reformatted files with biome. 2025-11-22 22:42:42 -08:00
Mike Cao cdf391d5c2 Refactor part 2: Electric Boogaloo. Standardize way of passing filter parameters. 2025-07-04 01:23:11 -07:00
Mike Cao ee6c68d27c Refactor filter handling for queries. 2025-07-02 01:44:12 -07:00
Mike Cao c969603001 Converted global to globalThis. 2025-04-28 23:05:18 -07:00
Mike Cao 8525188e42 Changed import path. 2025-02-05 15:59:59 -08:00
Mike Cao aaa51e72d3 Adding logging for Kafka. Refactor send method. 2025-01-17 19:56:59 -08:00
Mike Cao 1da81150d5 Added timeout for Kafka producer. 2025-01-17 19:10:00 -08:00
Francis Cao 089137ef8d update kafka ack setting 2025-01-02 10:31:19 -08:00
Francis Cao 702be4e9fb update kafka client config 2024-12-17 20:44:41 -08:00
Francis Cao 8f692a150c update kafka client to take in environement variables to declare SASL/SSL options 2024-12-14 11:49:15 -08:00
Mike Cao 04de691893 Removed custom date format. Use ISO string everywhere. 2024-08-13 22:16:21 -07:00
Mike Cao 72b3b6158a Changed kafka method signature. 2024-07-05 02:29:12 -07:00
Francis Cao a2e4ab7d46 update kafka connection to upstash config 2024-04-15 13:44:16 -07:00
Mike Cao ede658771e Moved code into src folder. Added build for component library. 2023-08-21 02:06:09 -07:00