-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add UnsupportedSigningAlgorithmInterceptor to all sigV4a services #1245
Conversation
A new generated diff is ready to view. |
A new generated diff is ready to view. |
} | ||
|
||
// Needs to happen after the SigV4AsymmetricTraitCustomization (-60), which adds the sigV4a trait to models missing it | ||
override val order: Byte = -50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Why not just leave it as the default (zero)?
// Set to true rather than looking for sigV4a in the model here because this integration would be filtered out | ||
// before the application of the trait is done for some services via SigV4AsymmetricTraitCustomization. | ||
// See: CodegenVisitor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a simple fix and I see we have a FIXME already in CodegenVisitor
, if you have the time I would recommend including it in this PR. Then we don't need the hardcoded true
and we can tighten the conditional.
CodegenVisitor.kt
integrations = ServiceLoader.load(KotlinIntegration::class.java, classLoader)
.onEach { integration -> LOGGER.info("Loaded KotlinIntegration: ${integration.javaClass.name}") }
.sortedBy(KotlinIntegration::order)
...
for (integration in integrations) {
if (integration.enabledForService(resolvedModel, settings)) {
resolvedModel = integration.preprocessModel(resolvedModel, settings)
}
}
Quality Gate passedIssues Measures |
A new generated diff is ready to view.
|
Issue #
Description of changes
The
UnsupportedSigningAlgorithmInterceptor
, which deals with the default signer not supporting sigV4a was only being applied to a hard coded list of services, now the interceptor is applied based on the sigV4a trait.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.