Skip to content

Commit ca65aba

Browse files
authored
feat(api): add security token to ObjectStorage (#537)
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent 9aac8e2 commit ca65aba

File tree

8 files changed

+119
-79
lines changed

8 files changed

+119
-79
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dragonfly-api"
3-
version = "2.1.60"
3+
version = "2.1.61"
44
authors = ["Gaius <gaius.qi@gmail.com>"]
55
edition = "2021"
66
license = "Apache-2.0"

pkg/apis/common/v2/common.pb.go

Lines changed: 91 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/common/v2/common.pb.validate.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/common/v2/common.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ message ObjectStorage {
573573
optional string credential_path = 6 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
574574
// Predefined ACL that used for the Google Cloud Storage service.
575575
optional string predefined_acl = 7 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
576+
// Temporary STS security token for accessing OSS.
577+
optional string security_token = 8 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
576578
}
577579

578580
// HDFS related information.

proto/common.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ message ObjectStorage {
564564
optional string credential_path = 6;
565565
// Predefined ACL that used for the Google Cloud Storage service.
566566
optional string predefined_acl = 7;
567+
// Temporary STS security token for accessing OSS.
568+
optional string security_token = 8;
567569
}
568570

569571
// HDFS related information.

src/common.v2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ pub struct ObjectStorage {
650650
/// Predefined ACL that used for the Google Cloud Storage service.
651651
#[prost(string, optional, tag = "7")]
652652
pub predefined_acl: ::core::option::Option<::prost::alloc::string::String>,
653+
/// Temporary STS security token for accessing OSS.
654+
#[prost(string, optional, tag = "8")]
655+
pub security_token: ::core::option::Option<::prost::alloc::string::String>,
653656
}
654657
/// HDFS related information.
655658
#[derive(serde::Serialize, serde::Deserialize)]

src/descriptor.bin

188 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)