@@ -277,6 +277,16 @@ async function create_namespace_resource(req) {
277
277
} ;
278
278
}
279
279
280
+ let gcp_hmac_key ;
281
+ if ( connection ?. gcp_hmac_key ?. secret_key ) {
282
+ gcp_hmac_key = {
283
+ access_id : connection . gcp_hmac_key . access_id ,
284
+ secret_key : system_store . master_key_manager . encrypt_sensitive_string_with_master_key_id (
285
+ connection . gcp_hmac_key . secret_key , req . account . master_key_id . _id
286
+ )
287
+ } ;
288
+ }
289
+
280
290
namespace_resource = new_namespace_resource_defaults ( name , req . system . _id , req . account . _id , _ . omitBy ( {
281
291
aws_sts_arn : connection . aws_sts_arn ,
282
292
endpoint : connection . endpoint ,
@@ -288,6 +298,7 @@ async function create_namespace_resource(req) {
288
298
endpoint_type : connection . endpoint_type || 'AWS' ,
289
299
region : connection . region ,
290
300
azure_log_access_keys,
301
+ gcp_hmac_key,
291
302
} , _ . isUndefined ) , undefined , req . rpc_params . access_mode ) ;
292
303
293
304
const cloud_buckets = await server_rpc . client . bucket . get_cloud_buckets ( {
@@ -1176,6 +1187,7 @@ function get_namespace_resource_extended_info(namespace_resource) {
1176
1187
secret_key : namespace_resource . connection . secret_key ,
1177
1188
access_mode : namespace_resource . access_mode ,
1178
1189
aws_sts_arn : namespace_resource . connection . aws_sts_arn || undefined ,
1190
+ gcp_hmac_key : namespace_resource . connection . gcp_hmac_key ,
1179
1191
} ;
1180
1192
const nsfs_info = namespace_resource . nsfs_config && {
1181
1193
fs_root_path : namespace_resource . nsfs_config . fs_root_path ,
0 commit comments