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

No schema-values when producing Events [0.25.0] #1783

Closed
yannickpoggel opened this issue May 22, 2024 · 6 comments · Fixed by #1804
Closed

No schema-values when producing Events [0.25.0] #1783

yannickpoggel opened this issue May 22, 2024 · 6 comments · Fixed by #1804
Assignees
Labels
enhancement New feature or request registry Kafka Schema Registry

Comments

@yannickpoggel
Copy link

yannickpoggel commented May 22, 2024

When trying to produce events to a topic, the auto-completion / dropdown of "Value schema" is empty in the new version of akhq.

akhq0250

In the 0.24.0 release we can see the list of subjects in the schema-registry:
akhq0240

We are using AVRO-Schemas with confluentinc/cp-schema-registry:7.5.3

@AlexisSouquiere
Copy link
Collaborator

Any logs (from AKHQ or from the browser console) ?
Can you share your application.yml to check for config issue with the new RBAC and permissions for the registry ?

@AlexisSouquiere AlexisSouquiere added the wait for reply Need more information from reporter label May 22, 2024
@yannickpoggel
Copy link
Author

yannickpoggel commented May 22, 2024

There are no errors in the browser console or akhq-logs. The call to /schemas is responding all schemas in the registry.

application.yml

akhq:
    connections:
      dev-cluster:
        properties:
          bootstrap.servers: "***:9092"
        schema-registry:
          url: "http://***.svc.cluster.local:8081"
          type: "confluent"
    security:
      enabled: true
      default-group: no-roles
      roles:
        node-read:
          - resources: [ "NODE" ]
            actions: [ "READ", "READ_CONFIG" ]
        topic-read:
          - resources: [ "TOPIC", "TOPIC_DATA" ]
            actions: [ "READ" ]
          - resources: [ "TOPIC" ]
            actions: [ "READ_CONFIG" ]
        topic-admin:
          - resources: [ "TOPIC", "TOPIC_DATA" ]
            actions: [ "READ", "CREATE", "DELETE" ]
          - resources: [ "TOPIC" ]
            actions: [ "UPDATE", "READ_CONFIG", "ALTER_CONFIG" ]
        registry-read:
          - resources: [ "SCHEMA" ]
            actions: [ "READ" ]
        registry-admin:
          - resources: [ "SCHEMA" ]
            actions: [ "READ", "CREATE", "UPDATE", "DELETE", "DELETE_VERSION" ]
        group-read:
          - resources: [ "CONSUMER_GROUP" ]
            actions: [ "READ" ]
      groups:
        dev-reader:
          - role: node-read
            clusters: [ "dev-cluster", "test-cluster" ]
          - role: topic-read
            clusters: [ "dev-cluster", "test-cluster" ]
          - role: registry-read
            clusters: [ "dev-cluster", "test-cluster" ]
          - role: group-read
            clusters: [ "dev-cluster", "test-cluster" ]
        dev-admin:
          - role: topic-admin
            clusters: [ "dev-cluster", "test-cluster" ]
          - role: registry-admin
            clusters: [ "dev-cluster", "test-cluster" ]
      basic-auth:
        - username: dev
          password: ***
          groups:
            - dev-reader
            - dev-admin

@AlexisSouquiere
Copy link
Collaborator

Can you try to create a subject following the TopicNameStrategy ? myTopic --> myTopic-value
I quickly checked and we are following the TopicNameStrategy to build the key and value subject lists. This is probably why you don't see the SampleSubject

We probably need to add the other subjects in the 2 dropdowns to support the other naming strategies

@yannickpoggel
Copy link
Author

With TopicNameStrategy it works! Unfortunately we have a custom namingStrategy because we have some special requirements.

@AlexisSouquiere AlexisSouquiere added enhancement New feature or request registry Kafka Schema Registry and removed wait for reply Need more information from reporter labels May 22, 2024
@AlexisSouquiere
Copy link
Collaborator

Got it. It's definitely something that we can fix

@yannickpoggel
Copy link
Author

Thank you very much for your fast support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request registry Kafka Schema Registry
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants