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

All operations from UI returned 403 Forbidden after enable LOGIN_FORM #2762

Closed
zhanglinqiang opened this issue Oct 17, 2022 · 4 comments
Closed
Labels
status/invalid This doesn't seem right type/bug Something isn't working

Comments

@zhanglinqiang
Copy link

When enable LOGIN_FORM auth type, all operations will failed with 403 forbidden.
After remove AUTH_TYPE,SPRING_SECURITY_USER_NAME,SPRING_SECURITY_USER_PASSWORD config, Everything works fine.

version: both v0.4.0 and master image(2b5dd27) from docker hub have this problem.

compse config:

      - AUTH_TYPE="LOGIN_FORM"
      - SPRING_SECURITY_USER_NAME=admin
      - SPRING_SECURITY_USER_PASSWORD=admin123 

response:

Request URL: http://10.7.181.153:8088/api/clusters/local/topics/tas.data
Request Method: DELETE
Status Code: 403 Forbidden
@zhanglinqiang zhanglinqiang added status/triage Issues pending maintainers triage type/bug Something isn't working labels Oct 17, 2022
@Haarolean
Copy link
Contributor

If you're using the app's REST interface and you have basic authentication enabled, obviously you have to authenticate via API as well.

Here's a tip how to authenticate via REST.

Let me know if you have any further questions.

Closing, not a bug.

@Haarolean Haarolean closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2022
@Haarolean Haarolean added status/invalid This doesn't seem right and removed status/triage Issues pending maintainers triage labels Oct 17, 2022
@Haarolean
Copy link
Contributor

If that's somehow not about REST -- I just checked the following on both master/v0.4.0 tags:

services:
  kafka-ui:
    container_name: kafka-ui
    image: provectuslabs/kafka-ui:v0.4.0
    ports:
      - 8080:8080
    depends_on:
      - kafka0
      - schemaregistry0
      - kafka-connect0
    environment:
      KAFKA_CLUSTERS_0_NAME: local
      KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka0:29092
      KAFKA_CLUSTERS_0_JMXPORT: 9997
      KAFKA_CLUSTERS_0_SCHEMAREGISTRY: http://schemaregistry0:8085
      KAFKA_CLUSTERS_0_KAFKACONNECT_0_NAME: first
      KAFKA_CLUSTERS_0_KAFKACONNECT_0_ADDRESS: http://kafka-connect0:8083


      AUTH_TYPE: "LOGIN_FORM"
      SPRING_SECURITY_USER_NAME: admin
      SPRING_SECURITY_USER_PASSWORD: pass

Works perfectly fine.

@umiro
Copy link

umiro commented Jan 28, 2023

I had the same issue not being able to do anything. Removing the quotation marks solves the problem.

-      - AUTH_TYPE="LOGIN_FORM"
+      - AUTH_TYPE=LOGIN_FORM

@zhanglinqiang
Copy link
Author

I had the same issue not being able to do anything. Removing the quotation marks solves the problem.

-      - AUTH_TYPE="LOGIN_FORM"
+      - AUTH_TYPE=LOGIN_FORM

Great! This solves my problem. Thanks a lot @moeshinyo .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/invalid This doesn't seem right type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants