mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(kms): GetKeyRotationStatus returns false for asymmetric and HMAC keys (#618)
* fix(kms): return false for GetKeyRotationStatus on asymmetric/HMAC keys
AWS updated GetKeyRotationStatus behavior so asymmetric and HMAC keys
return { KeyRotationEnabled: false } instead of UnsupportedOperationException.
EnableKeyRotation and DisableKeyRotation still reject these key types.
* fix(kms): return false for GetKeyRotationStatus on asymmetric/HMAC keys
AWS updated GetKeyRotationStatus behavior so asymmetric and HMAC keys
return { KeyRotationEnabled: false } instead of UnsupportedOperationException.
EnableKeyRotation and DisableKeyRotation still reject these key types.
This commit is contained in:
1 parent
15f51ea7c3
commit
c7152cef8a
11 files changed
+525
-60
No files matched your search
@@ -10,7 +10,10 @@ import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityPr
|
||||
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
|
||||
import software.amazon.awssdk.services.eventbridge.EventBridgeClient;
|
||||
import software.amazon.awssdk.services.iam.IamClient;
|
||||
import software.amazon.awssdk.services.kinesis.KinesisAsyncClient;
|
||||
import software.amazon.awssdk.services.kinesis.KinesisClient;
|
||||
import software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient;
|
||||
import software.amazon.awssdk.http.Protocol;
|
||||
import software.amazon.awssdk.services.kms.KmsClient;
|
||||
import software.amazon.awssdk.services.lambda.LambdaClient;
|
||||
import software.amazon.awssdk.services.opensearch.OpenSearchClient;
|
||||
@@ -337,6 +340,16 @@ public final class TestFixtures {
|
||||
.build();
|
||||
}
|
||||
|
||||
public static KinesisAsyncClient kinesisAsyncClient() {
|
||||
return KinesisAsyncClient.builder()
|
||||
.endpointOverride(ENDPOINT)
|
||||
.region(REGION)
|
||||
.credentialsProvider(CREDENTIALS)
|
||||
.httpClientBuilder(NettyNioAsyncHttpClient.builder()
|
||||
.protocol(Protocol.HTTP1_1))
|
||||
.build();
|
||||
}
|
||||
|
||||
public static CloudWatchClient cloudWatchClient() {
|
||||
return CloudWatchClient.builder()
|
||||
.endpointOverride(ENDPOINT)
|
||||
|
||||
Reference in new issue
Block a user