Skip to content

feat(RELEASE-2111): add kafka publish function#654

Merged
johnbieren merged 1 commit intokonflux-ci:mainfrom
johnbieren:release2111
Feb 12, 2026
Merged

feat(RELEASE-2111): add kafka publish function#654
johnbieren merged 1 commit intokonflux-ci:mainfrom
johnbieren:release2111

Conversation

@johnbieren
Copy link
Collaborator

This commit adds a Kafka directory and adds a python file to it that will publish messages through Kafka. It only accepts json files as content to send, as that is what we do for our advisories. The credentials for it are read from files. Finally, it allows you to pass headers.

It also adds a consumer.py file. This will not be used in production, but it can be used as a helper when trying to consume kafka messages locally, as there is no datagrepper for kafka.

Finally, unit test files are added for both.

Assisted-By: Cursor

@snyk-io
Copy link

snyk-io bot commented Feb 11, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

This commit adds a Kafka directory and adds a python file to it that
will publish messages through Kafka. It only accepts json files as
content to send, as that is what we do for our advisories. The
credentials for it are read from files. Finally, it allows you to pass
headers.

It also adds a consumer.py file. This will not be used in production,
but it can be used as a helper when trying to consume kafka messages
locally, as there is no datagrepper for kafka.

Finally, unit test files are added for both.

Assisted-By: Cursor

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
@johnbieren johnbieren marked this pull request as ready for review February 11, 2026 19:55
@johnbieren johnbieren added this pull request to the merge queue Feb 12, 2026
Merged via the queue into konflux-ci:main with commit fb266c6 Feb 12, 2026
10 checks passed
@johnbieren johnbieren deleted the release2111 branch February 12, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants