provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.86k stars 1.19k forks source link

When using ldap login, the login page css missing #4493

Open polingsky opened 3 weeks ago

polingsky commented 3 weeks ago

Issue submitter TODO list

Describe the bug (actual behavior)

I set the auth config to ldap, but the login page css will want to download from internet In our environment, I can not access internet, so the login page will broken But when I set auth config to basic auth, the login page css will normal

My ldap config export AUTH_TYPE='LDAP' export SPRING_LDAP_URLS='ldap://x.x.x.x:389' export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

Expected behavior

The ldap login page will same as basic auth login path

Your installation details

  1. kafka-ui-api-v0.7.1.jar
  2. export AUTH_TYPE='LDAP' export SPRING_LDAP_URLS='ldap://x.x.x.x:389' export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

export SERVER_PORT='8087' export KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL='SASL_PLAINTEXT' export KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS='app-1.org.net:6667,app-2.org.net:6667,app-3.org.net:6667' export KAFKA_CLUSTERS_0_ZOOKEEPER='app-1.org.net:2182,app-2.org.net:2182,app-3.org.net:2182' export KAFKA_CLUSTERS_0_PROPERTIES_SASL_KERBEROS_SERVICE_NAME='kafka' export KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG='com.sun.security.auth.module.Krb5LoginModule required serviceName="kafka" useKeyTab=true storeKey=true keyTab="/etc/security/keytabs/kafka.service.keytab" principal="kafka/app-2.org.net@ORG.NET";' export KAFKA_CLUSTERS_0_METRICS_PORT='9999'

Steps to reproduce

Modify

export AUTH_TYPE="LOGIN_FORM" export SPRING_SECURITY_USER_NAME="admin" export SPRING_SECURITY_USER_PASSWORD="admin"

to

export AUTH_TYPE='LDAP' export SPRING_LDAP_URLS='ldap://x.x.x.x:389' export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net' export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

Screenshots

kafka-ui-ldap-login

Logs

No response

Additional context

No response

github-actions[bot] commented 3 weeks ago

Hello there polingsky! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀