> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/oauth2-migration.md). Agents can also search and read this documentation through its [MCP server](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/~gitbook/mcp).

# Migrate an Insight Point to OAuth2

Reconfigure an existing Insight Point to authenticate with OAuth2 client credentials instead of a registration key.

{% hint style="info" %}
Migration is optional. Existing Insight Points configured with a registration key continue to operate without changes.
{% endhint %}

Reconfigure an existing Insight Point in place so that it authenticates with OAuth2 client credentials instead of a registration key. You do not need to deploy a replacement Insight Point or re-enter credentials for the integrations that use it.

To deploy a **new** Insight Point with OAuth2, create it from **Integrations** > **Insight Points** > **Create Insight Point** instead, which issues the OAuth2 values directly. See [Creating an Insight Point](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point.md#creating-an-insight-point).

## What a registration key does, and what replaces it

A registration key does two separate jobs, and OAuth2 replaces each one with a different value:

* **Identity.** The key identifies the Insight Point to the Veza control plane. Under OAuth2, a client ID and client secret take over this job: the Insight Point exchanges them for a short-lived access token and presents that token on every connection.
* **Credential encryption.** The key also carries the key pair that the Insight Point uses to decrypt integration credentials held in the Veza vault. Under OAuth2, the `VEZA_VAULT_SECRET` value performs this job.

Because the two jobs are separable, an Insight Point that reads all of its integration credentials from an external secrets vault does not need `VEZA_VAULT_SECRET`. That distinction decides which migration path applies to you.

## Choose a migration path

|                                | Path A: Veza vault                                         | Path B: external vault only                                     |
| ------------------------------ | ---------------------------------------------------------- | --------------------------------------------------------------- |
| **Use when**                   | Integration credentials are stored in the Veza vault       | Integration credentials are read from an external secrets vault |
| **Supply `VEZA_VAULT_SECRET`** | Yes                                                        | No                                                              |
| **Also requires**              | Nothing further                                            | An external secrets vault configured on the Insight Point       |
| **Result**                     | The Insight Point decrypts Veza-held credentials as before | The Insight Point holds no Veza key pair                        |

Path A preserves current behavior. **If you are not certain which path applies, choose Path A.**

{% hint style="warning" %}
On Path B the Insight Point cannot decrypt credentials held in the Veza vault. Any integration whose credentials are stored in Veza rather than in your external vault fails to collect. Confirm that every integration assigned to this Insight Point resolves its credentials externally before you choose Path B. See [Secrets Vaults](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md), and for Helm, [Secrets vault configuration](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/insight-point-kubernetes.md#secrets-vault-configuration).
{% endhint %}

## Before you start

* **Deployment method.** Migration is documented for Insight Points deployed with the [install script](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/insight-point-install-script.md), with the [Helm chart](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/insight-point-kubernetes.md), and on the [virtual appliance](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/ova-v2.md). On a virtual appliance, migration runs from the appliance console, because the OVF **Customize template** properties apply only when the appliance is first deployed.
* **Administrator access.** You need the [Administrator](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/administration/administration/users/roles.md) role and an [API key](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/authentication.md#api-keys) with that role for the API calls in steps 2 and 3.
* **Access to the Insight Point.** You need shell access with `sudo` on the install-script host, `root` access on the appliance console, or `kubectl` and `helm` access to the release namespace. Step 1 also needs a host with `python3`.
* **A current Insight Point image.** OAuth2 support is part of the Insight Point container image, which [automatic upgrades](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point.md#automatic-upgrades) do not replace, so the version shown in **Integrations** > **Insight Points** does not confirm it. On Path A, the image must be from Veza release 2026.7.6 or later, because earlier images reject the `plain:` prefix of `VEZA_VAULT_SECRET`. On Path B, release 2026.6.15 or later is enough:
  * **Install script:** the step 5 restart pulls the latest image on hosts installed with the install script from release 2025.12.1 onward. On an older host, or if you are not sure, pull the image before step 5: `sudo docker pull public.ecr.aws/veza/insight_point:latest` (use `podman` on a Podman host).
  * **Helm chart:** use chart version `2026.7.6-1` or later in step 4.
  * **Virtual appliance:** the OAuth2 setup wizard is part of the appliance build. Run `grep -q VEZA_OVA_OAUTH2 /sbin/setup-veza && echo supported` on the appliance. If it prints nothing, the appliance predates the OAuth2 wizard. In step 4, edit `/etc/veza-insight-point/config.env` as the **Install script** tab describes instead of running the wizard, then run `rc-service veza-insight-point restart` as `root`. The restart pulls the current image.
* **Your existing registration key.** Step 1 reads values out of it. If you no longer have the key, create a replacement Insight Point instead of migrating in place.
* **A maintenance window.** The Insight Point goes offline when the new configuration takes effect: during step 4 on Helm and the virtual appliance, and at the step 5 restart on an install-script host. Collection jobs do not run while it is offline.

## Migration steps

1. [Prepare the OAuth2 client](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/oauth2-migration/prepare-oauth2-client.md): recover the identity values from the registration key, create an OAuth2 client, associate it with the Insight Point, and confirm that it can obtain a token (steps 1-3).
2. [Reconfigure the Insight Point](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/oauth2-migration/reconfigure.md): apply the OAuth2 values for your deployment method, restart, and verify (steps 4-5).

If the migrated Insight Point does not come back healthy, [roll back from OAuth2](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/oauth2-migration/roll-back.md).

## Related documentation

* [Insight Point](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point.md): deployment overview, creation, and operation.
* [Deploying an Insight Point using the install script](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/insight-point-install-script.md)
* [Deploy with Kubernetes (Helm)](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/insight-point-kubernetes.md)
* [Deploy with Virtual Appliance](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/ova-v2.md)
* [Secrets Vaults](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md): external vaults for Path B.
* [OAuth2 Clients](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/authentication/oauth2-clients.md): managing client secrets.
* [OAuth Scopes](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/authentication/oauth-scopes.md): the `pipeline:insight-point:operate` scope.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point/oauth2-migration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
