Overview and Incident Summary
Action Required: If a JetBackup destination uses an affected JetBackup Storage credential, you must replace that credential before backups to that destination can resume.
Our storage infrastructure provider Impossible Cloud reported suspicious activity in a backend system used to manage S3 access keys and disabled affected keys as a precaution. Impossible Cloud reports that its investigation found no unauthorized access to objects stored in S3 buckets and that Storage Console login credentials and passwords were not compromised. Previously disabled keys will not be re-enabled.
Which destinations need new credentials?
JetBackup 5 can connect to JetBackup Storage in two ways, and the fix depends on which one your destination uses:
- JetBackup Storage S3-Compatible destination: destination type S3-Compatible with a JetBackup Storage endpoint (
*.storage.jetbackup.com), using an Access Key and Secret Key. Used with Pay As You Go and Reserved Capacity Storage accounts. Update it with Method A or Method B. - JetStorage destination: destination type JetStorage, using a Quick Access Code. Used with JetBackup Storage for Linux and JetBackup Storage for WordPress. Update it with Method C.
Only destinations whose credentials were disabled need to be updated. A destination is affected if it now fails validation, or its backups fail with an access key or authentication error. Destinations that still validate and back up normally need no change.
Choose the method for your JetBackup Storage service
Find your service name under Services > My Services in the JetBackup Client Area, then use the matching method:
| Your service | Your situation | Recommended Method |
|---|---|---|
| JetBackup Storage – Pay As You Go (PAYG) or JetBackup Reserved Capacity Storage (RCS) |
About 1 to 10 servers | Method B: create a new key in the Storage Console and enter it yourself. To update every destination on a server in one step, you can enter that key with the script's Local-Only mode. |
| Many servers | Method A, bulk mode: update all servers from one management host. The script can also create the new keys for you. | |
| JetBackup Storage for Linux or JetBackup Storage for WordPress |
Any number of servers or sites | Method C: replace the Quick Access Code on your existing JetStorage destination. JetBackup has already rotated the S3 keys for these services, so you do not need to create keys in the Storage Console. |
Before you start
- Keep your existing destination. Every method below replaces only the credentials. Do not change the bucket, endpoint, backup directory, or any other destination setting, and do not create a new destination.
- Your existing backups are kept. JetBackup reindexes the destination automatically after the new credentials are saved.
- Check the service status first. Confirm on the JetBackup Status Page that JetBackup Storage is available before you replace credentials.
I'm using JetBackup for WordPress. What do I do?
You don't need the script or the Storage Console. Update the plugin to version 3.1.26.0.4 or later, then follow Method C: Quick Access Code to replace the Quick Access Code on your existing destination.
In This Article
Method A: Credential Replacement Script for JetBackup Storage S3-Compatible Destinations
The script finds the JetBackup Storage S3-Compatible destinations (destination type S3-Compatible with an endpoint ending in .storage.jetbackup.com), replaces only their Access Key and Secret Key, and then starts a validation of each updated destination. All other destinations are skipped, including JetStorage-type destinations, which use Method C. The script does not remove old keys. You can clean them up afterwards, as described in After Updating Credentials.
It has two modes. Which one runs depends on whether a servers.csv file is in the folder you run it from:
| Local-Only mode (default) | Bulk mode | |
|---|---|---|
| Runs on | The JetBackup 5 server itself | A management host that connects to each JetBackup 5 server over SSH |
| Starts when | There is no servers.csv in the current folder |
You create servers.csv and pass it to the script |
| New keys | You enter a key you created in the Storage Console (Method B, steps 1–4) | You enter keys yourself, or the script creates one new key per credential group |
| Requires | Root, jq, and jetbackup5api on the server |
jq and ssh on the management host, and root SSH access to each server. For automatic key creation, also AWS CLI and Python 3. |
Automatic key creation is available in bulk mode only. In Local-Only mode, choose to enter the key manually.
Download the script (both modes)
As root, create an empty working folder and download the script into it. For bulk mode, use the management host. For Local-Only mode, use the JetBackup 5 server you want to update.
mkdir -p /root/jetstorage-rotate && cd /root/jetstorage-rotate
curl -fL -o jetstorage-bulk-rotate-keys.sh 'https://repo.jetlicense.com/patches/jetbackup5/jetstorage-bulk-rotate-keys.sh'
chmod 700 jetstorage-bulk-rotate-keys.sh
bash ./jetstorage-bulk-rotate-keys.sh --help
If jq is missing, install it first (for example dnf install -y jq or apt-get install -y jq). The script does not install jq for you.
Default: Local-Only mode (one server at a time)
Use this mode to update the JetBackup Storage S3-Compatible destinations on the server where you run the script. It needs no servers.csv, no SSH, and no AWS CLI.
-
Create the replacement key first. Follow Method B, steps 1–4, and keep the Access Key ID and Secret Access Key ready.
-
On the JetBackup 5 server, as root, go to the working folder from the download step. Make sure it does not contain a
servers.csvfile. -
Run the script without any file name:
bash ./jetstorage-bulk-rotate-keys.shThe script reports LOCAL-ONLY mode and makes no SSH connections.
-
At Choose 1 or 2, press Enter or type
1to enter the key manually. Option 2 (create an IAM key) works in bulk mode only and stops the script in this mode. -
Review the list of destinations found on this server. At Enter Destination ID or A for all, enter one destination ID, or
Ato update all of them. EnterQto quit without changes. -
At New Access Key and New Secret Key, paste the key you created in step 1. What you type is not shown on screen.
-
The script updates the selected destinations, starts their validation, and prints a Credential Replacement Summary. Continue with After Updating Credentials.
Advanced: Bulk mode with servers.csv (recommended for many servers)
Use this mode to update JetBackup Storage S3-Compatible destinations on many JetBackup 5 servers from one management host. The script connects to each server as root over SSH, and the servers themselves need no extra software.
Requirements on the management host:
jqandssh.- Root SSH access to each JetBackup 5 server, preferably with an SSH key. The script runs SSH in non-interactive mode by default, so password prompts and unknown host keys stop the connection (see Bulk step 3).
- For automatic key creation only: AWS CLI and Python 3.
Bulk step 1: Create servers.csv
In the working folder, create servers.csv with this header and one row per server. Replace the example addresses and ports with your own:
server,ssh_port,destination_id,credential_group,iam_user,iam_region,aws_profile,access_key_id,key_description
192.0.2.10,22,all,credential-group-1,,,,,
198.51.100.25,2222,all,credential-group-2,,,,,
server: the server's hostname or IP address.ssh_port: the server's SSH port. Leave blank for22.destination_id:allfor every JetBackup Storage S3-Compatible destination on that server, or one JetBackup destination ID.credential_group: servers in the same group share one key. When the script creates keys, it creates one new key per group. Put servers in the same group only if that key can access all of their buckets. Use a different group for each storage account or IAM user.iam_user,iam_region,aws_profile: optional, used only for automatic key creation. Leave them blank to answer once at the script's prompts. Within a group, these values must be the same on every row.access_key_id,key_description: leave blank. When the script creates a key, it fills in the new Access Key ID and sets the description to the server name. It saves a copy of the previous file asservers.csv.bak.
Never put Secret Keys in servers.csv. The script never writes them to the file.
Bulk step 2: Set up automatic key creation (optional)
Skip this step if you will enter replacement keys yourself.
To create keys, the script runs aws iam create-access-key for the user whose keys your destinations use. It needs two things:
- IAM user: the user who will own the new key, which is the same user your destinations use today. For keys on the main storage account (the Keys page in the Storage Console), enter the storage account's email address. For a dedicated IAM user, enter that user's name.
- A key that is allowed to create keys for that user, saved in an AWS CLI profile. The simplest choice is a new key on the main storage account: in the JetBackup Storage Console, open Keys and select Add Key.
If AWS CLI is not installed, the script offers to install it (using dnf or apt) when you choose automatic key creation. To install it yourself, run:
dnf install -y curl unzip && curl -fsSL https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && cd /tmp && unzip -q -o awscliv2.zip && ./aws/install --update && aws --version
On Ubuntu or Debian, replace dnf install -y with apt-get install -y. Then save the key in a profile named jetstorage-admin, as the same operating-system user that will run the script:
aws configure --profile jetstorage-admin
Enter the Access Key ID and Secret Access Key, your storage region (us-east-1, eu-central-2, eu-north-1, eu-west-1, eu-west-2, or eu-west-3), and json as the output format.
Optional check: this read-only command lists the user's existing keys. If it works, the profile is ready:
aws iam list-access-keys \
--user-name "[email protected]" \
--endpoint-url "https://us-east-1.iam.jetbackup.com" \
--profile jetstorage-admin \
--no-cli-pager
AWS CLI commands for JetBackup Storage always need an explicit --endpoint-url. The script checks REGION.iam.jetbackup.com first and falls back to iam.REGION.impossibleapi.net. See Using JetBackup Storage with AWS CLI and the AWS CLI Credentials & Config chain.
Protect the profile: AWS CLI stores these credentials on the management host. Keep the AWS credentials file at 600 permissions, and do not paste keys into email or chat.
Bulk step 3: Run the script in bulk mode
First SSH connection to a server?
By default, the script runs SSH in batch mode, which cannot ask you to accept a new host key. If this management host has never connected to a server, so that server's fingerprint is not in known_hosts yet, the server fails like this:
=============================================
Server: 192.168.1.100
Destination: all
Credential group: test-server-1
=============================================
Host key verification failed.
[FAILED] Unable to retrieve destinations.
In that case, run the script with --disable-batch-mode so SSH can ask you to confirm each new host key. Check the fingerprint before you accept it:
bash ./jetstorage-bulk-rotate-keys.sh --disable-batch-mode servers.csv
If SSH instead reports that a host key has changed from the one already saved, do not accept it. Investigate that server separately before you continue.
From the folder that contains servers.csv, run:
bash ./jetstorage-bulk-rotate-keys.sh servers.csv
If some servers are new to this management host, use the --disable-batch-mode command above instead.
The script asks:
- Choose 1 or 2:
1to enter keys yourself, or2to have the script create a new key for each credential group. - With option
2: IAM user and IAM region or endpoint (leave blank to use the values inservers.csv), then AWS CLI profile. Enterjetstorage-admin, or leave it blank to use the default profile. - With option
1: New Access Key and New Secret Key, once for each credential group. What you type is not shown on screen.
The script then updates each server's destinations, starts their validation, and prints a Credential Replacement Summary. Continue with After Updating Credentials.
Method B: Create a Replacement Key Manually (Recommended for 1-10 Servers, or you prefer a GUI-based Method)
Use this method for JetBackup Storage – Pay As You Go and Reserved Capacity Storage accounts when you have a handful of servers or prefer not to use a script.
- Sign in to the JetBackup Storage Console.
- Open Keys and select Add Key. If your destinations use a dedicated IAM user, create the key on that user's Access Keys page instead.
- Copy both the Access Key ID and the Secret Access Key, and store them somewhere secure. The Secret Access Key cannot be shown again after you leave the page. Optional: add a description, such as the server name and today's date.
- If you created the key for an IAM user, confirm that the user has access to the existing backup bucket.
- In the JetBackup 5 Admin Panel, edit each affected JetBackup Storage S3-Compatible destination. Replace only the Access Key and Secret Key, leave every other setting unchanged, and save.
- Continue with After Updating Credentials.
Prefer the command line? Run jetbackup5api -F listDestinations to find the destination's _id, then run the commands below as root. They prompt for the values, so the Secret Key is not saved in your shell history, and they URL-encode the keys. Without encoding, a + in a Secret Key can be saved as a space.
read -rp 'Destination ID: ' DEST_ID; read -rp 'Access Key: ' AK; read -rsp 'Secret Key: ' SK; echo
jetbackup5api -F manageDestination -D "action=modify&_id=${DEST_ID}&options[access_key]=$(printf '%s' "$AK" | jq -sRr @uri)&options[secret_key]=$(printf '%s' "$SK" | jq -sRr @uri)"
unset AK SK
For dedicated IAM users, bucket policies, and JetBackup 5 integration guidance, see Integration with JetBackup 5 and Access keys.
Method C: Quick Access Code for JetBackup Integrated Storage
Use this method only for a JetStorage destination (Integrated JetBackup Storage) that already uses a Quick Access Code. These are the “JetBackup Storage for Linux” and “JetBackup Storage for WordPress” services in Services > My Services. These accounts have no standard S3 Access Key and Secret Key and no Storage Console access, so the Quick Access Code is the only way to update them.
Important: Do not use Get Quick Access Code for a Pay As You Go or Reserved Capacity Storage account. For those accounts, it creates a separate integrated JetStorage account instead of fixing your existing JetBackup Storage S3-Compatible destination. Use Method B or Method A instead.
JetBackup for WordPress users: first update the plugin to version 3.1.26.0.4 or later. This version is currently available on the Alpha update tier.
- Open the affected JetStorage destination in the JetBackup 5 Admin Panel or the JetBackup for WordPress dashboard, and click Manage Destination.
- Click Get Quick Access Code.
- Sign in with your JetBackup Client Area credentials.
- Select the bucket this destination already uses, and copy the code shown. Do not create a new integrated account here.
- Paste the new code into the Quick Access Code field of the same destination and click Save.
- Continue with After Updating Credentials. If validation still fails, return to step 2, click Refresh access code to generate a code from newly created keys, and paste that code instead.
Open the JetBackup Storage area in the Client Area as needed. For the Quick Access Code flow and the difference between integrated and self-managed accounts, see JetBackup Storage destinations in the JetBackup 5 Admin Panel guide.
After Updating Credentials: Check Each Destination
Whichever method you used, check each updated destination in JetBackup:
- Confirm that destination validation completed successfully. A validation request that was only accepted does not confirm that the credentials work.
- Wait for the destination reindex to finish.
- Run a test backup to the destination and confirm that it completes.
If validation fails: check that the whole Access Key and Secret Key were copied, that the key's user can access the existing bucket, and that the bucket and endpoint settings were not changed. If it still fails, contact support.
Clean up the disabled keys: the incident-related keys stay disabled and will not be re-enabled. Once your backups are working, sign in to the JetBackup Storage Console, open Keys, and delete the keys whose status is Inactive. If you use dedicated IAM users, also check each user's Access Keys page.
Need Help? Ask Us to Assist
If you are unsure which method applies, or would like us to rotate the credentials for you, open a support request through the JetBackup Client Area. Include the affected server names, SSH ports, and JetBackup destination IDs. Do not send Secret Keys or passwords by email. Provide sensitive information only through the secure server details widget in the Client Area.
Current Status and Updates
For continual service updates, visit the JetBackup Status Page.

