Skip to content

Fix command-service KafkaTemplate bean wiring#154

Merged
igorsatsyuk merged 9 commits into
mainfrom
fix/kafka-producer-config
May 24, 2026
Merged

Fix command-service KafkaTemplate bean wiring#154
igorsatsyuk merged 9 commits into
mainfrom
fix/kafka-producer-config

Conversation

@igorsatsyuk
Copy link
Copy Markdown
Owner

Description

  • adds explicit KafkaTemplate<String, AuditEvent> configuration in KafkaProducerConfig
  • configures producer bootstrap and serializer settings explicitly for command-service
  • resolves startup failure where AuditCommandPublisher could not autowire typed KafkaTemplate

Testing

  • command-service startup verified after fix
  • auth/login and command publish path rechecked in local runtime flow used by demo screenshots

Copilot AI review requested due to automatic review settings May 24, 2026 15:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an explicit, strongly-typed KafkaTemplate<String, AuditEvent> (and backing ProducerFactory) to command-service to resolve a startup autowiring failure in AuditCommandPublisher when Spring Boot’s default KafkaTemplate bean is not type-compatible.

Changes:

  • Introduces KafkaProducerConfig to register ProducerFactory<String, AuditEvent> and KafkaTemplate<String, AuditEvent> beans.
  • Sets producer bootstrap server and serializer configuration in the new producer factory.
  • Disables JSON type headers for produced events.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@igorsatsyuk igorsatsyuk requested a review from Copilot May 24, 2026 16:48
@igorsatsyuk igorsatsyuk review requested due to automatic review settings May 24, 2026 16:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

…erviceIntegrationTest meta-annotation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

…verrides

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

… producer-specific overrides

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@igorsatsyuk igorsatsyuk self-assigned this May 24, 2026
@igorsatsyuk igorsatsyuk merged commit c65b45d into main May 24, 2026
9 checks passed
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