Alice
04/04/2022, 10:27 AMMayank
admin
in the property. However, your settings in the conf seem correct. Also, the exact same configs work in the integration test, so this is a bit confusing. My guess is there is something else going on in your setup that is causing the property to be not set?Alice
04/05/2022, 3:31 AMMayank
Alexander Pucher
04/05/2022, 11:45 PMAlice
04/06/2022, 3:32 AMAlice
04/06/2022, 5:56 AMAlexander Pucher
04/06/2022, 7:37 AMbroker.conf
pinot.broker.access.control.class=org.apache.pinot.broker.broker.BasicAuthAccessControlFactory
pinot.broker.access.control.principals=admin,user
pinot.broker.access.control.principals.admin.password=verysecret
pinot.broker.access.control.principals.user.password=secret
(3) bin/pinot-admin.sh StartBroker -configFileName ./broker.conf -zkAddress localhost:2123 -clusterName QuickStartCluster
(4) curl localhost:8099/query/sql -XPOST -d '{"sql":"SELECT * FROM baseballStats"}
returns 180 (reject, expected)
(5) curl localhost:8099/query/sql -XPOST -d '{"sql":"SELECT * FROM baseballStats"}' -H 'Authorization: Basic YWRtaW46dmVyeXNlY3JldA=='
returns results (success, expected)
In order to debug this would you mind sharing (a) which OS/platform you’re on, and (b) your full broker config file?Alice
04/06/2022, 8:00 AM