We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cdc18 commit ed2e380Copy full SHA for ed2e380
src/main/kotlin/org/exploit/keeper/filter/MachineAuthFilter.kt
@@ -18,6 +18,11 @@ class MachineAuthFilter(
18
private val config: KeeperConfig,
19
private val authenticator: RequestAuthenticator
20
): ContainerRequestFilter {
21
+ private val publicPaths = listOf(
22
+ "/v1/keeper/system/health",
23
+ "/v1/keeper/system/ready"
24
+ )
25
+
26
private val matchers = listOf(
27
AntPathMatcher.of("/v1/keeper/sign/**"),
28
AntPathMatcher.of("/v1/keeper/publicKey/**"),
@@ -28,6 +33,9 @@ class MachineAuthFilter(
33
override fun filter(ctx: ContainerRequestContext) {
29
34
val path = ctx.uriInfo.requestUri.getPath()
30
35
36
+ if (path in publicPaths)
37
+ return
38
31
39
if (matchers.none { it.matches(path) })
32
40
return
41
0 commit comments