You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
635 B

export const EXPORT_MASK_POLICIES = ["masked", "raw"] as const;
export type ExportMaskPolicy = (typeof EXPORT_MASK_POLICIES)[number];
/**
* 标准化后(小写并移除 `_` / `-`)的永不导出字段精确匹配名单。
*/
export const NEVER_EXPORT_FIELD_EXACT_NAMES = [
"password",
"passwordhash",
"resettoken",
"resetpasswordtoken",
"sessionid",
"sessiontoken",
"accesstoken",
"refreshtoken",
"apikey",
"secretkey",
"credential",
] as const;
/**
* masked 策略下优先脱敏的字段关键词(可扩展)。
*/
export const DEFAULT_MASK_FIELD_KEYWORDS = ["email", "phone", "mobile"] as const;