From 86b4c2ec029fb1eb1e25870b3f866edd1a73546c Mon Sep 17 00:00:00 2001 From: St4NNi Date: Thu, 1 Jun 2023 11:35:59 +0200 Subject: [PATCH 1/3] feat: Added GetTokenFromSecret request, that allows to create a short lived aruna-token from s3 creds --- aruna/api/internal/v1/authorize.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aruna/api/internal/v1/authorize.proto b/aruna/api/internal/v1/authorize.proto index 6a2f4ad1..7a91daf7 100644 --- a/aruna/api/internal/v1/authorize.proto +++ b/aruna/api/internal/v1/authorize.proto @@ -10,6 +10,7 @@ service InternalAuthorizeService { option (google.api.api_visibility).restriction = "INTERNAL"; rpc Authorize(AuthorizeRequest) returns (AuthorizeResponse) {} rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {} + rpc GetTokenFromSecret(GetTokenFromSecretRequest) returns (GetTokenFromSecretResponse) {} } message Authorization { @@ -54,3 +55,13 @@ message GetSecretResponse { Authorization authorization = 1; } + +message GetTokenFromSecretRequest { + Authorization authorization = 1; +} + +message GetTokenFromSecretResponse { + string token = 1; +} + + From bed9002c85603221963b67af6031adbaeb69185e Mon Sep 17 00:00:00 2001 From: St4NNi Date: Thu, 1 Jun 2023 11:39:43 +0200 Subject: [PATCH 2/3] feat: Added CORSConfiguration to GetObjectLocation response, see https://github.com/ArunaStorage/DataProxy/issues/29 --- aruna/api/internal/v1/proxy.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aruna/api/internal/v1/proxy.proto b/aruna/api/internal/v1/proxy.proto index 735b7a7f..867d6968 100644 --- a/aruna/api/internal/v1/proxy.proto +++ b/aruna/api/internal/v1/proxy.proto @@ -133,9 +133,16 @@ message GetObjectLocationRequest { string endpoint_id = 4; } +message CORSConfig { + repeated string allowed_methods = 1; + repeated string allowed_origins = 2; + repeated string allowed_headers = 3; +} + message GetObjectLocationResponse { aruna.api.storage.models.v1.Object object = 1; Location location = 2; + repeated CORSConfig cors_configurations = 3; } message GetCollectionByBucketRequest { From 677a2a057917bef8d1ee883e64129f1541ca03cf Mon Sep 17 00:00:00 2001 From: St4NNi Date: Thu, 1 Jun 2023 11:40:07 +0200 Subject: [PATCH 3/3] chore: Update google dependencies --- aruna/api/google | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aruna/api/google b/aruna/api/google index 4c3b682f..5649269b 160000 --- a/aruna/api/google +++ b/aruna/api/google @@ -1 +1 @@ -Subproject commit 4c3b682f501bb965d34c3d4fc3461edfccf962db +Subproject commit 5649269b4e6d024f45287e1610fb479cf4e726a8