Skip to content

fix(OPENFRAM-002-4): CU-86akdypzd Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings - #2324

Draft
flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-002-4-80fe80d4-c1688cba
Draft

flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-002-4-80fe80d4-c1688cba

Conversation

@flamingo

@flamingo flamingo Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Closes findings from rule OPENFRAM-002-4 — Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings.

Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.

# Fix confidence Finding Location
1 🔴 45 low — review closely Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings configs/base/openframe-client.yml:42

What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.


Run: https://product-hub.flamingo.so/admin/code-review
Run id: c1688cba-c9bc-481b-b917-2b7f45403ab4

Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.

ClickUp task: CU-86akdypzd OpenFrame Kafka config hardcoding fixes (5 PRs)

…frame.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings

@flamingo flamingo Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 What this fix changed, finding by finding

1 finding(s) fixed in this draft — 1 explained inline on the diff; 1 low-confidence hunk(s) need close review before merging.

@@ -41,15 +41,15 @@ spring:
enabled: true
bindings:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🔴 Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings

In spring.cloud.stream.bindings (machineConnectedConsumer-in-0, machineDisconnectionConsumer-in-0, toolConnectionConsumer-in-0), replaced hardcoded literal destination strings with property placeholders ${openframe.oss-tenant.kafka.topics.inbound.<name>.name}, and added a corresponding openframe.oss-tenant.kafka.topics.inbound section (machine-connected, machine-disconnected, tool-connection) at the bottom of the file preserving the original literal subject values. This mirrors the outbound topic hierarchy already present. Risk/unverified: I do not have visibility into openframe-stream.yml/openframe-management.yml to confirm the exact key names (machine-connected, machine-disconnected, tool-connection) match the naming convention used by sibling services under openframe.oss-tenant.kafka.topics.inbound.*.name; if sibling configs use different key names for these same logical topics, this introduces a mismatch and the keys would need renaming to align. A complete fix requires cross-checking those sibling files.

🤖 Prompt for AI agents
In configs/base/openframe-client.yml around line 42, review and complete this code-review fix: Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings.
What the draft fix changed: In `spring.cloud.stream.bindings` (machineConnectedConsumer-in-0, machineDisconnectionConsumer-in-0, toolConnectionConsumer-in-0), replaced hardcoded literal destination strings with property placeholders `${openframe.oss-tenant.kafka.topics.inbound.<name>.name}`, and added a corresponding `openframe.oss-tenant.kafka.topics.inbound` section (machine-connected, machine-disconnected, tool-connection) at the bottom of the file preserving the original literal subject values. This mirrors the `outbound` topic hierarchy already present. Risk/unverified: I do not have visibility into `openframe-stream.yml`/`openframe-management.yml` to confirm the exact key names (`machine-connected`, `machine-disconnected`, `tool-connection`) match the naming convention used by sibling services under `openframe.oss-tenant.kafka.topics.inbound.*.name`; if sibling configs use different key names for these same logical topics, this introduces a mismatch and the keys would need renaming to align. A complete fix requires cross-checking those sibling files.
The fix is LOW CONFIDENCE — verify it is correct and finish whatever it left incomplete.

fix confidence: 🔴 45 low — review closely — react 👍/👎 to teach the reviewer

@flamingo flamingo Bot changed the title fix(OPENFRAM-002-4): Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings fix(OPENFRAM-002-4): CU-86akdypzd Kafka topic name hardcoded instead of using openframe.oss-tenant.kafka.topics hierarchy in openframe-client.yml stream bindings Sep 7, 2026
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.

0 participants