spareslant opened a new issue, #10651: URL: https://github.com/apache/pinot/issues/10651
Hi, In my test environment, I am trying to run Pinot with some environmental variables set already. Following steps were followed: ======================= `export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_PRINCIPALS=admin` `export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_PRINCIPALS_ADMIN_PASSWORD=admin123` `export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_FACTORY_CLASS="org.apache.pinot.controller.api.access.BasicAuthAccessControlFactory"` `./conf/pinot-controller.conf` file contents: ---------------------------------- ``` pinot.service.role=CONTROLLER pinot.cluster.name=pinot-quickstart pinot.zk.server=localhost:2191 pinot.set.instance.id.to.hostname=true controller.vip.host=worker1.virtual.machine controller.host=worker1.virtual.machine controller.data.dir=/tmp/pinot/data/controller controller.tls.keystore.path=/root/apache-pinot-0.12.0-bin/certs/pinot-keystore controller.tls.keystore.password=pinot123 controller.tls.client.auth=false controller.access.protocols=https controller.access.protocols.https.port=10000 controller.broker.protocol=https controller.vip.protocol=https controller.vip.port=10000 ``` Start Zookeeper command: --------------------------- ` bin/pinot-admin.sh StartZookeeper kPort 2191` Start controller command: -------------------------- `bin/pinot-admin.sh StartController -configFileName ./conf/pinot-controller.conf` Expected Outcome: -------------------- Controller starts successfully. And I am able to browse its UI at https://localhost:10000/ . But environment variables are also set and it should ask me username and password. But it never gives that username/password screen. More Info: --------------- If I use following three lines in `./conf/pinot-controller.conf` then username password screen appears fine. ``` controller.admin.access.control.principals=admin controller.admin.access.control.principals.admin.password=admin123 controller.admin.access.control.factory.class=org.apache.pinot.controller.api.access.BasicAuthAccessControlFactory ``` Leaving `controller.admin.access.control.factory.class` option without `principals` options in conf file does not work. It gives exception while starting controller. (Principals are set in environment variables.) Additional Info: --------------- Pinot version: apache-pinot-0.12.0 java version: ``` openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment 18.9 (build 11.0.3+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7, mixed mode, sharing) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
