-
Type: New Feature
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10, 10.10, 11.1-SNAPSHOT
-
Fix Version/s: 9.10-HF44, 10.10-HF27, 11.1, 2021.0
-
Component/s: File Upload , S3
For the full context, see TL-336.
We need a way to refresh AWS tokens of a S3 batch handler by calling assumeRole again. The current code is there:
AssumeRoleRequest request = new AssumeRoleRequest().withRoleArn(roleArn)
.withPolicy(policy)
.withRoleSessionName(batchId);
The new API could be called via SERVER_URL/batchId/refresh and return
{ "awsSecretAccessKey": "...", "awsSecretKeyId": "...", "awsSessionToken": "...", "batchId": "...", "expiration": long }