fix(policy): avoid logging generated access keys (#2826)

Signed-off-by: houseme <[email protected]>
Co-authored-by: houseme <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: loverustfs <[email protected]>
Co-authored-by: 安正超 <[email protected]>
This commit is contained in:
Henry Guo
2026-05-06 12:56:27 +00:00
committed by GitHub
co-authored by houseme Claude Sonnet 4.6 loverustfs 安正超
parent 41ba34a145
commit 4b36667ba1
+2 -2
View File
@@ -21,7 +21,7 @@ use serde_json::{Value, json};
use std::collections::HashMap;
use std::convert::TryFrom;
use time::OffsetDateTime;
use tracing::warn;
use tracing::debug;
const ACCESS_KEY_MIN_LEN: usize = 3;
const ACCESS_KEY_MAX_LEN: usize = 128;
@@ -144,7 +144,7 @@ pub fn create_new_credentials_with_metadata(
}
};
warn!("create_new_credentials_with_metadata expiration {expiration:?}, access_key: {ak}");
debug!("create_new_credentials_with_metadata expiration {expiration:?}");
let token = utils::generate_jwt(&claims, token_secret)?;