Open louischan-oursky opened 6 years ago
The generated URL should always be valid.
https://s3.amazonaws.com/<bucket>/<object-name>
https://s3-us-east-1.amazonaws.com/<bucket>/<object-name>
us-east-1
ASSET_STORE_PUBLIC=YES
skygear.asset.get_signer().sign(some_asset_id)
When ASSET_STORE_PUBLIC=YES, we naively concat the region to build the URL. The valid format is documented here
Use ASSET_STORE_S3_URL_PREFIX=https://s3.amazonaws.com/<bucket>
ASSET_STORE_S3_URL_PREFIX=https://s3.amazonaws.com/<bucket>
Expected Results
The generated URL should always be valid.
Actual Results
Steps to reproduce
us-east-1
ASSET_STORE_PUBLIC=YES
skygear.asset.get_signer().sign(some_asset_id)
Cause
When
ASSET_STORE_PUBLIC=YES
, we naively concat the region to build the URL. The valid format is documented hereWorkaround
Use
ASSET_STORE_S3_URL_PREFIX=https://s3.amazonaws.com/<bucket>