Skip to content

Fix Kafka integration test SASL configuration#796

Merged
alexluong merged 1 commit intomainfrom
fix/kafka-test-sasl
Mar 25, 2026
Merged

Fix Kafka integration test SASL configuration#796
alexluong merged 1 commit intomainfrom
fix/kafka-test-sasl

Conversation

@alexluong
Copy link
Collaborator

Summary

  • Kafka integration test (TestKafkaPublishIntegration) was always failing because test containers ran without SASL while the test configured SASL PLAIN credentials
  • Configured both compose and testcontainer Kafka with SASL PLAIN auth (admin/admin-secret)
  • Added kafka_jaas.conf mounted into the compose container
  • Updated test consumer reader and topic creation helper to use SASL dialer

Test plan

  • make test passes with zero failures
  • TestKafkaPublishIntegration passes against compose container
  • TestKafkaDestination_Validate passes

🤖 Generated with Claude Code

The Kafka integration test was always failing because the test
configured SASL PLAIN credentials but the Kafka containers ran
with PLAINTEXT listeners (no SASL), causing "Illegal SASL State"
errors.

- Add SASL PLAIN config to compose test-kafka container
- Add kafka_jaas.conf mounted into the container
- Update testcontainer with matching SASL config
- Update test consumer and topic helper to use SASL dialer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Mar 25, 2026 8:06pm
outpost-website Ready Ready Preview, Comment Mar 25, 2026 8:06pm

Request Review

@alexluong alexluong merged commit 34ed001 into main Mar 25, 2026
5 checks passed
@alexluong alexluong deleted the fix/kafka-test-sasl branch March 25, 2026 20:55
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.

2 participants