
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.
| Trial | First refusal (s) | Last accepted (s) | Accepted again after the first refusal | Valid key failures after the revoke |
|---|---|---|---|---|
| 1 | 0.42 | 41.67 | 4 | 0 |
| 2 | 8.26 | 34.67 | 5 | 1 |
| 3 | 0.42 | 45.80 | 6 | 2 |
| 4 | 1.06 | 31.99 | 8 | 0 |
| 5 | 0.41 | 36.57 | 6 | 0 |
| 6 | 0.44 | 32.50 | 3 | 1 |
| 7 | 15.54 | 27.75 | 1 | 1 |
| 8 | 4.41 | 36.49 | 2 | 0 |
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.

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.
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:
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:
| What | What we saw | What to do |
|---|---|---|
| An upload running during the revoke | 300 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 key | Exit 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 key | Worked 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.
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:
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.
| Step | AWS IAM | tport.space |
|---|---|---|
| Keys at once | Two per user | 10, 50 or 200 per account, by plan |
| Secret | Shown only at creation | Shown only at creation |
| Check last use | Date, service and Region of last use | Last used time, good to about 5 minutes |
| Pause the old key | Make it inactive, and switch it back if something breaks | No inactive state |
| Remove it | Delete after confirming | Revoke, 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.spaceSources, read 5 November 2026
- AWS IAM: Manage access keys, Update access keys, GetAccessKeyLastUsed, Troubleshoot IAM
- rclone: S3 backend, global flags
- tport.space: Limits and supported operations
- All timings, counts and results: our own tests on tport.space, 5 November 2026, rclone v1.75.2.