Skip to content

Commit

Permalink
feat: make AKSK optional (#376)
Browse files Browse the repository at this point in the history
Signed-off-by: Zyyeric <[email protected]>
  • Loading branch information
Zyyeric authored Aug 19, 2024
1 parent 63caf54 commit d13fe01
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 120 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.0.151"
version = "2.0.152"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
181 changes: 92 additions & 89 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

52 changes: 30 additions & 22 deletions pkg/apis/common/v2/common.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ message ObjectStorage {
// Endpoint is the endpoint of the object storage service.
optional string endpoint = 2 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
// Access key that used to access the object storage service.
string access_key_id = 3 [(validate.rules).string.min_len = 1];
optional string access_key_id = 3 [(validate.rules).string.min_len = 1];
// Access secret that used to access the object storage service.
string access_key_secret = 4 [(validate.rules).string.min_len = 1];
optional string access_key_secret = 4 [(validate.rules).string.min_len = 1];
// Session token that used to access s3 storage service.
optional string session_token = 5 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
// Local path to credential file for Google Cloud Storage service OAuth2 authentication.
Expand Down
4 changes: 2 additions & 2 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ message ObjectStorage {
// Endpoint is the endpoint of the object storage service.
optional string endpoint = 2;
// Access key that used to access the object storage service.
string access_key_id = 3;
optional string access_key_id = 3;
// Access secret that used to access the object storage service.
string access_key_secret = 4;
optional string access_key_secret = 4;
// Session token that used to access s3 storage service.
optional string session_token = 5;
// Local path to credential file for Google Cloud Storage service OAuth2 authentication.
Expand Down
8 changes: 4 additions & 4 deletions src/common.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,11 @@ pub struct ObjectStorage {
#[prost(string, optional, tag = "2")]
pub endpoint: ::core::option::Option<::prost::alloc::string::String>,
/// Access key that used to access the object storage service.
#[prost(string, tag = "3")]
pub access_key_id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub access_key_id: ::core::option::Option<::prost::alloc::string::String>,
/// Access secret that used to access the object storage service.
#[prost(string, tag = "4")]
pub access_key_secret: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub access_key_secret: ::core::option::Option<::prost::alloc::string::String>,
/// Session token that used to access s3 storage service.
#[prost(string, optional, tag = "5")]
pub session_token: ::core::option::Option<::prost::alloc::string::String>,
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.

0 comments on commit d13fe01

Please sign in to comment.