CU-86bw5au4b: Use direct S3 URL's instead of pre-signed URL's for mobile build output objects
Pre-signed S3 URL's have a maximum expiry time of 7 days, however we need URL's that last longer than this. Since these objects are uploaded with the public-read
ACL, the objects are already publicly readable without any extra security layers. This allows using the direct S3 URL's without any security tokens or signatures.
Testing
See the following pipeline where this was tested: https://gitlab.builder.ai/clientprojects/assembler_projects/prd/intoit-286687-react-native/-/pipelines/4450703.
If you look at the upload debug mobile apps to s3
job, you will see that the updated URL is being sent to CAT.
Sending request to CAT API at https://api.cat.builder.ai/v1/cluster with the following payload
{"environment":"dev","project_id":"436443","id":"4450703","type":"mobile_ios","commit_id":"92d98ca33f021877301ec148808bbdb61ad6854b","urls":["bx-bb-mobile-wrappers.s3.amazonaws.com/436443/test/mobile-build-s3-url/92d98ca33f021877301ec148808bbdb61ad6854b_iOS_debug.zip"],"status":"success","pipeline_type":"web"}
"Cluster Status Updated"Successfully uploaded to the CAT API!
Edited by Waquid Valiya Peedikakkal