Skip to content

Commit 31640fc

Browse files
authored
Use SRA auth by default for all existing and new services. (#5404)
The customization is preserved as an option, but will be removed in the future.
1 parent 5c8b665 commit 31640fc

File tree

378 files changed

+396
-402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+396
-402
lines changed

codegen/src/main/java/software/amazon/awssdk/codegen/model/config/customization/CustomizationConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public class CustomizationConfig {
279279
/**
280280
* Whether SRA based auth logic should be used.
281281
*/
282-
private boolean useSraAuth = false;
282+
private boolean useSraAuth = true;
283283

284284
/**
285285
* Whether to generate auth scheme params based on endpoint params.

core/auth/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
<artifactId>http-auth-aws</artifactId>
7979
<version>${awsjavasdk.version}</version>
8080
</dependency>
81+
<dependency>
82+
<groupId>software.amazon.awssdk</groupId>
83+
<artifactId>http-auth-aws-eventstream</artifactId>
84+
<version>${awsjavasdk.version}</version>
85+
</dependency>
8186
<dependency>
8287
<groupId>software.amazon.awssdk</groupId>
8388
<artifactId>http-auth</artifactId>
@@ -193,6 +198,17 @@
193198
</dependencies>
194199
<build>
195200
<plugins>
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-dependency-plugin</artifactId>
204+
<configuration>
205+
<ignoredUnusedDeclaredDependencies>
206+
<!-- auth depends on http-auth-aws-eventstream without using it. This is so that older event
207+
stream services, which only depend on auth, can continue to sign event stream messages. -->
208+
<ignoredUnusedDeclaredDependency>software.amazon.awssdk:http-auth-aws-eventstream:*</ignoredUnusedDeclaredDependency>
209+
</ignoredUnusedDeclaredDependencies>
210+
</configuration>
211+
</plugin>
196212
<plugin>
197213
<groupId>org.apache.maven.plugins</groupId>
198214
<artifactId>maven-jar-plugin</artifactId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"useSraAuth": true,
2+
33
"enableGenerateCompiledEndpointRules": true
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"useSraAuth": true,
2+
33
"enableGenerateCompiledEndpointRules": true
44
}

services/acm/src/main/resources/codegen-resources/customization.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"verifiedSimpleMethods": [
33
"listCertificates"
44
],
5-
"useSraAuth": true,
5+
66
"enableGenerateCompiledEndpointRules": true
77
}

services/acmpca/src/main/resources/codegen-resources/customization.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"verifiedSimpleMethods": [
33
"listCertificateAuthorities"
44
],
5-
"useSraAuth": true,
5+
66
"enableGenerateCompiledEndpointRules": true
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"useSraAuth": true,
2+
33
"enableGenerateCompiledEndpointRules": true
44
}

services/amplify/src/main/resources/codegen-resources/customization.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"verifiedSimpleMethods": [
33
"listApps"
44
],
5-
"useSraAuth": true,
5+
66
"enableGenerateCompiledEndpointRules": true
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"useSraAuth": true,
2+
33
"enableGenerateCompiledEndpointRules": true
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"useSraAuth": true,
2+
33
"enableGenerateCompiledEndpointRules": true
44
}

0 commit comments

Comments
 (0)