Skip to content

Guides

What Happens to Connection Secrets When You Revoke Your Key

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.

Sidharth Verma Sidharth Verma · · 5 min read

Your team’s apps in Elaichi, from the team behind Truto, free for 14 days. Try Elaichi
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 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.

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 calls, unified API calls, sync jobs and tool calls on a customer's MCP server.

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, and Secrets Manager needs the KMS key to decrypt a secret. 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); 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.

FAQ

How do I revoke Truto's access to my key store?
Deactivate or delete the access key of the IAM user you created for Truto, in your AWS account. Nothing in Truto needs to change. Truto loses access to your AWS Secrets Manager at once.
How long can Truto keep using a secret after I revoke access?
Up to 5 minutes. Truto caches a secret's value in memory for up to 5 minutes after it reads it. After that, every request that needs a secret from your store fails with HTTP 503 and truto_error_code key_store_unavailable.
Does Truto keep a backup copy of my secrets?
No. Once a secret has moved to your key store and the write has landed, Truto holds only a reference to it. Truto never falls back to a copy of its own. The one exception is a refreshed token whose write to your store has not landed yet; Truto holds it encrypted until the write lands or it gives up.
What happens to OAuth token refreshes after I revoke access?
Truto keeps the new token encrypted and retries the write to your store. If your store keeps refusing it, Truto gives up after about 20 retries. The account goes to needs_reauth, the integrated_account:authentication_error webhook fires, and Truto drops its copy of the new token.
How do I restore access?
Reactivate the IAM access key in AWS, or save a new access key with Edit on the key store in the Truto dashboard. Accounts that went to needs_reauth must be reconnected.
What if I disable the KMS key instead?
AWS KMS cannot use a disabled key in any cryptographic operation, so Secrets Manager cannot decrypt the secrets. AWS then refuses the read, so Truto cannot get the secret. The Truto key store guide names the IAM access key as the switch; the KMS key also protects your other secrets.

Blog

More from our Blog

Start free today. Pay only for the calls you make.

Connections are free. 25,000 calls a month on the Free plan, no card.