feat(sso/ultra/agent/edge): AuditMqttPublisher 注入开关 audit.publisher(默认 NoOp,ADR-0048/0049)
This commit is contained in:
1 parent
c3fbbb0434
commit
9d3e980dde
8 files changed
+51
No files matched your search
@@ -100,6 +100,11 @@ data:
|
||||
{{- if .Values.phaseType }}
|
||||
AGENT_PHASE_TYPE: "{{ .Values.phaseType }}"
|
||||
{{- end }}
|
||||
{{- if .Values.audit.publisher.enabled }}
|
||||
AuditMqttPublisher__BrokerUrl: "{{ .Values.audit.publisher.brokerUrl }}"
|
||||
AuditMqttPublisher__Service: "{{ .Values.audit.publisher.service | default "agent" }}"
|
||||
AuditMqttPublisher__InstanceId: "{{ .Values.audit.publisher.instanceId | default $name }}"
|
||||
{{- end }}
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "{{ .Values.sharedInfra.otlp.endpoint }}"
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: "{{ .Values.sharedInfra.otlp.protocol }}"
|
||||
OTEL_SERVICE_NAME: "{{ $name }}"
|
||||
|
||||
@@ -60,3 +60,11 @@ mqttCredentials: []
|
||||
# - credentialRef: "edge-demo-mqtt"
|
||||
# username: "edge-user"
|
||||
# password: "edge-pass"
|
||||
|
||||
# Audit 事件发布(ADR-0048/0049):指向中心 Audit Broker。
|
||||
# enabled=false 时服务内 AuditMqttPublisher 退化为 NoOp,不发审计事件。
|
||||
# instanceId 默认取单元名(role-site,如 agent-demo-2)。
|
||||
audit:
|
||||
publisher:
|
||||
enabled: false
|
||||
brokerUrl: "mqtt://audit-nanomq-service:1883"
|
||||
Reference in new issue
Block a user