Prasad
11/15/2024, 2:22 PMPrasad
11/15/2024, 2:23 PMMayank
Xiang Fu
Stephanie Melton
11/18/2024, 5:32 PMStephanie Melton
11/18/2024, 5:36 PMselect * requires the comment at the beginning?
To summarize, the behavior we have observed requires us to send a //comment at the beginning of every query that is not select *, otherwise it throws a 403 error.
Due to this behavior, the presto connection is also not working. Since its behavior is to turn every select * into select col1, col2, col3 when it pushes the query down to pinot.Xiang Fu
Xiang Fu
Prasad
11/18/2024, 8:36 PMXiang Fu
Xiang Fu
pinot.controller-authentication-user
Controller username for basic authentication method.
pinot.controller-authentication-password
Controller password for basic authentication method.Xiang Fu
pinot.extra-http-headers to directly put Auth header thereXiang Fu
Prasad
11/18/2024, 8:40 PMXiang Fu
Stephanie Melton
11/18/2024, 8:42 PMStephanie Melton
11/18/2024, 8:42 PMStephanie Melton
11/18/2024, 8:43 PMXiang Fu
Stephanie Melton
11/21/2024, 8:30 PMXiang Fu
Stephanie Melton
11/21/2024, 8:31 PMStephanie Melton
11/21/2024, 8:54 PMXiang Fu
Xiang Fu
select count(*) from <your-table> work from UI?
2. does normal query say select count(*) from <your-table> work from your application?
3. what query doesn’t work from pinot UI?Stephanie Melton
11/21/2024, 9:41 PMStephanie Melton
11/21/2024, 9:42 PMXiang Fu
<your-table> to a table name from your dbXiang Fu
// thing is interesting, it’s likely some security hole I think. I will check.
Can you please file a github issue for this oneStephanie Melton
11/21/2024, 10:01 PMXiang Fu
Xiang Fu
Stephanie Melton
11/21/2024, 10:03 PMXiang Fu
Xiang Fu
Stephanie Melton
11/21/2024, 10:51 PMStephanie Melton
11/21/2024, 10:51 PMcurl 'https://[REDACTED]/sql' \
-H 'accept: text/plain, */*; q=0.01' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'content-type: application/json; charset=UTF-8' \
-H 'cookie: [REDACTED]' \
-H 'origin: https://[REDACTED]' \
-H 'priority: u=1, i' \
-H 'referer: https://[REDACTED]/' \
-H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \
--data-raw '{"sql":"select count(*) from [REDACTED] limit 10","trace":false,"queryOptions":""}'Xiang Fu
Stephanie Melton
11/26/2024, 4:30 PMStephanie Melton
11/26/2024, 4:31 PMXiang Fu
Xiang Fu
Stephanie Melton
11/26/2024, 8:33 PMXiang Fu
Stephanie Melton
11/26/2024, 8:34 PMXiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
-k to bypass the https checkStephanie Melton
11/26/2024, 8:36 PMStephanie Melton
11/26/2024, 8:37 PMStephanie Melton
11/26/2024, 8:42 PMXiang Fu
Xiang Fu
Stephanie Melton
11/26/2024, 9:03 PMStephanie Melton
11/26/2024, 9:03 PM% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 149 100 40 100 109 3658 9969 --:--:-- --:--:-- --:--:-- 14900Xiang Fu
Xiang Fu
Xiang Fu
Stephanie Melton
11/26/2024, 9:04 PMhost: pinot-controller
port: 9000Xiang Fu
Xiang Fu
curl 'https://localhost:9000/sql' \
-H 'content-type: application/json; charset=UTF-8' \
--data-raw '{"sql":"select count(*) from [REDACTED] limit 10","trace":false,"queryOptions":""}'Stephanie Melton
11/26/2024, 9:09 PMStephanie Melton
11/26/2024, 9:25 PMProcessingException(errorCode:180)Xiang Fu
ACCESS_DENIED_ERROR_CODEXiang Fu
Xiang Fu
Stephanie Melton
11/26/2024, 9:36 PMXiang Fu
Stephanie Melton
11/26/2024, 10:01 PMStephanie Melton
11/26/2024, 10:02 PMStephanie Melton
11/26/2024, 10:05 PMXiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
http://pinot-controller:9000 ?Xiang Fu
Stephanie Melton
11/27/2024, 3:08 PMStephanie Melton
11/27/2024, 3:08 PMStephanie Melton
11/27/2024, 3:11 PMStephanie Melton
11/27/2024, 4:02 PMStephanie Melton
11/27/2024, 4:24 PMStephanie Melton
11/27/2024, 4:25 PMXiang Fu
Xiang Fu