pingcap / pingcap/tidb

Introduce access control for http restful API

Open
#48,336 1 comment 0 reactions 1 assignee Claimed by @bb7133 View on GitHub
sig/sql-infra type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

Using API like "curl http://{TiDBIP}:10080/db-table/{tableID}" "curl http://{TiDBIP}:10080/mvcc/key/{db}/{table}/{handle}" can walk around the access control system of TiDB and grab table's data.

### 2. What did you expect to see? (Required)

Grab table information by API need an authentication process to prevent malicious API calling.

### 3. What did you see instead (Required)

Using API like "curl http://{TiDBIP}:10080/db-table/{tableID}" "curl http://{TiDBIP}:10080/mvcc/key/{db}/{table}/{handle}" can walk around the access control system of TiDB and grab table's data.

### 4. What is your TiDB version? (Required)

All versions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.