---
title: What Happens to Connection Secrets When You Revoke Your Key
slug: revoke-key-store-access-what-happens-to-connection-secrets
date: 2026-12-03
author: Sidharth Verma
categories: [Guides]
excerpt: "A step-by-step look at what Truto does with your customers' OAuth tokens when you revoke its access to your own AWS key store, and how to get access back."
tldr: "When your customers' secrets are in your own AWS Secrets Manager (Truto's key store, Pro add-on), deactivating the IAM access key you gave Truto cuts it off. Cached values expire within 5 minutes. After that, every request that needs a secret fails with HTTP 503 key_store_unavailable, and Truto has no copy to fall back on. Token refreshes are held and retried, and after about 20 refused writes the account goes to needs_reauth. Reactivate the key to restore access."
canonical: https://truto.one/blog/revoke-key-store-access-what-happens-to-connection-secrets/
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# What Happens to Connection Secrets When You Revoke Your Key


You want control over your customers' integration credentials without running the auth layer yourself. On Truto, the [key store](https://truto.one/blog/bring-your-own-key-store-byok-truto-aws-secrets-manager-kms/) gives you that. Your customers' OAuth tokens and API keys sit in **your own AWS Secrets Manager, encrypted with your KMS key**, and Truto reaches them with one IAM access key that you own.

This post covers the moment you use that control. What stops, what keeps working, what your customers see, and how you get access back. Every Truto fact here comes from the [key store guide](https://truto.one/docs/guides/team-security/key-store).

## The switch is one IAM access key

When you connect a key store, you create an IAM user in your AWS account and give Truto its access key. That access key is Truto's only way into your store. Truto has no AWS identity of its own there.

So the switch is in AWS, not in Truto: **deactivate or delete the IAM user's access key.** You need no Truto login, no support ticket and no change in the Truto dashboard.

## The timeline after you revoke

| When | What happens |
| --- | --- |
| At once | AWS refuses Truto's calls |
| 0 to 5 minutes | Cached values still work |
| After 5 minutes | Requests fail with `503` |
| Next refreshes | New tokens held, retried |
| ~20 refused writes | Account goes to `needs_reauth` |

### At once: AWS refuses every call

From the moment the access key is inactive, AWS refuses each call Truto makes to your Secrets Manager: reads, writes and deletes.

### Up to 5 minutes: cached values expire

Truto caches a secret's value in memory for up to 5 minutes after it reads it. A connected account that Truto read recently keeps working until its cached value expires. This is the only window in which Truto can still use a secret after you revoke.

### After that: every request fails closed

Once the cache has expired, every request that needs a secret from your store fails with HTTP `503` and `truto_error_code: key_store_unavailable`. That covers [Proxy API](https://truto.one/proxy-api/) calls, unified API calls, sync jobs and tool calls on a customer's [MCP server](https://truto.one/mcp/).

Truto has **no fallback**. Once a secret has moved to your store and the write has landed, Truto holds only a reference to it. It does not keep a copy to use when your store says no.

### Token refreshes: held, retried, then dropped

OAuth access tokens expire, and Truto refreshes them. When a refresh happens after you revoke, Truto can't write the new token to your store. So Truto keeps the new token encrypted and retries the write.

If your store keeps refusing it, after about 20 retries Truto gives up:

1. The account goes to `needs_reauth`, with `last_error` "The key store refused to store this account's credentials: ...".
2. The `integrated_account:authentication_error` webhook fires.
3. Truto drops its copy of the new token.

That account then needs to be reconnected. If you revoke only for a short time, reactivate the key before that point.

## What your customers see

Revoking is a real kill switch. Every connected account in that environment stops working until access returns. Your product's integrations and your AI agents get `503` errors for those accounts.

Plan for it the same way you plan for an outage:

- **Watch the error code.** Treat `key_store_unavailable` as "access is off", not as a bug in one integration.
- **Watch the webhook.** `integrated_account:authentication_error` tells you which accounts reached `needs_reauth` and must reconnect.
- **Tell your customers** if you revoke on purpose and for longer than a few minutes.

## What if you disable the KMS key instead

Your KMS key is the other control in your account. [AWS KMS cannot use a disabled key in any cryptographic operation](https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html), and Secrets Manager [needs the KMS key to decrypt a secret](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html). So with the key disabled, AWS refuses Truto's reads, and Truto cannot get the secrets. The Truto guide says a request fails with `key_store_unavailable` when AWS refuses access, so expect the same result as above.

The IAM access key is the switch the Truto guide names, and it affects only Truto. A KMS key can protect other secrets too, so check what else uses it before you disable it.

## How to get access back

- **Reactivate the access key** in AWS, or
- **Save a new access key** with **Edit** on the key store in the Truto dashboard.

On a key store that is in use, Truto verifies a changed access key before it saves it, so a bad key can't break the store. Requests work again as soon as Truto can read your store. Accounts that reached `needs_reauth` need a reconnect. The others need nothing.

## Revoke, disable, switch or delete

Revoking is not the only control. Pick the one that matches what you want.

| You want to | Do this |
| --- | --- |
| Stop all Truto access now | Revoke the IAM access key |
| Stop new secrets going there | **Disable** the key store |
| Move to another AWS account | Add, verify, **Activate**, move |
| Remove a store you no longer use | **Delete** it when empty |

- **Disable** keeps secrets already in the store, and Truto keeps reading them. New secrets are encrypted by Truto until another store is in use. Nothing moves back into Truto.
- **Switch** works without downtime: activate the new store, click **Move all now**, and Truto reads each secret from the old store until it moves.
- **Delete** works only on a store that is not in use and holds no secrets.
- **Deletes in your store** use a 7-day recovery window, so you can restore a secret in AWS if a delete was a mistake.

Only a signed-in team admin can make these changes in the Truto dashboard. Truto refuses key store changes made with an API token.

## Control without running the auth layer

Without a key store, you get this control only by building it: your own token vault, envelope encryption, refresh flows that write to it, and code that fails closed when the vault says no. With a key store, Truto runs the OAuth flows, token refresh and API calls for every connection, and the switch stays in your AWS account.

The key store is part of the Pro add-on, $499 a month (see [pricing](https://truto.one/pricing/)); the Free plan includes a 30-day Pro trial. For the questions a security team asks about this setup, read [Customer-managed keys for integrations and AI agents](https://truto.one/blog/customer-managed-keys-security-reviews-integrations-ai-agents/).
