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

Can't get object with presigned url #1025

Open
evgeniiz321 opened this issue Nov 16, 2024 · 0 comments
Open

Can't get object with presigned url #1025

evgeniiz321 opened this issue Nov 16, 2024 · 0 comments
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Milestone

Comments

@evgeniiz321
Copy link

  1. Get presigned url:
COMMAND: ./neofs-s3-authmate  generate-presigned-url --endpoint 'localhost:41337' --method 'GET' --bucket '2fe0b189-2267-47af-86dc-2aaabdb510fe' --object 'temp_file_40227144-6d16-4247-a704-feeb3f89319d' --lifetime '30s' --aws-secret-access-key '38daa6c3d1a7767c9ee166b43600b4a14a259b04912a5456cc1439508d677d06' --aws-access-key-id 'DV3wySivBssfbrgg8KDdeGwyuesYuT2u25No5a5XLY3R0BB52CScxDCgVRMPg1rDDgw7Jg7CpErzKz7BUQbCRr9Bi'
RETCODE: 0

STDOUT:
{
  "URL": "localhost:41337/2fe0b189-2267-47af-86dc-2aaabdb510fe/temp_file_40227144-6d16-4247-a704-feeb3f89319d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=DV3wySivBssfbrgg8KDdeGwyuesYuT2u25No5a5XLY3R0BB52CScxDCgVRMPg1rDDgw7Jg7CpErzKz7BUQbCRr9Bi%2F20241116%2F%2Fs3%2Faws4_request&X-Amz-Date=20241116T212214Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=f0b3d1d14e50ed021f6fb9aa3cdf17cfaf19a7b1cd8c7b0bb0eaea545a849949"
}
  1. Try to download file under this url:
403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>temp_file_40227144-6d16-4247-a704-feeb3f89319d</Key><BucketName>2fe0b189-2267-47af-86dc-2aaabdb510fe</BucketName><Resource>/2fe0b189-2267-47af-86dc-2aaabdb510fe/temp_file_40227144-6d16-4247-a704-feeb3f89319d</Resource><RequestId>bdc15d71-af6d-42c0-8668-4734f600dd2b</RequestId><HostId>ed5f5694-be01-4b97-82e3-149a0d5fcc8f</HostId></Error>

Tried getting presigned url via authmate and s3 clients (aws s3 + boto3) - same error upon getting the object: The request signature we calculated does not match the signature you provided

Example - https://rest.fs.neo.org/HXSaMJXk2g8C14ht8HSi7BBaiYZ1HeWh2xnWPGQCg4H6/700-1731792182/index.html#suites/405fafaf31f575ac72014ad927d2fd6a/2f18eefdcf13a177/ (nspcc-dev/neofs-testcases#896)

@evgeniiz321 evgeniiz321 added bug Something isn't working U2 Seriously planned labels Nov 16, 2024
@roman-khimov roman-khimov added this to the v0.33.0 milestone Nov 17, 2024
@roman-khimov roman-khimov added S4 Routine I4 No visible changes labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

2 participants