Skip to content

Commit

Permalink
merge: Merge pull request #75 from ArunaStorage/cors-additions
Browse files Browse the repository at this point in the history
[feature] Cors additions / GetTokenFromSecret
  • Loading branch information
St4NNi authored Jun 1, 2023
2 parents e9e6214 + 677a2a0 commit 6716502
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aruna/api/google
Submodule google updated 1955 files
11 changes: 11 additions & 0 deletions aruna/api/internal/v1/authorize.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -54,3 +55,13 @@ message GetSecretResponse {
Authorization authorization = 1;
}


message GetTokenFromSecretRequest {
Authorization authorization = 1;
}

message GetTokenFromSecretResponse {
string token = 1;
}


7 changes: 7 additions & 0 deletions aruna/api/internal/v1/proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6716502

Please sign in to comment.