feat(security): add internal secret handling and Redis integration for bot events

This commit is contained in:
2026-04-28 09:29:05 +02:00
parent c10a4d7e64
commit 1ab6532b0a
50 changed files with 951 additions and 214 deletions
+1
View File
@@ -52,6 +52,7 @@ dependencies {
implementation(project(":modules:api"))
implementation(project(":modules:json"))
implementation(project(":modules:rule"))
implementation(project(":modules:security"))
// Jackson for JSON serialization/deserialization
implementation("com.fasterxml.jackson.core:jackson-databind:${versions["JACKSON"]!!}")
@@ -6,6 +6,10 @@ quarkus:
use-separate-server: false
application:
name: nowchess-io
nowchess:
internal:
secret: ${INTERNAL_SECRET}
smallrye-openapi:
info-title: NowChess IO Service
info-version: 1.0.0
@@ -1,6 +1,7 @@
package de.nowchess.io.service.resource
import de.nowchess.api.game.GameContext
import de.nowchess.security.InternalOnly
import de.nowchess.io.fen.{FenExporter, FenParser}
import de.nowchess.io.pgn.{PgnExporter, PgnParser}
import de.nowchess.io.service.dto.{CombinedExportResponse, ImportFenRequest, ImportPgnRequest, IoErrorDto}
@@ -15,6 +16,7 @@ import org.eclipse.microprofile.openapi.annotations.tags.Tag
@Path("/io")
@ApplicationScoped
@InternalOnly
@Tag(name = "IO", description = "Chess notation import and export")
class IoResource: