Skip to content

Commit 1cc84e2

Browse files
committed
Redact sse_c_key and sse_c_key_md5
1 parent 19079b5 commit 1cc84e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/create_secret_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ unique_ptr<BaseSecret> CreateS3SecretFunctions::CreateSecretFunctionInternal(Cli
4848
}
4949

5050
auto secret = make_uniq<KeyValueSecret>(scope, input.type, input.provider, input.name);
51-
secret->redact_keys = {"secret", "session_token"};
51+
secret->redact_keys = {"secret", "session_token", "sse_c_key", "sse_c_key_md5"};
5252

5353
// for r2 we can set the endpoint using the account id
5454
if (input.type == "r2" && input.options.find("account_id") != input.options.end()) {

src/s3fs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ unique_ptr<KeyValueSecret> CreateSecret(vector<string> &prefix_paths_p, string &
278278
return_value->secret_map["bearer_token"] = params.oauth2_bearer_token;
279279

280280
//! Set redact keys
281-
return_value->redact_keys = {"secret", "session_token"};
281+
return_value->redact_keys = {"secret", "session_token", "sse_c_key", "sse_c_key_md5"};
282282
if (!params.oauth2_bearer_token.empty()) {
283283
return_value->redact_keys.insert("bearer_token");
284284
}

0 commit comments

Comments
 (0)