Closed vuxuanlai closed 3 years ago
@tchiotludo please help me to resolve this issue. Thanks.
It don't work don't help a lot :) What is exactly your issue.
First thing I see, you need to enable security :
micronaut:
security:
enabled: true
The same status.
I used user/pass
to login on UI page. However I still can't login.
must be the configuration files that is invalid. Please remove all the default value from the yaml and post here the only thing you update. Please provide also information that can help : deployment method (docker, jar, ...), akhq version, ....
You should understand that I'm blindness and only a big yaml with all defaults values can't be help me ...
I changed file application.yml
as below:
micronaut:
...
server:
context-path: "/"
...
akhq:
...
connections:
my-cluster-plain-text:
properties:
bootstrap.servers: "kafka-server:9092"
...
security:
...
basic-auth:
- username: user
password: d74ff0ee8da3b9806b18c877dbf29bbde50b5bd8e4dad7a3a725000feb82e8f1
...
...
oidc:
enabled: false
...
and I run it on docker with cmd:
docker run -d \
-p 8080:8080 \
-v /tmp/application.yml:/app/application.yml \
tchiotludo/akhq:latest
Hi, I resolved the problem. I updated my configure as below
micronaut:
security:
enabled: true
endpoints:
login:
enabled: true
logout:
enabled: true
akhq:
connections:
kafkanonprod:
properties:
bootstrap.servers: kafka-server:9092"
security:
default-group: default
groups:
- name: admin
roles:
- topic/read
- topic/insert
- topic/delete
- topic/config/update
- node/read
- node/config/update
- topic/data/read
- topic/data/insert
- topic/data/delete
- group/read
- group/delete
- group/offsets/update
- registry/read
- registry/insert
- registry/update
- registry/delete
- registry/version/delete
- acls/read
- connect/read
- connect/insert
- connect/update
- connect/delete
- connect/state/update
attributes:
topics-filter-regexp: ".*"
- name: default
basic-auth:
- username: admin # Username
password: d74ff0ee8da3b9806b18c877dbf29bbde50b5bd8e4dad7a3a725000feb82e8f1 # Password in sha256
groups: # Groups for the user
- admin
Hi, I can not login to AKHQ UI via basic-auth. The following is my configure: