> For the complete documentation index, see [llms.txt](https://documentation.immuta.com/2026.2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.immuta.com/2026.2/configuration/integrations/starburst-trino/register-a-trino-connection/rotate-the-system-api-key.md).

# Rotate the System API Key

Rotate the system API key to mitigate potential security risks

When you register the Trino connection, Immuta generates an API key for you to add to your Immuta access control properties file for API authentication between Starburst (Trino) and Immuta. You can rotate this shared secret to mitigate potential security risks and comply with your organizational policies.

**Required Immuta permission**: `APPLICATION_ADMIN`

{% hint style="warning" %}
**Cluster restart required**

To update your API key in Starburst (Trino), you must shut down your cluster, generate and update the API key, and then restart your cluster. If you do not shut down your cluster, generating a new API key using the endpoint below will cause downtime for your deployment.
{% endhint %}

1. [Disable your Starburst (Trino) cluster](https://docs.starburst.io/starburst-galaxy/cluster-administration/create-edit-and-delete-galaxy-clusters.html#cluster-disable).
2. Navigate to the Trino connection in Immuta.
3. Scroll to the **Policy settings** section, and select **Edit**.
4. Click **Regenerate system API key**. The old API key will be invalidated immediately.
5. Copy the new `immuta.apikey`. Store it in a secure place; the API key will not be shown again.
6. Click **Finish**.
7. [Replace the old `immuta.apikey` value in the Immuta access control properties file](/2026.2/configuration/integrations/starburst-trino/register-a-trino-connection/customize-the-immuta-trino-plugin.md) with this new key.
8. [Enable your Starburst (Trino) cluster](https://docs.starburst.io/starburst-galaxy/cluster-administration/create-edit-and-delete-galaxy-clusters.html#enable-a-cluster).


---

# 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://documentation.immuta.com/2026.2/configuration/integrations/starburst-trino/register-a-trino-connection/rotate-the-system-api-key.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.
