refactor(logging): standardize protocol and observability events (#3419)

* refactor(logging): standardize object capacity events

* refactor(logging): standardize protocol server events

* refactor(logging): standardize swift protocol events

* refactor(logging): standardize observability events

* refactor(logging): move masking helper and extend guardrails
This commit is contained in:
houseme
2026-06-14 07:14:45 +08:00
committed by GitHub
parent 22460243bf
commit efa89a98ed
48 changed files with 2976 additions and 434 deletions
+11 -1
View File
@@ -274,7 +274,17 @@ pub async fn is_authorized(
let iam_sys = match rustfs_iam::get() {
Ok(sys) => sys,
Err(e) => {
error!("IAM system unavailable: {}", e);
error!(
event = "protocol_gateway_authz_state",
component = "protocols",
subsystem = "gateway",
result = "iam_unavailable",
action = action.as_str(),
bucket = %bucket,
object = %object.unwrap_or_default(),
error = %e,
"protocol gateway authz state changed"
);
return Err(AuthorizationError::IamUnavailable);
}
};