This commit is contained in:
2026-08-25 16:40:50 +08:00
parent 87c5e18ca6
commit eb1a8895ac
14 changed files with 170 additions and 42 deletions
@@ -84,6 +84,8 @@ public class CustomerDimensionInitializationRelay {
String value = failure.getMessage();
if (value == null || value.isBlank()) value = failure.getClass().getSimpleName();
value = value.replaceAll("[\\r\\n\\t]+", " ");
value = value.replaceAll("(?i)Bearer\\s+[^\\s,;]+", "Bearer ***")
.replaceAll("(?i)(token|password)=([^\\s&,;]+)", "$1=***");
return value.length() > 1000 ? value.substring(0, 1000) : value;
}
+3 -1
View File
@@ -25,6 +25,9 @@ spring:
baiyue:
security-event:
event-bridge-url: ${SECURITY_EVENT_BRIDGE_URL:http://event-bridge-overseas:9312}
customer-dimension-initialization:
fixed-delay-ms: ${CUSTOMER_DIMENSION_INITIALIZATION_FIXED_DELAY_MS:5000}
max-attempts: ${CUSTOMER_DIMENSION_INITIALIZATION_MAX_ATTEMPTS:12}
notification:
scheduler-enabled: ${NOTIFICATION_SCHEDULER_ENABLED:false}
dispatch-timeout-seconds: ${NOTIFICATION_DISPATCH_TIMEOUT_SECONDS:300}
@@ -47,4 +50,3 @@ logging:
max-history: "${LOGGING_ROLLING_MAX_HISTORY:7}"
total-size-cap: "${LOGGING_ROLLING_TOTAL_SIZE_CAP:5GB}"
clean-history-on-start: "${LOGGING_ROLLING_CLEAN_HISTORY_ON_START:false}"