From 1eb00ad15d01ad3ad6af3914842c0d7fc75bd851 Mon Sep 17 00:00:00 2001 From: StefanMoCoAt Date: Thu, 4 Sep 2025 21:01:49 +0200 Subject: [PATCH] update auth-module ping-service consul --- auth-server-new.log | 198 ++++++++++++++++++ auth-server.log | 125 +++++++++++ .../at/mocode/client/web/AppStylesheet.kt | 9 - .../auth/config/SecurityConfiguration.kt | 33 +++ .../src/main/resources/application.yml | 52 +++++ .../src/main/resources/application.yml | 31 +-- temp/ping-service/build.gradle.kts | 3 + .../mocode/temp/pingservice/PingController.kt | 20 +- 8 files changed, 433 insertions(+), 38 deletions(-) create mode 100644 auth-server-new.log create mode 100644 auth-server.log create mode 100644 infrastructure/auth/auth-server/src/main/kotlin/at/mocode/infrastructure/auth/config/SecurityConfiguration.kt create mode 100644 infrastructure/auth/auth-server/src/main/resources/application.yml diff --git a/auth-server-new.log b/auth-server-new.log new file mode 100644 index 00000000..813e4f1a --- /dev/null +++ b/auth-server-new.log @@ -0,0 +1,198 @@ +nohup: Eingabe wird ignoriert +To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.0.0/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation. +Daemon will be stopped at the end of the build +Type-safe project accessors is an incubating feature. +> Task :core:core-utils:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :infrastructure:auth:auth-client:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :infrastructure:auth:auth-server:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :core:core-domain:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :platform:platform-dependencies:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :infrastructure:auth:auth-client:processResources NO-SOURCE +> Task :core:core-utils:jvmProcessResources NO-SOURCE +> Task :core:core-utils:processJvmMainResources SKIPPED +> Task :platform:platform-dependencies:compileKotlin NO-SOURCE +> Task :platform:platform-dependencies:compileJava NO-SOURCE +> Task :platform:platform-dependencies:processResources NO-SOURCE +> Task :platform:platform-dependencies:classes UP-TO-DATE +> Task :platform:platform-dependencies:jar UP-TO-DATE +> Task :infrastructure:auth:auth-server:processResources UP-TO-DATE +> Task :core:core-domain:compileKotlinJvm UP-TO-DATE +> Task :core:core-domain:compileJvmMainJava NO-SOURCE +> Task :core:core-domain:jvmProcessResources NO-SOURCE +> Task :core:core-domain:processJvmMainResources SKIPPED +> Task :core:core-domain:jvmMainClasses UP-TO-DATE +> Task :core:core-domain:jvmJar UP-TO-DATE +> Task :core:core-utils:compileKotlinJvm UP-TO-DATE +> Task :core:core-utils:compileJvmMainJava NO-SOURCE +> Task :core:core-utils:jvmMainClasses UP-TO-DATE +> Task :core:core-utils:jvmJar UP-TO-DATE +> Task :infrastructure:auth:auth-client:compileKotlin UP-TO-DATE +> Task :infrastructure:auth:auth-client:compileJava NO-SOURCE +> Task :infrastructure:auth:auth-client:classes UP-TO-DATE +> Task :infrastructure:auth:auth-client:jar UP-TO-DATE +> Task :infrastructure:auth:auth-server:compileKotlin +> Task :infrastructure:auth:auth-server:compileJava NO-SOURCE +> Task :infrastructure:auth:auth-server:classes UP-TO-DATE +> Task :infrastructure:auth:auth-server:resolveMainClassName + +> Task :infrastructure:auth:auth-server:bootRun + + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + + :: Spring Boot :: (v3.5.5) + +2025-09-04T20:56:30.108+02:00 INFO 183709 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Starting AuthServerApplicationKt using Java 21.0.8 with PID 183709 (/home/stefan-mo/WsMeldestelle/Meldestelle/infrastructure/auth/auth-server/build/classes/kotlin/main started by stefan-mo in /home/stefan-mo/WsMeldestelle/Meldestelle/infrastructure/auth/auth-server) +2025-09-04T20:56:30.111+02:00 DEBUG 183709 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Running with Spring Boot v3.5.5, Spring v6.2.10 +2025-09-04T20:56:30.111+02:00 INFO 183709 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : No active profile set, falling back to 1 default profile: "default" +2025-09-04T20:56:31.162+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.s.cloud.context.scope.GenericScope : BeanFactory id=8ad112b8-c65c-31e0-9fc6-67eb95e6da0c +2025-09-04T20:56:31.352+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) +2025-09-04T20:56:31.362+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.apache.catalina.core.StandardService : Starting service [Tomcat] +2025-09-04T20:56:31.362+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.44] +2025-09-04T20:56:31.403+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext +2025-09-04T20:56:31.404+02:00 INFO 183709 --- [auth-server] [ main] [ ] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1249 ms +[SECURITY WARNING] Using default JWT secret – DO NOT use this in production! +2025-09-04T20:56:32.068+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '/actuator' +2025-09-04T20:56:32.088+02:00 DEBUG 183709 --- [auth-server] [ main] [ ] swordEncoderAuthenticationManagerBuilder : No authenticationProviders and no parentAuthenticationManager defined. Returning null. +2025-09-04T20:56:32.176+02:00 DEBUG 183709 --- [auth-server] [ main] [ ] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with filters: DisableEncodeUrlFilter, WebAsyncManagerIntegrationFilter, SecurityContextHolderFilter, HeaderWriterFilter, CsrfFilter, LogoutFilter, BearerTokenAuthenticationFilter, AuthenticationFilter, RequestCacheAwareFilter, SecurityContextHolderAwareRequestFilter, AnonymousAuthenticationFilter, ExceptionTranslationFilter, AuthorizationFilter +2025-09-04T20:56:32.506+02:00 WARN 183709 --- [auth-server] [ main] [ ] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. +2025-09-04T20:56:32.548+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 45833 (http) with context path '/' +2025-09-04T20:56:32.550+02:00 INFO 183709 --- [auth-server] [ main] [ ] o.s.c.c.s.ConsulServiceRegistry : Registering service with consul: NewService{id='auth-server-0', name='auth-server', tags=[], address='10.0.0.18', meta={secure=false}, port=45833, enableTagOverride=null, check=Check{script='null', dockerContainerID='null', shell='null', interval='10s', ttl='null', http='http://10.0.0.18:45833/actuator/health', method='null', header={}, tcp='null', timeout='null', deregisterCriticalServiceAfter='null', tlsSkipVerify=null, status='null', grpc='null', grpcUseTLS=null}, checks=null} +2025-09-04T20:56:32.601+02:00 INFO 183709 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Started AuthServerApplicationKt in 2.858 seconds (process running for 3.191) +2025-09-04T20:56:41.869+02:00 INFO 183709 --- [auth-server] [o-auto-1-exec-1] [ ] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' +2025-09-04T20:56:41.870+02:00 INFO 183709 --- [auth-server] [o-auto-1-exec-1] [ ] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' +2025-09-04T20:56:41.871+02:00 INFO 183709 --- [auth-server] [o-auto-1-exec-1] [ ] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms +2025-09-04T20:56:41.894+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e0e9b47a10c79562c35c6eb8c53c-9562c35c6eb8c53c] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:56:41.919+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e0e9b47a10c79562c35c6eb8c53c-5c02d71f8a949fe6] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:56:42.140+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e0e9b47a10c79562c35c6eb8c53c-5c02d71f8a949fe6] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:56:42.756+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e0eae3f6ad4c3e1ab6d01fa5d785-3e1ab6d01fa5d785] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:56:42.758+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e0eae3f6ad4c3e1ab6d01fa5d785-2f9de3d008116428] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:56:42.761+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e0eae3f6ad4c3e1ab6d01fa5d785-2f9de3d008116428] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:56:52.145+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e0f4be3713010b0512e7a11bcd40-0b0512e7a11bcd40] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:56:52.147+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e0f4be3713010b0512e7a11bcd40-d27537c6ebdc2c87] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:56:52.151+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e0f4be3713010b0512e7a11bcd40-d27537c6ebdc2c87] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:02.155+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e0fea32999265e6e17c9ac80b8ed-5e6e17c9ac80b8ed] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:02.156+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e0fea32999265e6e17c9ac80b8ed-f6e05dab854361a6] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:02.161+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e0fea32999265e6e17c9ac80b8ed-f6e05dab854361a6] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:12.165+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e108d6250b09e235a208639f2592-e235a208639f2592] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:12.167+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e108d6250b09e235a208639f2592-7a69637ef11fcc80] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:12.172+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e108d6250b09e235a208639f2592-7a69637ef11fcc80] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:22.176+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1120dcebba0150f96e61d879702-150f96e61d879702] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:22.178+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1120dcebba0150f96e61d879702-ef18ae4fd3a2c4ca] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:22.182+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1120dcebba0150f96e61d879702-ef18ae4fd3a2c4ca] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:32.186+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e11c914cf65fb94b2414f489fc83-b94b2414f489fc83] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:32.187+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e11c914cf65fb94b2414f489fc83-f4797a5bd3d94ce0] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:32.191+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e11c914cf65fb94b2414f489fc83-f4797a5bd3d94ce0] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:42.195+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1261ef68ec358e0a1f5f94dc14f-58e0a1f5f94dc14f] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:42.197+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1261ef68ec358e0a1f5f94dc14f-6aca7783f0895c2f] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:42.203+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1261ef68ec358e0a1f5f94dc14f-6aca7783f0895c2f] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:57:52.208+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e130af201efe5eeb7f78cbbaad61-5eeb7f78cbbaad61] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:57:52.210+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e130af201efe5eeb7f78cbbaad61-4a9b735edc3084c0] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:57:52.215+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e130af201efe5eeb7f78cbbaad61-4a9b735edc3084c0] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:02.217+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e13a808ef38e00da6d627a7b6bfc-00da6d627a7b6bfc] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:02.218+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e13a808ef38e00da6d627a7b6bfc-7f39f4709c1ae304] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:02.223+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e13a808ef38e00da6d627a7b6bfc-7f39f4709c1ae304] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:12.226+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e144ca80a04c4c56ca921a4b981e-4c56ca921a4b981e] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:12.227+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e144ca80a04c4c56ca921a4b981e-d670dc8c1e34f5f1] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:12.231+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e144ca80a04c4c56ca921a4b981e-d670dc8c1e34f5f1] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:22.234+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e14e7807a17c55b44eb10a06c6cb-55b44eb10a06c6cb] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:22.235+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e14e7807a17c55b44eb10a06c6cb-b319e4d927013d8a] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:22.240+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e14e7807a17c55b44eb10a06c6cb-b319e4d927013d8a] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:32.243+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1583f35dd051a53960a200bf01b-1a53960a200bf01b] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:32.244+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1583f35dd051a53960a200bf01b-bea6e8b4a106c675] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:32.249+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1583f35dd051a53960a200bf01b-bea6e8b4a106c675] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:42.253+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1624049094c0045d91c6ba0f435-0045d91c6ba0f435] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:42.254+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1624049094c0045d91c6ba0f435-94ebd51e24d83f20] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:42.259+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1624049094c0045d91c6ba0f435-94ebd51e24d83f20] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:58:52.262+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e16c4447ccce2bed3dcec73c0c6f-2bed3dcec73c0c6f] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:58:52.263+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e16c4447ccce2bed3dcec73c0c6f-0d46d301e2fc95ee] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:58:52.267+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e16c4447ccce2bed3dcec73c0c6f-0d46d301e2fc95ee] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:02.270+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e176c439daf447a1e641488512f1-47a1e641488512f1] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:02.270+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e176c439daf447a1e641488512f1-93124983522bf787] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:02.275+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e176c439daf447a1e641488512f1-93124983522bf787] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:12.279+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e180fb3266158cc74d4ac6d8a67d-8cc74d4ac6d8a67d] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:12.284+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e180fb3266158cc74d4ac6d8a67d-1cc02511ece31c31] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:12.289+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e180fb3266158cc74d4ac6d8a67d-1cc02511ece31c31] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:13.315+02:00 WARN 183709 --- [auth-server] [/api/v2/spans}}] [ ] z.r.i.AsyncReporter$BoundedAsyncReporter : Spans were dropped due to exceptions. All subsequent errors will be logged at FINE level. +2025-09-04T20:59:13.315+02:00 WARN 183709 --- [auth-server] [/api/v2/spans}}] [ ] z.r.i.AsyncReporter$BoundedAsyncReporter : Dropped 5 spans due to ConnectException() + +java.net.ConnectException: null + at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:955) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133) ~[java.net.http:na] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinHttpClientSender.postSpans(ZipkinHttpClientSender.java:60) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.HttpSender.postSpans(HttpSender.java:69) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.HttpSender.postSpans(HttpSender.java:41) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at zipkin2.reporter.BaseHttpSender.send(BaseHttpSender.java:123) ~[zipkin-reporter-3.5.1.jar:na] + at zipkin2.reporter.internal.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:266) ~[zipkin-reporter-3.5.1.jar:na] + at zipkin2.reporter.internal.AsyncReporter$Flusher.run(AsyncReporter.java:352) ~[zipkin-reporter-3.5.1.jar:na] + at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na] +Caused by: java.net.ConnectException: null + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1066) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:227) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:280) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$2(PlainHttpConnection.java:238) ~[java.net.http:na] + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[na:na] + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[na:na] + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na] + ... 1 common frames omitted +Caused by: java.nio.channels.ClosedChannelException: null + at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:202) ~[na:na] + at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:786) ~[na:na] + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:874) ~[na:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:210) ~[java.net.http:na] + at java.base/java.security.AccessController.doPrivileged(AccessController.java:571) ~[na:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:212) ~[java.net.http:na] + ... 9 common frames omitted + +2025-09-04T20:59:22.291+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e18a9e28f5e2ccca7922401fc8d1-ccca7922401fc8d1] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:22.292+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e18a9e28f5e2ccca7922401fc8d1-99496e8f69bf1583] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:22.295+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e18a9e28f5e2ccca7922401fc8d1-99496e8f69bf1583] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:32.297+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1948fcef4dba1e1cfccd25f9a13-a1e1cfccd25f9a13] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:32.298+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1948fcef4dba1e1cfccd25f9a13-78716ace548dbbf9] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:32.302+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1948fcef4dba1e1cfccd25f9a13-78716ace548dbbf9] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:42.305+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e19e683941ca28347d49a6ff6b03-28347d49a6ff6b03] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:42.306+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e19e683941ca28347d49a6ff6b03-6977c89c3c8650c2] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:42.310+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e19e683941ca28347d49a6ff6b03-6977c89c3c8650c2] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:59:52.313+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e1a8857f9ac5c0cf930bb7e15570-c0cf930bb7e15570] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:59:52.314+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e1a8857f9ac5c0cf930bb7e15570-8570cd8c9393e4f1] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T20:59:52.318+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e1a8857f9ac5c0cf930bb7e15570-8570cd8c9393e4f1] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:02.321+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e1b2ca7a74741609eec10dbf9ee2-1609eec10dbf9ee2] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:02.322+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e1b2ca7a74741609eec10dbf9ee2-a3e77a85234aedac] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:02.325+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e1b2ca7a74741609eec10dbf9ee2-a3e77a85234aedac] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:12.328+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1bc690844feb39b116b731e82f3-b39b116b731e82f3] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:12.329+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1bc690844feb39b116b731e82f3-7d9c5eaec1a67c70] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:12.333+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-4] [68b9e1bc690844feb39b116b731e82f3-7d9c5eaec1a67c70] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:22.335+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1c64a9733e8f3ea9601d1032fcc-f3ea9601d1032fcc] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:22.336+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1c64a9733e8f3ea9601d1032fcc-b4965efbce78d031] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:22.340+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-5] [68b9e1c64a9733e8f3ea9601d1032fcc-b4965efbce78d031] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:32.343+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e1d05d17b5553f9ca01f11705bad-3f9ca01f11705bad] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:32.344+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e1d05d17b5553f9ca01f11705bad-178665236cbe5b61] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:32.347+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-6] [68b9e1d05d17b5553f9ca01f11705bad-178665236cbe5b61] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:42.349+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1da02346918c3973dd9878bedde-c3973dd9878bedde] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:42.350+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1da02346918c3973dd9878bedde-f7ad900cd9688445] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:42.353+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-7] [68b9e1da02346918c3973dd9878bedde-f7ad900cd9688445] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:00:52.356+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e1e47ed0f9d144664ac5eb16fbc2-44664ac5eb16fbc2] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:00:52.357+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e1e47ed0f9d144664ac5eb16fbc2-f6dcd996ffb01425] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:00:52.361+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-8] [68b9e1e47ed0f9d144664ac5eb16fbc2-f6dcd996ffb01425] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:01:02.363+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1eeebbbc4c2e5eb008461fd47ff-e5eb008461fd47ff] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:01:02.364+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1eeebbbc4c2e5eb008461fd47ff-691b8fbe1229fc5d] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:01:02.368+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-9] [68b9e1eeebbbc4c2e5eb008461fd47ff-691b8fbe1229fc5d] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:01:12.371+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1f889565e54c45704a85cfa2d75-c45704a85cfa2d75] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:01:12.372+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1f889565e54c45704a85cfa2d75-41b325c36c634e6b] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:01:12.375+02:00 DEBUG 183709 --- [auth-server] [-auto-1-exec-10] [68b9e1f889565e54c45704a85cfa2d75-41b325c36c634e6b] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:01:22.378+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e202af887ba74a7a58dde51d0f14-4a7a58dde51d0f14] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:01:22.378+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e202af887ba74a7a58dde51d0f14-f97bd9043bfd681e] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:01:22.382+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-1] [68b9e202af887ba74a7a58dde51d0f14-f97bd9043bfd681e] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:01:32.384+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e20cb342428459f6c719806e348c-59f6c719806e348c] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:01:32.385+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e20cb342428459f6c719806e348c-7c09588e7950bea4] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:01:32.389+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-2] [68b9e20cb342428459f6c719806e348c-7c09588e7950bea4] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T21:01:42.392+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e216f82ace0697a402ccbab341f4-97a402ccbab341f4] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T21:01:42.392+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e216f82ace0697a402ccbab341f4-78393ed67290c19e] o.s.security.web.FilterChainProxy : Secured GET /actuator/health +2025-09-04T21:01:42.396+02:00 DEBUG 183709 --- [auth-server] [o-auto-1-exec-3] [68b9e216f82ace0697a402ccbab341f4-78393ed67290c19e] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext diff --git a/auth-server.log b/auth-server.log new file mode 100644 index 00000000..73b34106 --- /dev/null +++ b/auth-server.log @@ -0,0 +1,125 @@ +nohup: Eingabe wird ignoriert +To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.0.0/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation. +Daemon will be stopped at the end of the build +Type-safe project accessors is an incubating feature. +> Task :core:core-domain:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :infrastructure:auth:auth-client:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :platform:platform-dependencies:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :infrastructure:auth:auth-server:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :core:core-utils:checkKotlinGradlePluginConfigurationErrors SKIPPED +> Task :core:core-utils:jvmProcessResources NO-SOURCE +> Task :infrastructure:auth:auth-client:processResources NO-SOURCE +> Task :core:core-utils:processJvmMainResources SKIPPED +> Task :platform:platform-dependencies:compileKotlin NO-SOURCE +> Task :platform:platform-dependencies:compileJava NO-SOURCE +> Task :platform:platform-dependencies:processResources NO-SOURCE +> Task :platform:platform-dependencies:classes UP-TO-DATE +> Task :infrastructure:auth:auth-server:processResources UP-TO-DATE +> Task :platform:platform-dependencies:jar UP-TO-DATE +> Task :core:core-domain:compileKotlinJvm UP-TO-DATE +> Task :core:core-domain:compileJvmMainJava NO-SOURCE +> Task :core:core-domain:jvmProcessResources NO-SOURCE +> Task :core:core-domain:processJvmMainResources SKIPPED +> Task :core:core-domain:jvmMainClasses UP-TO-DATE +> Task :core:core-domain:jvmJar UP-TO-DATE +> Task :core:core-utils:compileKotlinJvm UP-TO-DATE +> Task :core:core-utils:compileJvmMainJava NO-SOURCE +> Task :core:core-utils:jvmMainClasses UP-TO-DATE +> Task :core:core-utils:jvmJar UP-TO-DATE +> Task :infrastructure:auth:auth-client:compileKotlin UP-TO-DATE +> Task :infrastructure:auth:auth-client:compileJava NO-SOURCE +> Task :infrastructure:auth:auth-client:classes UP-TO-DATE +> Task :infrastructure:auth:auth-client:jar UP-TO-DATE +> Task :infrastructure:auth:auth-server:compileKotlin UP-TO-DATE +> Task :infrastructure:auth:auth-server:compileJava NO-SOURCE +> Task :infrastructure:auth:auth-server:classes UP-TO-DATE +> Task :infrastructure:auth:auth-server:resolveMainClassName UP-TO-DATE + +> Task :infrastructure:auth:auth-server:bootRun + + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + + :: Spring Boot :: (v3.5.5) + +2025-09-04T20:54:29.272+02:00 INFO 180100 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Starting AuthServerApplicationKt using Java 21.0.8 with PID 180100 (/home/stefan-mo/WsMeldestelle/Meldestelle/infrastructure/auth/auth-server/build/classes/kotlin/main started by stefan-mo in /home/stefan-mo/WsMeldestelle/Meldestelle/infrastructure/auth/auth-server) +2025-09-04T20:54:29.274+02:00 DEBUG 180100 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Running with Spring Boot v3.5.5, Spring v6.2.10 +2025-09-04T20:54:29.275+02:00 INFO 180100 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : No active profile set, falling back to 1 default profile: "default" +2025-09-04T20:54:30.158+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.s.cloud.context.scope.GenericScope : BeanFactory id=805ebb45-6a2f-3494-8e7a-1901c257e268 +2025-09-04T20:54:30.357+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) +2025-09-04T20:54:30.368+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.apache.catalina.core.StandardService : Starting service [Tomcat] +2025-09-04T20:54:30.369+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.44] +2025-09-04T20:54:30.412+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext +2025-09-04T20:54:30.413+02:00 INFO 180100 --- [auth-server] [ main] [ ] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1106 ms +[SECURITY WARNING] Using default JWT secret – DO NOT use this in production! +2025-09-04T20:54:31.342+02:00 DEBUG 180100 --- [auth-server] [ main] [ ] swordEncoderAuthenticationManagerBuilder : No authenticationProviders and no parentAuthenticationManager defined. Returning null. +2025-09-04T20:54:31.406+02:00 DEBUG 180100 --- [auth-server] [ main] [ ] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with filters: DisableEncodeUrlFilter, WebAsyncManagerIntegrationFilter, SecurityContextHolderFilter, HeaderWriterFilter, CsrfFilter, LogoutFilter, BearerTokenAuthenticationFilter, AuthenticationFilter, RequestCacheAwareFilter, SecurityContextHolderAwareRequestFilter, AnonymousAuthenticationFilter, ExceptionTranslationFilter, AuthorizationFilter +2025-09-04T20:54:31.421+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '/actuator' +2025-09-04T20:54:31.515+02:00 WARN 180100 --- [auth-server] [ main] [ ] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. +2025-09-04T20:54:31.568+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 39071 (http) with context path '/' +2025-09-04T20:54:31.570+02:00 INFO 180100 --- [auth-server] [ main] [ ] o.s.c.c.s.ConsulServiceRegistry : Registering service with consul: NewService{id='auth-server-0', name='auth-server', tags=[], address='10.0.0.18', meta={secure=false}, port=39071, enableTagOverride=null, check=Check{script='null', dockerContainerID='null', shell='null', interval='10s', ttl='null', http='http://10.0.0.18:39071/actuator/health', method='null', header={}, tcp='null', timeout='null', deregisterCriticalServiceAfter='null', tlsSkipVerify=null, status='null', grpc='null', grpcUseTLS=null}, checks=null} +2025-09-04T20:54:31.623+02:00 INFO 180100 --- [auth-server] [ main] [ ] a.m.i.auth.AuthServerApplicationKt : Started AuthServerApplicationKt in 2.655 seconds (process running for 2.978) +2025-09-04T20:54:34.806+02:00 INFO 180100 --- [auth-server] [o-auto-1-exec-1] [ ] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' +2025-09-04T20:54:34.806+02:00 INFO 180100 --- [auth-server] [o-auto-1-exec-1] [ ] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' +2025-09-04T20:54:34.808+02:00 INFO 180100 --- [auth-server] [o-auto-1-exec-1] [ ] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms +2025-09-04T20:54:34.827+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-1] [68b9e06ab81d812d567347b316402ba5-567347b316402ba5] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:54:34.838+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-1] [68b9e06ab81d812d567347b316402ba5-b753b7538420bbf3] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:54:44.851+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-2] [68b9e074c2af6910cc4b16de7c5daa44-cc4b16de7c5daa44] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:54:44.852+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-2] [68b9e074c2af6910cc4b16de7c5daa44-4670a27276f588d2] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:54:54.857+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-3] [68b9e07e18e2d53578899edab52eedda-78899edab52eedda] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:54:54.859+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-3] [68b9e07e18e2d53578899edab52eedda-ea5ed6b01f42e1c5] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:54:55.900+02:00 WARN 180100 --- [auth-server] [/api/v2/spans}}] [ ] z.r.i.AsyncReporter$BoundedAsyncReporter : Spans were dropped due to exceptions. All subsequent errors will be logged at FINE level. +2025-09-04T20:54:55.900+02:00 WARN 180100 --- [auth-server] [/api/v2/spans}}] [ ] z.r.i.AsyncReporter$BoundedAsyncReporter : Dropped 4 spans due to ConnectException() + +java.net.ConnectException: null + at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:955) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133) ~[java.net.http:na] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinHttpClientSender.postSpans(ZipkinHttpClientSender.java:60) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.HttpSender.postSpans(HttpSender.java:69) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at org.springframework.boot.actuate.autoconfigure.tracing.zipkin.HttpSender.postSpans(HttpSender.java:41) ~[spring-boot-actuator-autoconfigure-3.5.5.jar:3.5.5] + at zipkin2.reporter.BaseHttpSender.send(BaseHttpSender.java:123) ~[zipkin-reporter-3.5.1.jar:na] + at zipkin2.reporter.internal.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:266) ~[zipkin-reporter-3.5.1.jar:na] + at zipkin2.reporter.internal.AsyncReporter$Flusher.run(AsyncReporter.java:352) ~[zipkin-reporter-3.5.1.jar:na] + at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na] +Caused by: java.net.ConnectException: null + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1066) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:227) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:280) ~[java.net.http:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$2(PlainHttpConnection.java:238) ~[java.net.http:na] + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[na:na] + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[na:na] + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[na:na] + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na] + ... 1 common frames omitted +Caused by: java.nio.channels.ClosedChannelException: null + at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:202) ~[na:na] + at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:786) ~[na:na] + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:874) ~[na:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:210) ~[java.net.http:na] + at java.base/java.security.AccessController.doPrivileged(AccessController.java:571) ~[na:na] + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:212) ~[java.net.http:na] + ... 9 common frames omitted + +2025-09-04T20:54:55.957+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-4] [68b9e07fd3915fc050ac853ad7cb2509-50ac853ad7cb2509] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:54:55.958+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-4] [68b9e07fd3915fc050ac853ad7cb2509-e16aa32d5fdf3d31] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:54:55.967+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-4] [68b9e07fd3915fc050ac853ad7cb2509-d0ddfc80742273ed] o.s.s.w.s.HttpSessionRequestCache : Saved request http://localhost:39071/actuator/health?continue to session +2025-09-04T20:55:04.867+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-6] [68b9e08839274bcbc77904d7c8f2e483-c77904d7c8f2e483] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:04.868+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-6] [68b9e08839274bcbc77904d7c8f2e483-9bb9848c518a792d] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:55:14.872+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-7] [68b9e092339fa29e2ac7441cf39d0cf9-2ac7441cf39d0cf9] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:14.874+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-7] [68b9e092339fa29e2ac7441cf39d0cf9-3d19a1baf3d5aa0d] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:55:24.879+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-8] [68b9e09ce7a919dae371b9bcde99c81d-e371b9bcde99c81d] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:24.880+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-8] [68b9e09ce7a919dae371b9bcde99c81d-0ce6e2b8eba0d634] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:55:34.885+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-9] [68b9e0a6e050dbbeba1b138422eb0531-ba1b138422eb0531] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:34.886+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-9] [68b9e0a6e050dbbeba1b138422eb0531-f030d9e5a078237d] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:55:44.891+02:00 DEBUG 180100 --- [auth-server] [-auto-1-exec-10] [68b9e0b0f185ce98140e1282ccfe8ede-140e1282ccfe8ede] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:44.892+02:00 DEBUG 180100 --- [auth-server] [-auto-1-exec-10] [68b9e0b0f185ce98140e1282ccfe8ede-8706afb37cdb9409] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:55:54.896+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-1] [68b9e0ba032915da05cf4cf6adb72a28-05cf4cf6adb72a28] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:55:54.897+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-1] [68b9e0ba032915da05cf4cf6adb72a28-1ba3f6466fde237e] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext +2025-09-04T20:56:04.901+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-2] [68b9e0c45d2812940176614389066961-0176614389066961] o.s.security.web.FilterChainProxy : Securing GET /actuator/health +2025-09-04T20:56:04.902+02:00 DEBUG 180100 --- [auth-server] [o-auto-1-exec-2] [68b9e0c45d2812940176614389066961-0b60ba7403c1654e] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext diff --git a/client/web-app/src/jsMain/kotlin/at/mocode/client/web/AppStylesheet.kt b/client/web-app/src/jsMain/kotlin/at/mocode/client/web/AppStylesheet.kt index c4238f3f..f76cead3 100644 --- a/client/web-app/src/jsMain/kotlin/at/mocode/client/web/AppStylesheet.kt +++ b/client/web-app/src/jsMain/kotlin/at/mocode/client/web/AppStylesheet.kt @@ -109,13 +109,4 @@ object AppStylesheet : StyleSheet() { property("vertical-align", "middle") } - @Suppress("unused") - private val spinKeyframes = keyframes { - 0.percent { - transform { rotate(0.deg) } - } - 100.percent { - transform { rotate(360.deg) } - } - } } diff --git a/infrastructure/auth/auth-server/src/main/kotlin/at/mocode/infrastructure/auth/config/SecurityConfiguration.kt b/infrastructure/auth/auth-server/src/main/kotlin/at/mocode/infrastructure/auth/config/SecurityConfiguration.kt new file mode 100644 index 00000000..d6cb63b4 --- /dev/null +++ b/infrastructure/auth/auth-server/src/main/kotlin/at/mocode/infrastructure/auth/config/SecurityConfiguration.kt @@ -0,0 +1,33 @@ +package at.mocode.infrastructure.auth.config + +import org.springframework.context.annotation.Bean +import org.springframework.context.annotation.Configuration +import org.springframework.security.config.annotation.web.builders.HttpSecurity +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity +import org.springframework.security.web.SecurityFilterChain + +/** + * Spring Security Konfiguration für den Auth-Server. + * Ermöglicht öffentlichen Zugriff auf Actuator Health-Endpoints für Consul Health Checks. + */ +@Configuration +@EnableWebSecurity +class SecurityConfiguration { + + @Bean + fun filterChain(http: HttpSecurity): SecurityFilterChain { + return http + .authorizeHttpRequests { authz -> + authz + // Erlaubt öffentlichen Zugriff auf Health-Endpoints für Consul + .requestMatchers("/actuator/health", "/actuator/health/**").permitAll() + .requestMatchers("/actuator/info").permitAll() + // Alle anderen Endpoints benötigen Authentifizierung + .anyRequest().authenticated() + } + .oauth2ResourceServer { oauth2 -> + oauth2.jwt { } + } + .build() + } +} diff --git a/infrastructure/auth/auth-server/src/main/resources/application.yml b/infrastructure/auth/auth-server/src/main/resources/application.yml new file mode 100644 index 00000000..2a416df7 --- /dev/null +++ b/infrastructure/auth/auth-server/src/main/resources/application.yml @@ -0,0 +1,52 @@ +spring: + application: + name: auth-server + + cloud: + consul: + discovery: + enabled: false + config: + enabled: false + + security: + oauth2: + resourceserver: + jwt: + # This will be configured via environment variables in production + jwk-set-uri: http://localhost:8080/realms/meldestelle/protocol/openid-connect/certs + +server: + port: 0 + +management: + endpoints: + web: + exposure: + include: health,info + base-path: /actuator + endpoint: + health: + show-details: always + show-components: always + security: + enabled: false + +logging: + level: + at.mocode.infrastructure.auth: DEBUG + org.springframework.security: DEBUG + org.springframework.cloud.consul: INFO + +# Keycloak configuration +keycloak: + auth-server-url: http://localhost:8080 + realm: meldestelle + resource: auth-server + credentials: + secret: your-client-secret-here + +# JWT configuration (development only - use proper secrets in production) +jwt: + secret: dev-secret-key-change-in-production + expiration: 86400000 # 24 hours in milliseconds diff --git a/infrastructure/gateway/src/main/resources/application.yml b/infrastructure/gateway/src/main/resources/application.yml index cea0a297..62de4283 100644 --- a/infrastructure/gateway/src/main/resources/application.yml +++ b/infrastructure/gateway/src/main/resources/application.yml @@ -1,6 +1,6 @@ # Port, auf dem das Gateway läuft server: - port: 8081 + port: 8080 # Optimierte Netty-Konfiguration für reaktive Anwendungen netty: connection-timeout: 5s @@ -28,11 +28,10 @@ spring: health-check-interval: 10s instance-id: ${spring.application.name}-${server.port}-${random.uuid} gateway: - # HTTP Client-Timeouts für stabile Upstream-Verbindungen server: webflux: httpclient: - connect-timeout: 5000 # in Millisekunden + connect-timeout: 5000 response-timeout: 30s pool: max-idle-time: 15s @@ -70,7 +69,6 @@ spring: maxBackoff: 500ms factor: 2 basedOnPreviousValue: false - # Sicherheits-Header für erweiterten Schutz - name: AddResponseHeader args: name: X-Content-Type-Options @@ -92,7 +90,6 @@ spring: name: Cache-Control value: no-cache, no-store, must-revalidate routes: - # Health Check und Gateway Info Routes - id: gateway-info-route uri: http://localhost:${server.port} predicates: @@ -101,8 +98,6 @@ spring: filters: - SetStatus=200 - SetResponseHeader=Content-Type,application/json - - # Members Service Routes - id: members-service-route uri: lb://members-service predicates: @@ -113,8 +108,6 @@ spring: args: name: membersCircuitBreaker fallbackUri: forward:/fallback/members - - # Horses Service Routes - id: horses-service-route uri: lb://horses-service predicates: @@ -125,8 +118,6 @@ spring: args: name: horsesCircuitBreaker fallbackUri: forward:/fallback/horses - - # Events Service Routes - id: events-service-route uri: lb://events-service predicates: @@ -137,8 +128,6 @@ spring: args: name: eventsCircuitBreaker fallbackUri: forward:/fallback/events - - # Masterdata Service Routes - id: masterdata-service-route uri: lb://masterdata-service predicates: @@ -149,8 +138,6 @@ spring: args: name: masterdataCircuitBreaker fallbackUri: forward:/fallback/masterdata - - # Auth Service Routes (falls vorhanden) - id: auth-service-route uri: lb://auth-service predicates: @@ -161,21 +148,15 @@ spring: args: name: authCircuitBreaker fallbackUri: forward:/fallback/auth - - # Ping Service Routes (bestehend) - id: ping-service-route uri: lb://ping-service predicates: - Path=/api/ping/** filters: - StripPrefix=1 - # Disable weight calculation filter to prevent blocking operations - filter: - weight: - enabled: false - # Verbesserte CORS-Konfiguration - # Antwort-Header bereinigen und globale Filter - # Route-Definitionen mit Service Discovery + filter: + weight: + enabled: false # Circuit Breaker Konfiguration resilience4j: @@ -295,3 +276,5 @@ logging: max-file-size: 100MB total-size-cap: 1GB max-history: 30 + + diff --git a/temp/ping-service/build.gradle.kts b/temp/ping-service/build.gradle.kts index 2b90106b..720d3124 100644 --- a/temp/ping-service/build.gradle.kts +++ b/temp/ping-service/build.gradle.kts @@ -38,6 +38,9 @@ dependencies { // Web starter for REST endpoints implementation(libs.spring.boot.starter.web) + // Kotlin reflection for Spring Boot Kotlin serialization + implementation("org.jetbrains.kotlin:kotlin-reflect") + // Validation for request/response validation implementation(libs.spring.boot.starter.validation) diff --git a/temp/ping-service/src/main/kotlin/at/mocode/temp/pingservice/PingController.kt b/temp/ping-service/src/main/kotlin/at/mocode/temp/pingservice/PingController.kt index b636acf3..548f29e9 100644 --- a/temp/ping-service/src/main/kotlin/at/mocode/temp/pingservice/PingController.kt +++ b/temp/ping-service/src/main/kotlin/at/mocode/temp/pingservice/PingController.kt @@ -5,12 +5,15 @@ import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.bind.annotation.RestController @RestController -class PingController { +class PingController( + private val pingService: PingServiceCircuitBreaker +) { /** * Standard ping endpoint - maintains backward compatibility + * NOW HANDLES BOTH /ping AND /ping/ping paths for Gateway compatibility */ - @GetMapping("/ping") + @GetMapping("/ping", "/ping/ping") fun ping(): Map { return mapOf("status" to "pong") } @@ -20,7 +23,8 @@ class PingController { */ @GetMapping("/ping/enhanced") fun enhancedPing(@RequestParam(defaultValue = "false") simulate: Boolean): Map { - return mapOf("status" to "pong", "message" to "Circuit breaker not available") + // Delegate to service with circuit breaker + return pingService.ping(simulateFailure = simulate) } /** @@ -28,14 +32,20 @@ class PingController { */ @GetMapping("/ping/health") fun health(): Map { - return mapOf("status" to "UP", "message" to "Circuit breaker not available") + return pingService.healthCheck() } /** * Endpoint to test circuit breaker behavior by forcing failures + * Uses simulate=true to increase chance of fallback */ @GetMapping("/ping/test-failure") fun testFailure(): Map { - return mapOf("status" to "error", "message" to "Circuit breaker not available") + return try { + pingService.ping(simulateFailure = true) + } catch (ex: Exception) { + // Although CircuitBreaker should handle it, ensure safe fallback + pingService.fallbackPing(simulateFailure = true, exception = ex) + } } }