Skip to content
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

Upgrade awssdk to resolve netty-codec-http vulnerability #721

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//Core deps
val amazonV = "2.21.17"
val amazonV = "2.26.4"
val catsV = "2.7.0"
val catsEffectV = "3.3.14"
val fs2V = "3.2.14"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cats.syntax.all._
import cats.effect._
import fs2.Stream
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.sqs.model.QueueAttributeName.ALL
import software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.ALL
import software.amazon.awssdk.services.sqs.model._

import scala.jdk.CollectionConverters._
Expand Down Expand Up @@ -99,7 +99,7 @@ object SimpleSqsClient {
.visibilityTimeout(visibilityTimeoutSeconds)
.waitTimeSeconds(waitTimeSeconds)

val reqWithMaybeAttrs = (if (receiveAttrs) req.attributeNames(ALL).messageAttributeNames(ALL.toString) else req).build
val reqWithMaybeAttrs = (if (receiveAttrs) req.messageSystemAttributeNames(ALL).messageAttributeNames(ALL.toString) else req).build

client
.receiveMessageStream(reqWithMaybeAttrs)
Expand Down
Loading