Skip to content
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
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@ val springWebVersion = "6.1.4"
val springBootVersion = "3.2.5"

// Implementation
val swaggerParserVersion = "2.1.16"
val swaggerParserVersion = "2.1.22"
val hashidsVersion = "1.0.3"
val springOauthAutoConfigureVersion = "2.6.8"
val springSecurityJwtVersion = "1.1.1.RELEASE"
val springDocVersion = "2.2.0"
val springDocVersion = "2.5.0"
val springOauthVersion = "6.2.2"
val servletApiVersion = "6.0.0"
val oktaSpringBootVersion = "3.0.5"
val tikaVersion = "2.9.1"
val kubernetesClientVersion = "19.0.0"
val redisOMVersion = "0.9.0"
val redisOMVersion = "0.9.1"
val kotlinCoroutinesCoreVersion = "1.7.3"

// Checks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class ApiKeyAuthenticationFilter(val csmPlatformProperties: CsmPlatformPropertie
) {
logger.trace("API-Key filter starts")
val allowedApiKeyConsumers = csmPlatformProperties.authorization.allowedApiKeyConsumers
if (allowedApiKeyConsumers.isEmpty()) chain.doFilter(request, response)

val matchingApiKeyConsumer =
allowedApiKeyConsumers.firstOrNull { apiKeyConsumer ->
Expand Down Expand Up @@ -86,8 +85,12 @@ class ApiKeyAuthenticationFilter(val csmPlatformProperties: CsmPlatformPropertie
true
} else {
val requestUriSplitted = requestUri.split(securedUriSplitted[0])
val uriSuffix = securedUriSplitted[0] + requestUriSplitted[1]
securedUri.toRegex().matches(uriSuffix)
if (requestUriSplitted.size < 2) {
false
} else {
val uriSuffix = securedUriSplitted[0] + requestUriSplitted[1]
securedUri.toRegex().matches(uriSuffix)
}
}
}

Expand Down