feat(security): add internal secret handling and Redis integration for bot events
This commit is contained in:
@@ -52,6 +52,7 @@ dependencies {
|
||||
|
||||
implementation(project(":modules:api"))
|
||||
implementation(project(":modules:json"))
|
||||
implementation(project(":modules:security"))
|
||||
|
||||
implementation(platform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
|
||||
implementation("io.quarkus:quarkus-rest")
|
||||
|
||||
@@ -6,3 +6,7 @@ quarkus:
|
||||
use-separate-server: false
|
||||
application:
|
||||
name: rule-service
|
||||
|
||||
nowchess:
|
||||
internal:
|
||||
secret: ${INTERNAL_SECRET}
|
||||
|
||||
@@ -5,6 +5,7 @@ import de.nowchess.api.game.GameContext
|
||||
import de.nowchess.api.move.Move
|
||||
import de.nowchess.rules.dto.*
|
||||
import de.nowchess.api.rules.PostMoveStatus
|
||||
import de.nowchess.security.InternalOnly
|
||||
import de.nowchess.rules.sets.DefaultRules
|
||||
import jakarta.enterprise.context.ApplicationScoped
|
||||
import jakarta.ws.rs.*
|
||||
@@ -12,6 +13,7 @@ import jakarta.ws.rs.core.MediaType
|
||||
|
||||
@Path("/api/rules")
|
||||
@ApplicationScoped
|
||||
@InternalOnly
|
||||
class RuleSetResource:
|
||||
private val rules = DefaultRules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user