Skip to content

Support implicit mqtt topic rewrite scoped by trusted identity #421

Closed

Description

@jfallows

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

Activity

  1. added
    enhancement
    on Sep 16, 2023
  2. changed the title [-]Support `mqtt` topics implicitly scoped by client identity[/-] [+]Support `mqtt` topics scoped by trusted identity[/+] on Sep 18, 2023
  3. added
    needs_triage
    devx
    and removed
    needs_triage
    on Aug 21, 2024
  4. changed the title [-]Support `mqtt` topics scoped by trusted identity[/-] [+]Support implicit `mqtt` topic rewrite scoped by trusted identity[/+] on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    devxenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions