private def loadFastlySignatureSaltFromSecretsManager()

in app/com/gu/itunes/SecretKeeper.scala [62:75]


  private def loadFastlySignatureSaltFromSecretsManager(): Option[String] = loadFromSecretsManagerImp("fastlyImageResizerSignatureSalt") match {
    case Success(result) if result != "" => Some(result)
    // In the event we can't load the signature salt, or we load
    // an empty value, this shouldn't crash the application.
    // Instead we just suppress the generation of episodic artwork
    // images if we determine that the salt is NONE (or an empty
    // string which we treat as NONE)
    case Success(result) if result == "" =>
      logger.warn("Loaded the fastly image resizer signature salt but it was an empty string")
      None
    case Failure(err) =>
      logger.warn(s"Could not load Fastly image resizer signature salt: ${err.getMessage}")
      None
  }