Encryption
This page describes what S3Flow does. It does not explain how to set up the server.
Server-side encryption (SSE) means that the storage encrypts the objects. S3Flow can set per profile and bucket which method it uses for uploads.
Bucket encryption (SSE-S3, KMS)
The setting applies to the profile that runs the operation and the target bucket. S3Flow stores it on this computer. Other profiles can use a different method or KMS key for the same bucket. Profiles with the same name from different sources also remain separate, for example a saved S3Flow profile and an AWS profile. Changing credentials or the endpoint within the same profile does not create a new setting.
Without a setting of its own, a profile still uses a shared setting from Beta 2. This also applies to new profiles. S3Flow does not copy this setting into individual profiles at startup. Save stores a setting only for the displayed profile and bucket. The shared setting remains available to other profiles. You cannot reset to the shared setting in this version.
| Choice in the dialog | Effect |
|---|---|
None (no encryption requested by S3Flow) |
S3Flow does not ask for encryption with this profile. The bucket's default encryption may still apply and will not be changed. |
SSE-S3 (AES256, server-managed) |
The storage encrypts with its own keys. |
SSE-KMS (customer-managed key) |
The storage encrypts with a key from a key service (KMS). You give the key in KMS key ARN. |
S3Flow applies the setting for:
Upload…, copy and move in the Explorer,- the workflow nodes
Upload,CopyandMovethat write to this bucket.
When saving, you can use the checkbox Also set as bucket default (all profiles and apps) to have S3Flow also write the method as the default encryption on the bucket. The checkbox is off every time the dialog opens. Without the check mark, S3Flow does not change the bucket default. The bucket default applies to new objects when the upload does not specify encryption. It applies regardless of profile or app. Other apps can request their own method. The last successfully set bucket default applies. This does not change existing objects.
An operation that is already running keeps its profile and encryption setting. Switching profiles in the Explorer does not redirect it.
The path bar shows [SSE-S3] or [SSE-KMS] when a local setting applies. For None, there is no suffix. The tooltip names the profile, source, method and origin of the setting. For KMS, it also shows the full key. After a profile switch, the display applies to the new profile. It shows neither the bucket default nor the encryption of existing objects.
Change the encryption
- Select the bucket.
- Click
Encryption…. - Check the
Profileline and the origin of the setting. - Read
Server status. It shows the bucket default that the server reports:SSE-S3orSSE-KMSwith the key,No bucket default reported,Unknown (no permission to read), orUnknown (could not read bucket default). - Choose the method in
Encryption for this profile. - For
SSE-KMS, enter theKMS key ARN. An ARN (arn:aws:kms:region:account:key/…) or an alias (alias/…) is allowed. - Click
Validate key. On success, it saysKey accessible. Upload permissions were not checked.If the check fails, it saysThe key could not be validated.and a dialog shows the cause. - Check
Also set as bucket default (all profiles and apps)if S3Flow should also write the method as the bucket default. - Click
Save.
With SSE-KMS, the dialog permanently shows the note: Checks key access only. Uploads need kms:GenerateDataKey on this key; multipart uploads also need kms:Decrypt.
What happens when you save:
- S3Flow first saves the setting locally for the profile and bucket shown in the dialog.
- If that succeeds and the checkbox is checked, S3Flow writes
SSE-S3orSSE-KMSto the bucket as the default in the background. The dialog showsSetting bucket default…. It then closes. - Without the checkbox, S3Flow writes nothing to the bucket. The dialog closes without another message.
- For
None, the checkbox is unchecked and disabled. S3Flow changes only the local setting. This also overrides a shared Beta 2 setting for this profile. It does not change the bucket default or decrypt existing objects.
Errors and warnings:
- If the KMS key cannot be validated, S3Flow asks:
The key could not be validated. Uploads using this key may fail. Save anyway?. ChooseNoif you want to clarify the key first. WithYes, uploads using this key may fail. - If setting the bucket default fails or stays unconfirmed, S3Flow shows an information dialog. It first confirms the locally saved setting and then names the cause. The profile setting still applies. The next section explains the texts.
- The key check needs the right to query the key. If it is missing,
Validate keyfails even if the key exists. - If S3Flow cannot save the setting locally, you see
Could not save encryption settings.. The dialog stays open with your entries. The previously saved setting remains in effect. S3Flow does not call the server in this case. - If the effective setting is damaged, S3Flow stops uploads, copies and moves to the affected target. A workflow marks the node as failed. A move keeps the source. Open
Encryption…and save a valid setting before you start the operation again.
“The bucket default was not changed”: What does the message mean?
If setting the bucket default fails after Save, S3Flow shows an information dialog with two paragraphs and copyable details. An information icon, not a warning triangle: the setting for this profile and bucket is saved.
First paragraph, local success. For SSE-KMS, it says Key saved for profile {profile} and this bucket. Uploads with this profile will request this key.; for SSE-S3 accordingly Encryption saved for profile {profile} and this bucket. Uploads with this profile will request SSE-S3. S3Flow requests the setting for further uploads, copies and moves with this profile. This does not guarantee a successful upload. Write and KMS permissions must also be sufficient.
Second paragraph, by cause:
this profile is not allowed to change it: The server refused the bucket default change. This alone is not an error in S3Flow. This change needss3:PutEncryptionConfiguration. An explicit deny, a bucket policy or an organization policy can also refuse access. The error alone does not identify the responsible rule. Ask your AWS administrator to check the permissions. For another storage service, the message names your storage administrator.the KMS key could not be used: Check the key ARN, region and key state with your administrator. Uploads using this key may fail.the server rejected the encryption settings: The server refused the settings. Check the entries and whether your storage service supports the encryption.The bucket default change could not be confirmed: For connection errors, timeouts or server errors, the change remains unconfirmed. Check the connection andServer statusbefore trying again.- For other or unknown errors, the message continues:
Ask your administrator to check the details, or keep using the profile setting.Have the details checked or keep using the profile setting. The bucket default change is not confirmed.
The details name the operation, error code, bucket and request ID where available. If you want the bucket default changed, give these details to your administrator. Do not share access keys.
S3Flow does not retry the write call automatically and does not roll back the local setting. You can keep using the profile setting. You do not need to save it again.
Server status: What does the display show?
Server status shows the bucket default that the server reports. The display is independent of the local setting. It does not describe the encryption of existing objects. Possible displays:
SSE-S3orSSE-KMS, for KMS with the key: The server reports this default encryption.No bucket default reported: The server reports no bucket default. This does not mean that objects are unencrypted. Amazon S3 has encrypted new objects with SSE-S3 by default since January 5, 2023. Other storage services may behave differently.Unknown (no permission to read): The profile is not allowed to read the bucket default. This needss3:GetEncryptionConfiguration.Unknown (could not read bucket default): S3Flow could not read the bucket default, for example because of a network or server error.
An additional hint explains a missing bucket default or missing read permission. For read errors, the details show the technical cause. A read error does not change the local setting and does not prevent local saving.
Which AWS permissions are needed?
This overview applies to Amazon S3 general purpose buckets. Other S3-compatible services may require different permissions.
| Action | Permission | Resource |
|---|---|---|
| Read the bucket default | s3:GetEncryptionConfiguration |
Bucket ARN |
| Change the bucket default | s3:PutEncryptionConfiguration |
Bucket ARN |
Query the KMS key with Validate key |
kms:DescribeKey |
KMS key ARN |
| Upload with SSE-KMS | kms:GenerateDataKey |
KMS key ARN |
| Upload with SSE-KMS in multiple parts (multipart) | also kms:Decrypt |
KMS key ARN |
| Read SSE-KMS objects, including as a copy source | kms:Decrypt |
Source key ARN |
Validate key checks key access with DescribeKey. It does not upload a test object or check upload permissions. Success therefore does not prove that kms:GenerateDataKey is allowed. Missing kms:DescribeKey permission does not prove an invalid key.
Example for your AWS administrator
The following IAM policy excerpt contains only the permissions above for one bucket and one key. It is not a complete access policy. Required S3 object permissions, such as s3:PutObject, must be added. Remove ChangeBucketEncryption if the profile should not change the bucket default.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadBucketEncryption",
"Effect": "Allow",
"Action": "s3:GetEncryptionConfiguration",
"Resource": "arn:aws:s3:::example-bucket"
},
{
"Sid": "ChangeBucketEncryption",
"Effect": "Allow",
"Action": "s3:PutEncryptionConfiguration",
"Resource": "arn:aws:s3:::example-bucket"
},
{
"Sid": "UseAndCheckKmsKey",
"Effect": "Allow",
"Action": ["kms:DescribeKey", "kms:GenerateDataKey", "kms:Decrypt"],
"Resource": "arn:aws:kms:eu-central-1:123456789012:key/11111111-2222-3333-4444-555555555555"
}
]
}
Replace the bucket and key ARN with the actual resources. The KMS key must be in the same AWS Region as the bucket. Copies using a different source key also need access to that key. Your administrator must also check the KMS key policy and any deny rules. This excerpt alone does not guarantee access.
AWS sources: change the bucket default, read the bucket default, SSE-KMS permissions, automatic SSE-S3 encryption.
Delete a profile and remove credentials
Deleting a S3Flow profile removes its own encryption settings. If you create the same profile name again, an existing shared Beta 2 setting applies again. Deleting the profile does not remove this shared setting.
Remove saved credentials (F7) leaves both profile-specific and shared encryption settings unchanged. An AWS profile that is temporarily missing or a bucket that is no longer listed also keeps its settings.