tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.39k stars 655 forks source link

Black screen after updating to 0.25.1 (TypeError: t.resources is undefined) #1976

Open panphg opened 2 days ago

panphg commented 2 days ago

After updating from 0.25.0 to 0.25.1 we get a black screen when trying to access AKHQ.

In the browser's debbuger we see the error: TypeError: t.resources is undefined grafik

AlexisSouquiere commented 2 days ago

Can you show the groups and roles parts of your application.yml ?

panphg commented 2 days ago
  security:
      default-group: no-access  # Default groups for all the user even unlogged user
      # Groups definition
      roles:
        no-access:
          - resources: [ ]
            actions: [ ]
        reader:
          - resources: [ "TOPIC", "TOPIC_DATA", "CONSUMER_GROUP", "CONNECT_CLUSTER", "CONNECTOR", "SCHEMA", "NODE", "ACL", "KSQLDB" ]
            actions: [ "READ" ]
          - resources: [ "TOPIC", "NODE" ]
            actions: [ "READ_CONFIG" ]
        topic-admin:
          - resources: [ "TOPIC", "TOPIC_DATA" ]
            actions: [ "READ", "CREATE", "UPDATE", "DELETE", "READ_CONFIG", "ALTER_CONFIG" ]
        topic-data-admin:
          - resources: [ "TOPIC", "TOPIC_DATA" ]
            actions: [ "READ", "CREATE", "DELETE" ]
        consumer-group-admin:
          - resources: [ "CONSUMER_GROUP" ]
            actions: [ "READ", "UPDATE_OFFSET", "DELETE", "DELETE_OFFSET" ]
        connect-cluster-reader:
          - resources: [ "CONNECT_CLUSTER" ]
            actions: [ "READ" ]
        connector-admin:
          - resources: [ "CONNECTOR" ]
            actions: [ "READ", "CREATE", "DELETE", "UPDATE_STATE" ]
        schema-admin:
          - resources: [ "SCHEMA" ]
            actions: [ "READ", "CREATE", "UPDATE", "DELETE", "DELETE_VERSION" ]
        node-admin:
          - resources: [ "NODE" ]
            actions: [ "READ", "READ_CONFIG", "ALTER_CONFIG" ]
        acl-reader:
          - resources: [ "ACL" ]
            actions: [ "READ" ]
        ksqldb-admin:
          - resources: [ "KSQLDB" ]
            actions: [ "READ", "EXECUTE" ]
      groups:
        admin:
          - role: node-admin
          - role: topic-admin
          - role: topic-data-admin
          - role: consumer-group-admin
          - role: connect-cluster-reader
          - role: connector-admin
          - role: schema-admin
          - role: node-admin
          - role: acl-reader
          - role: ksqldb-admin
        topic-reader:
          - role: reader
        no-access:
          - role: no-access
      # OIDC configuration
      oidc:
        enabled: true
        providers:
          azure:
            label: "Login with Azure"
            username-field: preferred_username
            groups-field: roles
            default-group: topic-reader
            groups:
              - name: oidc-admin-group
                groups:
                  - admin
            users:
              - username: user1@company.com
                groups:
                  - admin
              - username: user2@company.com
                groups:
                  - admin
              # more admin users with the same configuration