Skip to content

Using default metadata for direct upload causes some metadata to be missing when decrypting the object. #1

@giangdatoro

Description

@giangdatoro

logic of get_chunks require envelop headers.

Aws::S3::EncryptionV2::Errors::DecryptionError - unable to locate encryption envelope:

envelop are required

example for meta here

https://github.com/aws/aws-sdk-ruby/blob/c0a05cdea51a273fa674eb0c1210ade4167d4588/gems/aws-sdk-s3/spec/encryption/client_spec.rb#L551

don't forget to config the s3

[
    {
        "AllowedHeaders": [
            "*",
            "Content-Type",
            "Content-MD5",
            "Content-Disposition",
            "x-amz-key-v2",
            "x-amz-cek-alg",
            "x-amz-tag-len",
            "x-amz-wrap-alg",
            "x-amz-iv",
            "x-amz-matdesc"
        ],
        "AllowedMethods": [
            "PUT",
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [
            "Content-Type",
            "Content-MD5",
            "Content-Disposition",
            "x-amz-key-v2",
            "x-amz-cek-alg",
            "x-amz-tag-len",
            "x-amz-wrap-alg",
            "x-amz-iv",
            "x-amz-matdesc"
        ],
        "MaxAgeSeconds": 3600
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions