> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/caf-api/caf-api-pt-br/all-id/security-best-practices.md).

# Melhores práticas de segurança

Recomendações de segurança para implantar o All ID.

## Segurança de rede

### Segmentação de rede

Implante os serviços em camadas de rede separadas:

```
Camada Pública    → Balanceador de Carga (voltado para a internet) ou Api Gateway
Camada Privada   → Peer, Facematch
Camada de Banco de Dados  → MySQL (isolado, sem acesso à internet)
```

**Implementação**:

* Implante o balanceador de carga em uma sub-rede pública
* Implante os serviços em sub-redes privadas
* Implante o banco de dados em uma sub-rede isolada
* Use o gateway NAT somente se bureaus externos estiverem habilitados

### Lista de permissões de IP

Restrinja o acesso externo a endereços IP conhecidos.

**IPs da Certta**:

```
3.218.90.124/32
44.219.96.170/32
18.235.54.162/32
18.228.123.114/32
54.232.24.70/32
54.94.8.234/32
```

**Implementação**:

* Configure o balanceador de carga para aceitar tráfego apenas de IPs na lista de permissões
* Aplique restrições de IP no nível do firewall/grupo de segurança
* Documente os IPs aprovados e revise regularmente


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.caf.io/caf-api/caf-api-pt-br/all-id/security-best-practices.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
