hi!! I’m trying to add authentication to my pinot ...
# troubleshooting
r
hi!! I’m trying to add authentication to my pinot instance and it seems that after adding authentication I’m not able to perform queries from the controller UI because of a 403. Is there any way to add authentication using the UI?
r
Exactly @Mayank!! I followed that guide. In fact the login page is shown and I can log in without problems
m
👍
r
the issue is in UI when I try to perform a query
m
Oh, sorry, I thought you were confirming that you find a solution.
r
Checking all requests I see that from the UI all calls includes the
Authorization: Basic (my_token)
header but it isn’t included when a query is performed
I have verified calling directly to the
/sql
endpoint adding the header manually and it worked, I think that it is a UI problem
m
I take it you have setup same username/password on the controller as well as broker?
r
yep
My controller config:
Copy code
controller.admin.access.control.factory.class=org.apache.pinot.controller.api.access.BasicAuthAccessControlFactory
controller.admin.access.control.principals=MY_USERNAME
controller.admin.access.control.principals.oscilar.password=MYPASSWORD
controller.segment.fetcher.auth.token=Basic MYTOKEN (calculated as base64(MY_USERNAME:MYPASSWORD))
My broker config:
Copy code
pinot.broker.access.control.class=org.apache.pinot.broker.broker.BasicAuthAccessControlFactory
pinot.broker.access.control.principals=MY_USENAME
pinot.broker.access.control.principals.oscilar.password=MYPASSWORD
k
I dont think we have hooked up the UI for auth yet
r
ok! that makes sense compared to what I have seen
thanks!