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

Basic authentication for application-local.yml #11

Open
nkzjfuentes opened this issue Apr 17, 2024 · 1 comment
Open

Basic authentication for application-local.yml #11

nkzjfuentes opened this issue Apr 17, 2024 · 1 comment

Comments

@nkzjfuentes
Copy link

Hello,

Hope you're well, I'm trying to setup kafka-ui basic authentication, however, I don't really know how to "extrapolate" this from docker compose files or k8s as this is being setup as environment variables.

Setup is being configured in Ubuntu 22.04 (without docker or k8s files, just going through java)
/bin/java -Dspring.config.additional-location=/opt/kafka-ui/application-local.yml --add-opens java.rmi/javax.rmi.ssl=ALL-UNNAMED -jar /opt/kafka-ui/kafka-ui-api-v0.7.2.jar

  AUTH_TYPE: "LOGIN_FORM"
  SPRING_SECURITY_USER_NAME: admin
  SPRING_SECURITY_USER_PASSWORD: pass

Could you please provide a basic working "application-local.yml" working with the mentioned variables so we can have a reference to work with?

Thanks in advance,
Regards.

@Haarolean
Copy link
Contributor

Hi,

please note that this repo is not maintained (#4255), but I'd happy to answer your further questions here: https://github.com/kafbat/kafka-ui

Regarding this question, the config would look like this:

auth:
  type: OAUTH2
spring:
  security:
    user:
      name: aa
      password: bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants