Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tiproxy/tiproxy-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,7 @@ The output is as follows:
```bash
curl http://127.0.0.1:3080/metrics/
```

## Access control

You can restrict access to the TiProxy API by enabling TLS via [`server-http-tls`](/tiproxy/tiproxy-configuration.md#server-http-tls) and setting the `cert-allowed-cn` setting in the `server-tls` subsection that is part of the [`security`](/tiproxy/tiproxy-configuration.md#security) section. TiProxy then uses the common name in the client certificate to [verify the identity of the caller](/enable-tls-between-components.md#verify-component-callers-identity). Alternatively, if you do not use TLS, you can control access using firewall rules.