dreaMake.dev
S3Flow · Documentation
Deutsch · English
Contents

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:

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

  1. Select the bucket.
  2. Click Encryption….
  3. Check the Profile line and the origin of the setting.
  4. Read Server status. It shows the bucket default that the server reports: SSE-S3 or SSE-KMS with the key, No bucket default reported, Unknown (no permission to read), or Unknown (could not read bucket default).
  5. Choose the method in Encryption for this profile.
  6. For SSE-KMS, enter the KMS key ARN. An ARN (arn:aws:kms:region:account:key/…) or an alias (alias/…) is allowed.
  7. Click Validate key. On success, it says Key accessible. Upload permissions were not checked. If the check fails, it says The key could not be validated. and a dialog shows the cause.
  8. Check Also set as bucket default (all profiles and apps) if S3Flow should also write the method as the bucket default.
  9. 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:

Errors and warnings:

“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:

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:

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.