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

Too big cookie issue when using kafkactl with too much namespaces access #482

Open
adriencalime opened this issue Nov 20, 2024 · 0 comments · May be fixed by #500
Open

Too big cookie issue when using kafkactl with too much namespaces access #482

adriencalime opened this issue Nov 20, 2024 · 0 comments · May be fixed by #500
Assignees
Labels
bug Something isn't working

Comments

@adriencalime
Copy link
Collaborator

adriencalime commented Nov 20, 2024

Describe the bug

When you have a lot of namespaces linked to your account and you want to execute a kafkactl command line, you will receive an exception saying ''too big cookie". This issue happened when the API "/api-resources" is called.

Indeed the cookie will be something like:

{
  "roleBindings": [
    {
      "namespace": "namespace1",
      "verbs": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "resourceTypes": [
        "schemas",
        "schemas/config",
        "topics",
        "topics/import",
        "topics/delete-records",
        "connectors",
        "connectors/import",
        "connectors/change-state",
        "connect-clusters",
        "connect-clusters/vaults",
        "acls",
        "consumer-groups/reset",
        "streams"
      ]
    },
...
    {
      "namespace": "namespaceN",
      "verbs": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "resourceTypes": [
        "schemas",
        "schemas/config",
        "topics",
        "topics/import",
        "topics/delete-records",
        "connectors",
        "connectors/import",
        "connectors/change-state",
        "connect-clusters",
        "connect-clusters/vaults",
        "acls",
        "consumer-groups/reset",
        "streams"
      ]
    },

To Reproduce

With admin access, ensure you have more than 40 namespaces attached to your account and execute a simple command line like kafkactl get ns.

Expected behavior

We would like to not have the issue and receive the normal answer from the command line execution.

Environment (please complete the following information):

  • Kafkactl distribution and version v1.12.2
  • Ns4Kafka version: 1.12.0
  • Kafka broker type and version : Confluent Cloud broker

Steps taken to try and solve the problem

To solve this issue, we have to update the way we are managing ressources for which we have access.

@adriencalime adriencalime added the bug Something isn't working label Nov 20, 2024
@ThomasCAI-mlv ThomasCAI-mlv self-assigned this Dec 5, 2024
@ThomasCAI-mlv ThomasCAI-mlv linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants