Skip to content

There was an error updating the application config #461

@rahul-anbalagan

Description

@rahul-anbalagan

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

When trying to create a cluster configuration via jar file, it gives "There was an error updating the application config" even though the rbac is setup properly.

Expected behavior

No response

Your installation details

Java version: 17
App version: 28677a9
App config:

logging:
  level:
    root: INFO
    io.kafbat.ui: DEBUG
    #org.springframework.http.codec.json.Jackson2JsonEncoder: DEBUG
    #org.springframework.http.codec.json.Jackson2JsonDecoder: DEBUG
    reactor.netty.http.server.AccessLog: INFO
    org.springframework.security: DEBUG

#server:
#  port: 8080 #- Port on which the app will run.

#spring.profiles.active: local

spring:
  jmx:
    enabled: true


dynamic.config.enabled: true

oauth2:
  ldap:
    activeDirectory: false
    activeDirectory.domain: domain.com

auth:
#  type: DISABLED
  type: OAUTH2
  oauth2:
    client:
      google:
        provider: google
        clientId: 6922.apps.googleusercontent.com # REPLACE WITH CLIENT ID
        clientSecret: GOCSPX-KYIdU # REPLACE WITH CLIENT SECRET
        user-name-attribute: email
        custom-params:
          type: google
          allowedDomain: hyperface.co


rbac:
  roles:
    - name: "admin"
      clusters:
        - ".*"
      subjects:
        - provider: oauth_google
          type: user
          value: "[email protected]" # REPLACE WITH ADMIN USER

      permissions:
        - resource: applicationconfig
          actions: all

        - resource: clusterconfig
          actions: all

        - resource: topic
          value: ".*"
          actions: all

        - resource: consumer
          value: ".*"
          actions: all

        - resource: schema
          value: ".*"
          actions: all

        - resource: connect
          value: ".*"
          actions: all

        - resource: ksql
          actions: all

        - resource: acl
          actions: all

        - resource: audit
          actions: all

    - name: "view-only"
      clusters:
        - ".*"
      subjects:
        - provider: oauth_google
          type: domain
          value: "hyperface.co" #REPLACE WITH VIEW USER
      permissions:
        - resource: clusterconfig
          actions: [ "view" ]

        - resource: topic
          value: ".*"
          actions:
            - VIEW
            - MESSAGES_READ

        - resource: consumer
          value: ".*"
          actions: [ view ]

        - resource: schema
          value: ".*"
          actions: [ view ]

        - resource: connect
          value: ".*"
          actions: [ view ]

        - resource: acl
          actions: [ view ]

Steps to reproduce

  1. Clone main branch
  2. setup google oauth with above mentioned roles.
  3. Try creating a new kafka cluster config

Screenshots

No response

Logs

[Uploading message.txt…](Stack trace)

Additional context

No response

Metadata

Metadata

Assignees

Labels

area/rbacRelated to Role Based Access Control featurescope/backendRelated to backend changesstatus/triage/completedAutomatic triage completedtype/bugSomething isn't workingtype/regressionSomething that has been previously fixed but got broken again

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions