You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to introduce a configuration property for Hono-based components to prepend a custom prefix to Kafka topic names. Currently, Hono topics follow a fixed naming scheme (e.g. hono.event.<tenant>). In some environments (e.g. multi-tenant or multi-cluster deployments), it is desirable to have an additional prefix (such as myPrefix.hono.event.<tenant>).
We propose adding a configuration option (e.g. hono.kafka.topicPrefix) that can be set via Quarkus or environment variables. All components should then consistently apply this prefix when creating or subscribing to Kafka topics.
Key Points
Add a new config property (e.g. hono.kafka.topicPrefix).
Apply this property across components (adapter, command router, auth service, registry, etc.) so that all Kafka producers/consumers use the custom prefix.
Maintain backwards compatibility: if no prefix is set, the existing naming (e.g. hono.telemetry.<tenant>) should remain.
Rationale
Allows running multiple Hono-based environments in the same Kafka cluster.
Simplifies isolation or naming consistency across teams or tenants.
The text was updated successfully, but these errors were encountered:
You can certainly prefix the tenant ID, but that effectively bakes “environment” or “deployment” details right into the tenant name. In many cases, the tenant ID is managed externally or needs to remain “clean” (e.g. it is referenced in device registries, authorization rules, IoT management tools, etc.). A dedicated configuration property for a global prefix keeps the environment-specific or cluster-specific detail separate from tenant identities and ensures that Hono’s components can uniformly apply the prefix without forcing every tenant ID to include it.
Thanks for following up! I've already created a fork and am currently working on a PR. Once I finish making the necessary changes and verifying everything works as expected, I'll open the PR.
Issue Description
We would like to introduce a configuration property for Hono-based components to prepend a custom prefix to Kafka topic names. Currently, Hono topics follow a fixed naming scheme (e.g.
hono.event.<tenant>
). In some environments (e.g. multi-tenant or multi-cluster deployments), it is desirable to have an additional prefix (such asmyPrefix.hono.event.<tenant>
).We propose adding a configuration option (e.g. hono.kafka.topicPrefix) that can be set via Quarkus or environment variables. All components should then consistently apply this prefix when creating or subscribing to Kafka topics.
Key Points
hono.kafka.topicPrefix
).hono.telemetry.<tenant>
) should remain.Rationale
Allows running multiple Hono-based environments in the same Kafka cluster.
Simplifies isolation or naming consistency across teams or tenants.
The text was updated successfully, but these errors were encountered: