From 0c08bfed5b9c3ff6dde0a5e045f7c1c6a7820799 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 27 Jul 2025 02:43:23 +0800 Subject: [PATCH] :bug: Censor some credentials file in pool --- DysonNetwork.Drive/Storage/FilePool.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Drive/Storage/FilePool.cs b/DysonNetwork.Drive/Storage/FilePool.cs index 6d9d4b2..caab4b4 100644 --- a/DysonNetwork.Drive/Storage/FilePool.cs +++ b/DysonNetwork.Drive/Storage/FilePool.cs @@ -1,5 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using System.Text.Json.Serialization; using DysonNetwork.Shared.Data; using NodaTime; @@ -10,8 +11,8 @@ public class RemoteStorageConfig public string Region { get; set; } = string.Empty; public string Bucket { get; set; } = string.Empty; public string Endpoint { get; set; } = string.Empty; - public string SecretId { get; set; } = string.Empty; - public string SecretKey { get; set; } = string.Empty; + [JsonIgnore] public string SecretId { get; set; } = string.Empty; + [JsonIgnore] public string SecretKey { get; set; } = string.Empty; public bool EnableSigned { get; set; } public bool EnableSsl { get; set; } public string? ImageProxy { get; set; }