Docs

Type at least 2 letters.

    Connect Cloudflare

    How to connect your Cloudflare account to Advisor, on Cloudflare Edge and on Cloudflare One, through OAuth or a read-only API token.

    Updated View as Markdown

    The connection gives Advisor read access to your Cloudflare account. Once the connection is active, the first sync starts automatically, and the score shows up when collection finishes.

    Advisor has two Cloudflare connectors, each with its own connection: Cloudflare Edge, with zones, posture and traffic, and Cloudflare One, with Gateway and WARP. This page starts with Cloudflare Edge. For Gateway and WARP, refer to Connect Cloudflare One.

    Before you start

    • You need a tenant role that can manage connections, such as Tenant Admin.
    • In Cloudflare, you need access to the account you are connecting.
    • Each tenant connects one Cloudflare account per connector.

    Connect with OAuth

    This is the recommended method. You approve the permissions on Cloudflare's own screen, with no token to create or store.

    1. In Advisor, go to Administração (Administration) > Integrações (Integrations).
    2. On the Cloudflare Edge card, select Adicionar conexão (Add connection).
    3. Select Conectar com a Cloudflare (Connect with Cloudflare). Advisor opens a single-use connection link that takes you to the Cloudflare authorization screen.
    4. On the Cloudflare screen, choose the account and approve the read permissions.
    5. Back in Advisor, the connection shows up on the Cloudflare Edge card and the first sync is queued.

    The connection link is valid for a few minutes and only in the browser where you selected Conectar com a Cloudflare. If it expires, Advisor shows O link de conexão expirou ou foi aberto em outro navegador. Tente de novo. (The connection link expired or was opened in another browser. Try again.) Refer to Cloudflare connection problems.

    Connect with an API token

    Use this method when OAuth is not available in your environment or when your company policy requires a dedicated token.

    1. In the Cloudflare dashboard, go to My Profile > API Tokens and select Create Token.
    2. Build the token with the permissions in the table below, all with Read access.
    3. Copy the Account ID, shown on the account home page and in the sidebar of any zone.
    4. In Advisor, go to Administração > Integrações. On the Cloudflare Edge card, select Adicionar conexão and choose ou use um token de API (or use an API token).
    5. Paste the Account ID and the Token de API (API token) and confirm the connection.

    The Account ID and Token de API fields start empty every time you open Adicionar conexão. Closing the dialog or switching tenants discards what you typed.

    The connection name comes from Cloudflare itself.

    Token permissions

    Names match Cloudflare's token builder. All permissions use Read access.

    Scope Permissions
    Account Account Settings, Account Analytics, Account Rulesets, Account Firewall Access Rules
    Zone Zone, Zone Settings, DNS, DNS Settings, Zone WAF, Analytics, Firewall Services, Transform Rules, Managed Headers, Dynamic Redirect, Cache Settings, Config Settings

    The Cloudflare Edge connection does not use the Zero Trust permissions. They belong to the Cloudflare One connection.

    After connecting

    Advisor collects four kinds of data, each with its own sync:

    Sync What it brings
    Métricas (Metrics) Traffic, WAF and plans for the period. On the first collection, up to 12 months back.
    Postura (Posture) The configuration checked against the rules, which produces the score and the risks.
    Alterações (Changes) The log of who changed what in the Cloudflare account.
    DNS The records that make up the Inventory and origin exposure probing. It is the slowest kind.

    While the first collection runs, Advisor shows the Sincronização em andamento (Sync in progress) notice. After that, collection runs every day at 02:00 (Brasília time). For details, refer to Connections and sync.

    Once the score is ready, refer to how the Maturity Score is calculated.

    Connect Cloudflare One

    The Cloudflare One connection reads the account's Gateway (DNS, HTTP and network) and WARP (devices and users), read-only. It is separate from the Cloudflare Edge connection, even for the same Cloudflare account: it has its own authorization, sync and deletion.

    An existing Cloudflare Edge connection stays as it is and does not need to reconnect. If you do not use Cloudflare One, you do not grant access to the account's Zero Trust data.

    With OAuth

    1. In Advisor, go to Administração (Administration) > Integrações (Integrations).
    2. On the Cloudflare One card, select Adicionar conexão (Add connection).
    3. Select Conectar com a Cloudflare One (Connect with Cloudflare One). Advisor opens the Cloudflare authorization screen.
    4. On the Cloudflare screen, choose the account and approve the read permissions.
    5. Back in Advisor, the message Cloudflare One conectada. A primeira sincronização já foi enfileirada. (Cloudflare One connected. The first sync has been queued.) appears, and the connection shows up on the Cloudflare One card.

    The Cloudflare screen asks for these scopes, all read-only:

    OAuth scope What for
    account-settings.read Read the account details, such as the name used for the connection.
    account-analytics.read Gateway totals and rankings.
    teams.read Cloudflare One data, such as WARP devices and registrations.
    teams-dex.read Live state and history of the WARP client.
    access-users.read The organization's users, the basis for WARP adoption.
    teams-pii.read User emails and IPs. Without it, this data may come hidden or unavailable.
    offline_access Renew the authorization without asking for consent again.

    The Cloudflare One scopes are requested only on this connection. The Cloudflare Edge connection does not request them.

    When Cloudflare One OAuth is not available in the environment, Adicionar conexão shows only the API token.

    With an API token

    1. In the Cloudflare dashboard, go to My Profile > API Tokens and select Create Token.
    2. Build the token with the permissions in the table below, all with Read access.
    3. Copy the account's Account ID.
    4. In Advisor, go to Administração > Integrações. On the Cloudflare One card, select Adicionar conexão and choose ou use um token de API (or use an API token).
    5. Paste the Account ID and the Token de API (API token) and select Conectar e sincronizar (Connect and sync).
    Scope Permissions
    Account Account Settings, Account Analytics, Zero Trust, Cloudflare DEX, Zero Trust: PII, Access: Users

    Names match Cloudflare's token builder and the Permissões necessárias (Required permissions) box in Adicionar conexão. Cloudflare One does not use zone permissions.

    After connecting Cloudflare One

    The first Cloudflare One sync is queued as soon as the connection is created. Once the connection is Conectada (Connected), the Cloudflare One section appears in the sidebar, with Gateway, WARP and, for users with the connections.zerotrust.lookup permission, Consulta por usuário (User lookup). Refer to Gateway and WARP.