Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mqtt topics scoped by trusted identity #421

Open
Tracked by #512
jfallows opened this issue Sep 16, 2023 · 0 comments
Open
Tracked by #512

Support mqtt topics scoped by trusted identity #421

jfallows opened this issue Sep 16, 2023 · 0 comments
Labels
devx Effects the Developer Experience enhancement New feature or request

Comments

@jfallows
Copy link
Contributor

jfallows commented Sep 16, 2023

Introduce with clause to mqtt routing supporting reference to ${guarded['...'].identity} to implicitly scope topic and reply topic names as needed.

mqtt_server0:
  type: mqtt
  kind: server
  routes:
    - when:
        - publish:
          - topic: event
      exit: mqtt_kafka_proxy0
      with:
        topic: event/${guarded['jwt'].identity}
    - when:
        - publish:
          - topic: command
            reply-to: reply
      exit: mqtt_kafka_proxy0
      with:
        topic: command/${guarded['jwt'].identity}
        reply-to: reply/${guarded['jwt'].identity}
    - when:
        - subscribe:
          - topic: reply
      exit: mqtt_kafka_proxy0
      with:
        topic: reply/${guarded['jwt'].identity}
    - when:
        - session:
          - client-id: *
      exit: mqtt_kafka_proxy0

Note: depends on #420

@jfallows jfallows added the enhancement New feature or request label Sep 16, 2023
@jfallows jfallows changed the title Support mqtt topics implicitly scoped by client identity Support mqtt topics scoped by trusted identity Sep 18, 2023
@vordimous vordimous added needs_triage Unknowns need to be addressed devx Effects the Developer Experience and removed needs_triage Unknowns need to be addressed labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devx Effects the Developer Experience enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants