|
@@ -28,6 +28,7 @@ import java.util.function.BiConsumer;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static org.elasticsearch.test.ESTestCase.randomIdentifier;
|
|
|
+import static org.elasticsearch.test.ESTestCase.randomSecretKey;
|
|
|
|
|
|
/**
|
|
|
* Minimal HTTP handler that emulates the AWS STS server
|
|
@@ -102,7 +103,7 @@ public class AwsStsHttpHandler implements HttpHandler {
|
|
|
ROLE_ARN,
|
|
|
ROLE_NAME,
|
|
|
sessionToken,
|
|
|
- randomIdentifier(),
|
|
|
+ randomSecretKey(),
|
|
|
ZonedDateTime.now().plusDays(1L).format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ")),
|
|
|
accessKey
|
|
|
).getBytes(StandardCharsets.UTF_8);
|