feat(audit): 审计服务配置更新为PostgreSQL数据库并添加MQTT支持

- 将审计服务从MongoDB迁移至PostgreSQL数据库
- 添加MQTT Broker (nanomq) 配置用于消息处理
- 配置JWT认证参数以集成SSO系统
- 增加数据库写入超时、并发消费等性能调优参数
- 更新平台配置文件中添加audit-nanomq数据存储组件
This commit is contained in:
王野 committed 2026-08-06 18:33:37 +08:00
1 parent 44f382230e
commit 699f4a6cb1
3 files changed
+33 -11

No files matched your search

+21 -11
View File
@@ -1,20 +1,30 @@
sharedInfra:
mongo:
host: mongo-service
port: 27017
username: admin
postgres:
host: audit-db-postgres-service
port: 5432
username: postgres
password: "Admin12345"
database: mixingx_audit
rabbitmq:
host: messaging-service
port: 5672
username: guest
password: guest
otlp:
endpoint: http://k8s-dashboard-service:18889
protocol: grpc
audit:
enabled: true
port: 5600
port: 5900
replicas: 2
database: audit-db
pgStorage: 5Gi
mqtt:
brokerHost: "audit-nanomq-service"
brokerPort: 1883
managementPort: 8081
managementUsername: "admin"
managementPassword: "public"
jwt:
issuer: "mixingx-sso"
audience: "mixingx-audit"
consume:
queueCapacity: 128
queueMaxWaitMs: 5000
dbWriteTimeoutMs: 3000
concurrency: 4
+6
View File
@@ -23,6 +23,12 @@ sharedDatastores:
port: 5672
storage: 2Gi
mountPath: /var/lib/rabbitmq
- name: audit-nanomq
image: emqx/nanomq:0.25.2-2
port: 1883
storage: 1Gi
mountPath: /var/lib/nanomq
managementPort: 8081
sharedInfra:
postgres: