-
Notifications
You must be signed in to change notification settings - Fork 1
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 AWS JSON protocol errors by harmonising relevant AWS libs #52
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,25 +35,23 @@ releaseProcess := Seq[ReleaseStep]( | |
resolvers ++= Resolver.sonatypeOssRepos("releases") | ||
|
||
libraryDependencies ++= Seq( | ||
"com.gu" %% "content-api-models-scala" % "25.0.0", | ||
"com.gu" %% "content-api-models-scala" % "26.0.0", | ||
"com.gu" %% "thrift-serializer" % "5.0.5", | ||
"software.amazon.kinesis" % "amazon-kinesis-client" % "2.6.0", | ||
"software.amazon.kinesis" % "amazon-kinesis-client" % "3.0.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not read this document about upgrading from KCL v2 to v3: https://docs.aws.amazon.com/streams/latest/dev/kcl-migration-from-2-3.html ...this is unfortunate as it probably means that the release that included this PR (v1.0.26) is probably missing at least one crucial setting, and so should be avoided. At the very least, the increased IAM permissions required by KCL v3 means that https://github.com/guardian/apple-news/pull/398 failed: |
||
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5", | ||
"com.twitter" %% "scrooge-core" % "21.12.0", | ||
"org.scalatest" %% "scalatest" % "3.2.19" % Test | ||
) | ||
) ++ Seq("aws-json-protocol", "kinesis").map(artifact => "software.amazon.awssdk" % artifact % "2.29.23") | ||
|
||
val jacksonVersion = "2.17.2" | ||
dependencyOverrides ++= Seq( | ||
"com.charleskorn.kaml" % "kaml" % "0.53.0", | ||
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion, | ||
"com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion, | ||
"com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion, | ||
"software.amazon.awssdk" % "netty-nio-client" % "2.26.25", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"org.json" % "json" % "20231013", | ||
"org.xerial.snappy" % "snappy-java" % "1.1.10.4", | ||
"org.apache.commons" % "commons-compress" % "1.26.0", | ||
"com.amazon.ion" % "ion-java" % "1.10.5",//overriding until a version of amazon-kinesis-client is available that removes the ion-java vulnerability | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"software.amazon.glue" % "schema-registry-serde" % "1.1.19", //overriding until a version of amazon-kinesis-client is available that removes the ion-java vulnerability | ||
"org.apache.avro" % "avro" % "1.11.4", //overriding until a version of amazon-kinesis-client / glue-schema-registry-common is available that removes the avro vuln | ||
"com.google.protobuf" % "protobuf-java" % "3.25.5" //overriding until a version of amazon-kinesis-client is available that removes the protobuf vuln | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3") | |
|
||
|
||
|
||
addDependencyTreePlugin | ||
|
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.
I found in
apple-news
that this would need to be upgraded to fit in with the upgrade of the FAPI client.