Skip to content

Issue referencing guard in asyncapi binding #1215

@ankitk-me

Description

@ankitk-me

Describe the bug
asyncapi binding generate & inject guarded config in route based on Security schema available in http-asyncapi spec. It expect the guard to be named as String.format("%s:jwt0", config.namespace) for example: zilla-http-kafka-asyncapi:jwt0.

However, zilla schema restricts naming of guard with a : in the name. So zilla instance crash with mentioned error:

[11,4][/guards/zilla-http-kafka-asyncapi:jwt0] The object must not have a property whose name is "zilla-http-kafka-asyncapi:jwt0".
error
io.aklivity.zilla.runtime.engine.config.ConfigException: Engine configuration failed
        ...
        at io.aklivity.zilla.runtime.command/io.aklivity.zilla.runtime.command.internal.ZillaMain.main(ZillaMain.java:34)
Caused by: io.aklivity.zilla.runtime.engine.config.ConfigException: [11,4][/guards/zilla-http-kafka-asyncapi:jwt0] The object must not have a property whose name is "zilla-http-kafka-asyncapi:jwt0".
        ... 8 more

To Reproduce
Steps to reproduce the behavior:

  1. Start zilla with guard config as zilla-http-kafka-asyncapi:jwt0.
  2. See above mentioned error

Expected behavior
Zilla should be able to handle asyncapi binding with guard enabled.

Screenshots

Issue:
Screenshot 2024-08-27 at 11 57 37 AM

Proposed Fix:
Screenshot 2024-08-27 at 12 16 04 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions