Rotate a protocol credential safely

Duplicate a protocol key’s restrictions, test the replacement secret on its intended surface, migrate every client, and revoke the old key safely.

Last reviewed

Dosya API keys cannot be edited. Rotation uses Duplicate settings to create a separate key, a controlled protocol test, client migration, and the irreversible Revoke action on the retired row.

Four-step workflow map for Rotate a protocol credential safely: Duplicate the old key after reviewing restrictions, preserve required protocol boundaries. Copy the replacement secret before closing, store it in the client vault. Move every client to the new credential, retest a scope-matched read or write. Revoke the old key after migration proof, confirm the retired credential is refused.
This map follows rotate a protocol credential safely from “Duplicate the old key after reviewing restrictions, preserve required protocol boundaries.” through “Copy the replacement secret before closing, store it in the client vault.” and “Move every client to the new credential, retest a scope-matched read or write.”, ending with “Revoke the old key after migration proof, confirm the retired credential is refused.”. Open full-size screenshot.

Before you start

Inventory every client using the old key and identify whether it authenticates with the dos_… secret over REST, WebDAV, or SFTP, or with a separate S3 access-key pair. The new-key dialog can preserve scope, protocols, workspace or folder reach, IP ranges, and active hours; usage limits return blank and expiry returns to Never expires, so review those manually.

Each API-key secret is shown once. S3 additionally creates a 21-character DOSYA… access key ID and a 40-character secret that is also shown once.

Steps

  1. Open Profile > API keys, expand the old row, record its visible restrictions and Last used value, then choose Duplicate settings.
  2. Give the replacement a distinct name, verify What can it do? and every item under Restrictions and expiry, and select Generate key.
  3. Copy the one-time secret into the client’s protected credential store; for S3, choose Enable on the new row and save both values from S3 credentials.
  4. Test a read or write permitted by the new key against the exact workspace, folder, protocol, address, and time window it is meant to use.
  5. Update every scheduled job and interactive client, then repeat the test with only the replacement credential configured.
  6. Open the old row, choose Revoke, read Anything still using it stops working immediately. This can’t be undone., and confirm only after migration evidence is complete.
Reference for “Rotate a protocol credential safely”: Cyberduck connection configured for the Dosya WebDAV endpoint.
Reference for “Rotate a protocol credential safely”: Cyberduck connection configured for the Dosya WebDAV endpoint. Open full-size screenshot.

Expected result

The replacement authenticates within the same intended boundaries, every client has moved, and the old API key is deleted. Deleting the old key initiates invalidation of both its API-key cache and any linked S3 credential cache. Another worker isolate or edge cache can briefly retain authorization beyond the UI confirmation. The API-key cache TTL is five minutes. Send harmless requests with the retired credential until authentication is refused rather than treating the UI receipt as proof.

If Generate key is refused, the account may have reached its cap: 20 keys generally and three under free-plan fair use. Revoke an unrelated stale key only after verifying it is unused.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.