Skip to content

Commit

Permalink
fix: Make sure oss key in config table has been masked (#13388)
Browse files Browse the repository at this point in the history
fix: Make sure oss key has been masked

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Oct 23, 2023
1 parent 7adc1fd commit e097c0f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/query/storages/system/src/configs_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ impl SyncSystemTable for ConfigsTable {
let mut storage_config = config.storage;
storage_config.s3.access_key_id = mask_string(&storage_config.s3.access_key_id, 3);
storage_config.s3.secret_access_key = mask_string(&storage_config.s3.secret_access_key, 3);
storage_config.oss.oss_access_key_id =
mask_string(&storage_config.oss.oss_access_key_id, 3);
storage_config.oss.oss_access_key_secret =
mask_string(&storage_config.oss.oss_access_key_secret, 3);
storage_config.oss.oss_server_side_encryption =
mask_string(&storage_config.oss.oss_server_side_encryption, 3);
storage_config.oss.oss_server_side_encryption_key_id =
mask_string(&storage_config.oss.oss_server_side_encryption_key_id, 3);
storage_config.gcs.credential = mask_string(&storage_config.gcs.credential, 3);
storage_config.azblob.account_name = mask_string(&storage_config.azblob.account_name, 3);
storage_config.azblob.account_key = mask_string(&storage_config.azblob.account_key, 3);
Expand Down

1 comment on commit e097c0f

@vercel
Copy link

@vercel vercel bot commented on e097c0f Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.