We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When using KMS encrypted objects, S3 requires the use of sigv4 credential signing
To reproduce, upload an object using a customer managed kms key
aws s3 cp foo.txt s3://bucket/foo.txt --sse aws:kms --sse-kms-key-id <key_id>
and try to download it using a file source
file( name="s3_file", source=http_source( url="s3://bucket/foo.txt", len=123, sha256="sha", ) ) run_shell_command( name="list_files", command="ls -lah {chroot}", execution_dependencies=[":s3_file"], )
pants run :list_files
Produces an error like
IntrinsicError: Client error (400) downloading file foo.txt from https://bucket.s3.amazonaws.com/foo.txt
Pants version 2.24.1
OS Both
Additional info toml to enable the backend
[GLOBAL] pants_version = "2.24.1" backend_packages = [ "pants.backend.shell", "pants.backend.url_handlers.s3", ] plugins = [ 'botocore==1.34.135' ]
The text was updated successfully, but these errors were encountered:
This is the relevant signing code in the existing s3 handler
pants/src/python/pants/backend/url_handlers/s3/register.py
Line 91 in dd87b85
We have a fix for this in our plugin I can push shortly, my main question is do we want to drop the old signing method an only use v4?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
When using KMS encrypted objects, S3 requires the use of sigv4 credential signing
To reproduce, upload an object using a customer managed kms key
and try to download it using a file source
pants run :list_files
Produces an error like
Pants version
2.24.1
OS
Both
Additional info
toml to enable the backend
The text was updated successfully, but these errors were encountered: