Bar chart of eight trials showing how long a revoked key kept working: last accepted 41.7, 34.7, 45.8, 32.0, 36.6, 32.5, 27.8 and 36.5 seconds after the revoke, with the first refusal much earlier in each trial

To change an S3 access key without an outage, run two keys for a while: make the new one, move every client to it, show the old one is idle, revoke it, then wait 2 minutes and test both. We rehearsed this on a live bucket with a read and write loop running throughout, retries turned down to 1, and 43 of 43 cycles passed.

That result has three limits, and all three are in this runbook. An upload still running on the old key when you revoke it fails. Every link signed by the old key stops working. And in our tests, valid keys sometimes got a 503 while other transfers overlapped, so keep client retries on.

Disclosure: we sell S3-compatible storage, and every measurement here was made on tport.space on 5 November 2026 with rclone v1.75.2, from one location. Another provider will have different timings and another location may too, so treat these numbers as a reason to measure, not as a promise.

What happens after a revoke

We ran 8 trials. Each made two keys, used them for a random 5 to 70 s, revoked the first, then probed both on fresh connections for 100 s. A pair of probes took about 2.5 s, so the times are good to about 2.5 s.

TrialFirst refusal (s)Last accepted (s)Accepted again after the first refusalValid key failures after the revoke
10.4241.6740
28.2634.6751
30.4245.8062
41.0631.9980
50.4136.5760
60.4432.5031
715.5427.7511
84.4136.4920

The median last acceptance was 35.6 s and the longest 45.8 s. The fourth column is the part to plan around: the key doesn't stop cleanly. Refusals started as early as 0.41 s, then the same key was accepted again up to 8 more times. So one 403 doesn't prove a key is dead, and one 200 doesn't prove the revoke failed.

A refusal was a 403 with InvalidAccessKeyId. Our longest time is only the longest we saw, so this runbook waits 2 minutes, which is our own margin. A new key is much quicker: the first request was accepted 1.85 to 2.61 s after the key was created, and no trial had to wait for a new key to appear.

The 503s on valid keys

The last column above is a real result, so here it is in full. The second key, which was never revoked, failed 5 of 323 probes after the revokes, each with a 503 ServiceUnavailable. Another 4 probes failed before the revokes, across both keys. These tests ran while parallel transfers were running on the same account. In a later run with nothing else going on, 240 of 240 probes passed.

So the 503s came from our service under parallel load, not from the keys or the swap. rclone's retries hid them in every transfer we ran. Keep client retries on, and don't read a single 503 during a swap as a sign that the new key is bad. A 403 is different: in our test rclone tried three times and gave up, which is what you want from a revoked key.

Before you start

List every place the old key lives: servers, CI secrets, backup jobs, desktop tools, and anything that signs links. Then check you have room for one more key. tport.space plans hold 10, 50 or 200 active keys (limits), and the console turns off New key at the cap, so a full account has to free a slot first. Revoke an unused key for that, not the one you are swapping.

The tport.space console's Access keys page: a table of keys with name, key id, permissions, buckets, last used and a Revoke link, and a New key button
The Access keys page, with sample data. Name each key after the app that uses it, so the Last used column means something.

Step 1: make the new key and test it alone

Give it the same permission and the same buckets as the old one. If the old key could do more than the app needs, this is the moment to narrow it: a key can be read-only and limited to chosen buckets. The secret is shown once, so store it before you close the page.

ini
[t]
type = s3
provider = Other
access_key_id = TPS...
secret_access_key = ...
endpoint = https://s3.tport.space
region = auto
no_check_bucket = true
upload_cutoff = 64M
bash
rclone --config new.conf lsf t:my-bucket/ --max-depth 1
echo test > swap-test.txt
rclone --config new.conf copyto swap-test.txt t:my-bucket/swap-test.txt
rclone --config new.conf cat t:my-bucket/swap-test.txt
rclone --config new.conf deletefile t:my-bucket/swap-test.txt

no_check_bucket and upload_cutoff are the two rclone settings tport.space needs; S3-compatible storage explained covers other clients. Pass: all commands exit 0 and cat prints test. For a read-only key, run only the first command, against a bucket that has files.

Step 2: move the clients, one at a time

Keep a copy of the old config for the final test, then replace the live one in a single step, so that no run can read a half-written file. In the rehearsal the loop kept reading the same path while the file changed under it:

bash
cp -p app.conf old.conf
install -m 600 new.conf app.conf.new
mv app.conf.new app.conf

rclone reads its config when each run starts, so the next run picked up the new key. A long-running app or SDK client usually holds its credentials until it restarts or reloads. We didn't test those, so restart one instance and confirm it before moving the rest. Multipart uploads survive this: we started an upload and sent part 1 on the old key, sent part 2 on the new key, revoked the old key, completed on the new one, and got back identical bytes.

Pass: every client on your list has been moved and has done real work on the new key.

Step 3: finish long uploads and re-issue links

Two things are tied to the old key itself, so moving the config doesn't save them:

WhatWhat we sawWhat to do
An upload running during the revoke300 MB at 2 MB/s, revoked at 21.4 s. rclone exited 1 at 77.7 s, wrote no object and left one unfinished multipart upload.Let long uploads finish before the revoke, or plan to re-run them.
The same upload, on the new keyExit 0 in 43.9 s without the speed cap, starting from zero. It doesn't resume.Allow time for a full re-upload.
A presigned URL signed by the old keyWorked before the revoke. First 403 at 0.0 s, last 200 at 36.8 s.Re-sign every link still in use with the new key. Presigned URLs or public files covers when a public file is the better choice.

To clear an unfinished upload, use rclone backend cleanup t:my-bucket -o max-age=0, which removed ours. It aborts every unfinished upload in that bucket, so don't run it while another upload is going. If you leave them, tport.space removes unfinished multipart uploads after 7 days.

Step 4: show the old key is idle

The Last used time is coarse. During 423 s of requests every 2 s, its value moved only twice, at 3.6 s and at 304.7 s. So it's good to about 5 minutes, and "it hasn't changed in the last few minutes" proves nothing.

Our rule: note the time, leave the old key alone for at least 10 minutes, about two of those intervals, and check that Last used hasn't moved. That margin is our choice, not a measurement. A job that runs hourly or nightly won't show up in 10 minutes, so the list you made at the start still has to be right. If the key serves a nightly backup, wait a full day.

Pass: Last used hasn't moved in that time, your own logs show no use of the old key ID, and nothing on your list is left.

Step 5: revoke, wait 2 minutes, test both

tport.space has no inactive state, so a revoke can't be undone. If something breaks afterwards, the way back is another new key, not the old one. That's why all the checking comes first.

bash
sleep 120
rclone --config old.conf lsf t:my-bucket/ --max-depth 1 --retries 1 --low-level-retries 1
echo "old key exit: $?"    # expect non-zero, with a 403 in the error
rclone --config app.conf lsf t:my-bucket/ --max-depth 1
echo "new key exit: $?"    # expect 0

In the rehearsal the end state was just that: the old key got a 403 with InvalidAccessKeyId and the new key got a 200. Delete old.conf and any copy of the old secret, and keep an eye on your error rate for the next hour.

The rehearsal, minute by minute

One loop wrote an object and read it back through a single config file, with --retries 1 --low-level-retries 1 so that a failure would show up instead of being retried away:

text
  0.0 s  loop starts on the old key
 33.6 s  new key created
 63.6 s  config swapped to the new key
157.8 s  old key revoked
283.7 s  loop stopped

43 of 43 write and read cycles passed
old key at the end: 403 InvalidAccessKeyId
new key at the end: 200

This is a small test. Each cycle was short and started a fresh rclone process, and no client was still on the old key when it was revoked. It shows the order of steps works. It doesn't show that a swap can never fail, and the 503 figures above were measured on the same day.

If you are coming from AWS

The order is the same as AWS's own guidance, with one important difference at the end.

StepAWS IAMtport.space
Keys at onceTwo per user10, 50 or 200 per account, by plan
SecretShown only at creationShown only at creation
Check last useDate, service and Region of last useLast used time, good to about 5 minutes
Pause the old keyMake it inactive, and switch it back if something breaksNo inactive state
Remove itDelete after confirmingRevoke, which is final

On AWS, making a key inactive is your rehearsal for deleting it. Here there is no such rehearsal, so step 4 has to carry that weight. AWS also warns that IAM changes take time to appear, so wait and test there as well.

If the key has leaked

Then the order flips: make the new key, revoke the old one right away, and accept some failures while you move clients. Don't assume the key is dead at once. In our trials it kept working for up to 45.8 s, so look at your buckets for changes made after the revoke as well as before it. Our copy verification comparison shows which checks catch what.

S3-compatible storage with access keys you can scope to one app and revoke in a click.

Explore tport.space

Sources, read 5 November 2026