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

rpk topic delete returns authorization error #3079

Closed
travisdowns opened this issue Nov 27, 2021 · 0 comments · Fixed by #3413
Closed

rpk topic delete returns authorization error #3079

travisdowns opened this issue Nov 27, 2021 · 0 comments · Fixed by #3413
Labels
area/kafka good first issue Good for newcomers kind/bug Something isn't working

Comments

@travisdowns
Copy link
Member

travisdowns commented Nov 27, 2021

Version & Environment

Redpanda version: (use rpk version): dev at SHA d90114b

What went wrong?

Deleting a non-existent topic produces an "authorization error".

$ rpk --brokers <localhost>:9092 topic delete xyz
TOPIC  STATUS
xyz    CLUSTER_AUTHORIZATION_FAILED: Cluster authorization failed.

This is on a totally vanilla cluster created only with rpk config bootstrap, and no other settings changed.

The same error occurs with kcl so I think we can assume it is RP returning this error.

What should have happened instead?

An error about the topic not existing.

How to reproduce the issue?

  1. set up any vanilla RP cluster
  2. run rpk --brokers <broker IP>:<port> topic delete xyz (where xyz is an arbitrary topic name that doesn't exist)
  3. profit
@travisdowns travisdowns added the kind/bug Something isn't working label Nov 27, 2021
@dotnwat dotnwat added area/kafka good first issue Good for newcomers labels Dec 1, 2021
dotnwat added a commit to dotnwat/redpanda that referenced this issue Jan 7, 2022
This was being incorrectly mapped to an authorization failure instead of
the kafka error corresponding to a unknown topic or partition.

Fixes: redpanda-data#3079
Fixes: redpanda-data#3382

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
dotnwat added a commit to dotnwat/redpanda that referenced this issue Jan 7, 2022
Controller topic delete error code incorrectly mapped to an
authorization failure instead of the kafka error corresponding to a
unknown topic or partition.

Fixes: redpanda-data#3079
Fixes: redpanda-data#3382

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
dotnwat added a commit to dotnwat/redpanda that referenced this issue Mar 1, 2022
Controller topic delete error code incorrectly mapped to an
authorization failure instead of the kafka error corresponding to a
unknown topic or partition.

Fixes: redpanda-data#3079
Fixes: redpanda-data#3382

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
(cherry picked from commit 312e767)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kafka good first issue Good for newcomers kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants