diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index e5687fd..ff53936 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -7,9 +7,6 @@ authorization-server { jwt-queue-url = ${JWT_QUEUE_URL} jwt-fallback-bucket = ${JWT_FALLBACK_BUCKET} - signer-max-connections = 1024 - signer-max-connections = ${?KMS_MAX_CONCURRENCY} - generated-jwt { issuer = ${GENERATED_JWT_ISSUER} m2m-audience = ${GENERATED_M2M_JWT_AUDIENCE} @@ -86,6 +83,12 @@ services { interop-commons { isInternetFacing = true + + kms { + max-concurrency = 1024 + max-concurrency = ${?KMS_MAX_CONCURRENCY} + } + jwt { public-keys { urls = ${WELL_KNOWN_URLS} diff --git a/src/main/scala/it/pagopa/interop/authorizationserver/common/ApplicationConfiguration.scala b/src/main/scala/it/pagopa/interop/authorizationserver/common/ApplicationConfiguration.scala index 225a698..5caa1a8 100644 --- a/src/main/scala/it/pagopa/interop/authorizationserver/common/ApplicationConfiguration.scala +++ b/src/main/scala/it/pagopa/interop/authorizationserver/common/ApplicationConfiguration.scala @@ -20,8 +20,6 @@ object ApplicationConfiguration { val generatedM2mJwtDuration: Int = config.getInt("authorization-server.generated-jwt.m2m-duration-seconds") - val signerMaxConnections: Int = config.getInt("authorization-server.signer-max-connections") - val clientAssertionAudience: Set[String] = config.getString("authorization-server.client-assertion-audience").split(",").toSet.filter(_.nonEmpty) diff --git a/src/test/resources/application-test.conf b/src/test/resources/application-test.conf index 670fe95..4d9adf8 100644 --- a/src/test/resources/application-test.conf +++ b/src/test/resources/application-test.conf @@ -18,7 +18,6 @@ authorization-server { } client-assertion-audience = "client-assertion.audience" # Currently ignored, hardcoded in tests - signer-max-connections = 1024 rate-limiter { limiter-group = "AUTHSERVER" @@ -36,6 +35,11 @@ services { } interop-commons { + + kms { + max-concurrency = 1024 + } + jwt { public-keys { urls = "yadayada"