@@ -277,6 +277,16 @@ async function create_namespace_resource(req) {
277277 } ;
278278 }
279279
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+
280290 namespace_resource = new_namespace_resource_defaults ( name , req . system . _id , req . account . _id , _ . omitBy ( {
281291 aws_sts_arn : connection . aws_sts_arn ,
282292 endpoint : connection . endpoint ,
@@ -288,6 +298,7 @@ async function create_namespace_resource(req) {
288298 endpoint_type : connection . endpoint_type || 'AWS' ,
289299 region : connection . region ,
290300 azure_log_access_keys,
301+ gcp_hmac_key,
291302 } , _ . isUndefined ) , undefined , req . rpc_params . access_mode ) ;
292303
293304 const cloud_buckets = await server_rpc . client . bucket . get_cloud_buckets ( {
@@ -1176,6 +1187,7 @@ function get_namespace_resource_extended_info(namespace_resource) {
11761187 secret_key : namespace_resource . connection . secret_key ,
11771188 access_mode : namespace_resource . access_mode ,
11781189 aws_sts_arn : namespace_resource . connection . aws_sts_arn || undefined ,
1190+ gcp_hmac_key : namespace_resource . connection . gcp_hmac_key ,
11791191 } ;
11801192 const nsfs_info = namespace_resource . nsfs_config && {
11811193 fs_root_path : namespace_resource . nsfs_config . fs_root_path ,
0 commit comments