mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-31 06:15:49 +00:00
The root cause for the authentication error is that the portal was not decrypting the user secret key before signing requests. This is solved via the following: 1. Update VinylDNS controller to decrypt user secret when needed 1. Make sure that the `encrypt-user-secrets` feature flag is `on` in the API reference.conf. This was why in testing locally we did not hit the same issue that we saw in the development environment. Because the flag was false, test users secrets were not encrypted. * `portal application.conf` - set the crypto to match the API * `Dependencies.scala` - eliminate some duplication of dependencies * `api reference.conf` - set the encrypt-user-secrets flag to true * `TestApplicationData.scala` - modify the mock play app to have a CryptoAlgebra binding * `VinylDNS` - add secret decryption in getUserCreds and processCSV * `VinylDNSModule` - add binding for CryptoAlgebra for dependency injection.
92 lines
5.2 KiB
Scala
92 lines
5.2 KiB
Scala
import sbt._
|
|
object Dependencies {
|
|
|
|
lazy val akkaHttpV = "10.1.3"
|
|
lazy val akkaV = "2.5.12"
|
|
lazy val jettyV = "8.1.12.v20130726"
|
|
lazy val pureConfigV = "0.9.2"
|
|
lazy val metricsScalaV = "3.5.9"
|
|
lazy val prometheusV = "0.4.0"
|
|
lazy val catsEffectV = "0.10.1"
|
|
lazy val configV = "1.3.2"
|
|
lazy val scalaTestV = "3.0.4"
|
|
lazy val scodecV = "1.1.5"
|
|
lazy val playV = "2.6.15"
|
|
lazy val awsV = "1.11.95"
|
|
|
|
lazy val compileDependencies = Seq(
|
|
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
|
|
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
|
|
"de.heikoseeberger" %% "akka-http-json4s" % "1.21.0",
|
|
"com.typesafe.akka" %% "akka-remote" % akkaV,
|
|
"com.typesafe.akka" %% "akka-slf4j" % akkaV,
|
|
"com.typesafe.akka" %% "akka-actor" % akkaV,
|
|
"ch.qos.logback" % "logback-classic" % "1.0.7",
|
|
"com.aaronbedra" % "orchard" % "0.1.1",
|
|
"com.amazonaws" % "aws-java-sdk-core" % awsV withSources(),
|
|
"com.amazonaws" % "aws-java-sdk-sqs" % awsV withSources(),
|
|
"com.github.ben-manes.caffeine" % "caffeine" % "2.2.7",
|
|
"com.github.cb372" %% "scalacache-caffeine" % "0.9.4",
|
|
"com.google.protobuf" % "protobuf-java" % "2.6.1",
|
|
"com.zaxxer" % "HikariCP" % "2.5.1",
|
|
"dnsjava" % "dnsjava" % "2.1.7",
|
|
"org.mariadb.jdbc" % "mariadb-java-client" % "2.2.3",
|
|
"org.apache.commons" % "commons-lang3" % "3.4",
|
|
"org.apache.commons" % "commons-text" % "1.4",
|
|
"org.flywaydb" % "flyway-core" % "5.1.4",
|
|
"org.json4s" %% "json4s-ext" % "3.5.3",
|
|
"org.json4s" %% "json4s-jackson" % "3.5.3",
|
|
"org.scalikejdbc" %% "scalikejdbc" % "2.5.2",
|
|
"org.scalikejdbc" %% "scalikejdbc-config" % "2.5.2",
|
|
"org.scodec" %% "scodec-bits" % scodecV,
|
|
"org.slf4j" % "slf4j-api" % "1.7.7",
|
|
"co.fs2" %% "fs2-core" % "0.10.5",
|
|
"com.github.pureconfig" %% "pureconfig" % pureConfigV,
|
|
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureConfigV,
|
|
"io.prometheus" % "simpleclient_hotspot" % prometheusV,
|
|
"io.prometheus" % "simpleclient_dropwizard" % prometheusV,
|
|
"io.prometheus" % "simpleclient_common" % prometheusV,
|
|
"com.typesafe" % "config" % configV,
|
|
"org.typelevel" %% "cats-effect" % catsEffectV,
|
|
"com.47deg" %% "github4s" % "0.18.6"
|
|
)
|
|
|
|
lazy val coreDependencies = Seq(
|
|
"org.typelevel" %% "cats-effect" % catsEffectV,
|
|
"com.typesafe" % "config" % configV,
|
|
"joda-time" % "joda-time" % "2.8.1",
|
|
"org.scodec" %% "scodec-bits" % scodecV,
|
|
"nl.grons" %% "metrics-scala" % metricsScalaV,
|
|
"org.apache.commons" % "commons-text" % "1.4",
|
|
"com.github.pureconfig" %% "pureconfig" % pureConfigV,
|
|
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureConfigV
|
|
)
|
|
|
|
lazy val dynamoDBDependencies = Seq(
|
|
"com.amazonaws" % "aws-java-sdk-core" % awsV withSources(),
|
|
"com.amazonaws" % "aws-java-sdk-dynamodb" % awsV withSources()
|
|
)
|
|
|
|
lazy val commonTestDependencies = Seq(
|
|
"org.scalatest" %% "scalatest" % scalaTestV,
|
|
"org.scalacheck" %% "scalacheck" % "1.13.4",
|
|
"com.ironcorelabs" %% "cats-scalatest" % "2.3.1",
|
|
"org.mockito" % "mockito-core" % "1.10.19"
|
|
)
|
|
|
|
lazy val apiTestDependencies = commonTestDependencies ++ Seq(
|
|
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV,
|
|
"junit" % "junit" % "4.12"
|
|
)
|
|
|
|
lazy val portalDependencies = Seq(
|
|
"com.typesafe.play" %% "play-json" % "2.6.9",
|
|
"com.amazonaws" % "aws-java-sdk-core" % awsV withSources(),
|
|
"com.amazonaws" % "aws-java-sdk-dynamodb" % awsV withSources(),
|
|
"com.typesafe.play" %% "play-jdbc" % playV,
|
|
"com.typesafe.play" %% "play-guice" % playV,
|
|
"com.typesafe.play" %% "play-ahc-ws" % playV,
|
|
"com.typesafe.play" %% "play-specs2" % playV % "test"
|
|
)
|
|
}
|