Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giangdatoro opened this issue May 20, 2024 · 0 comments

Comments

@giangdatoro
Copy link

giangdatoro commented May 20, 2024

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
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant