Skip to content

FE: "Create Connector" button is disabled when user has Connector-level CREATE permission #1622

@Dugong42

Description

@Dugong42

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)

A user with the CREATE permission on the connector resource cannot create a new connector.

Expected behavior

A user with permission to CREATE a connector should be able to create it if it matches the configured permission value (connectName/connectorName).

Ex:

  • value: "connectFoo/.*": allows to create any connector under the connectFoo cluster
  • value: ".*/my-prefix-.*": allows to create any connector prefixed by my-prefix- in any connect cluster

Your installation details

Commit c0e5c21 (main branch)

Configuration:

permissions:
  - resource: connect
    value: "local"
    actions: [ VIEW ]
  - resource: connector
    value: "local/.*"
    actions: [ CREATE ]

Steps to reproduce

  • Configure Kafbat with a Connect cluster
  • Configure authentication
  • Create a role with Connector-level CREATE permission (+ VIEW)
  • Login as a user with this role
  • Navigate to the Kafka Connect tab
  • See that the Create Connector button is disabled

Screenshots

Image

Logs

No response

Additional context

This is a follow-up to #1541, it completes the #1612 issue about the VIEW permission

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions