2020-02-09 22:30:02 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package iam_pb;
|
|
|
|
|
2022-07-29 07:17:28 +00:00
|
|
|
option go_package = "github.com/seaweedfs/seaweedfs/weed/pb/iam_pb";
|
2020-02-09 22:30:02 +00:00
|
|
|
option java_package = "seaweedfs.client";
|
|
|
|
option java_outer_classname = "IamProto";
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
service SeaweedIdentityAccessManagement {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
2020-02-17 20:31:59 +00:00
|
|
|
message S3ApiConfiguration {
|
2020-02-09 22:30:02 +00:00
|
|
|
repeated Identity identities = 1;
|
2023-09-25 15:34:12 +00:00
|
|
|
repeated Account accounts = 2;
|
2020-02-09 22:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Identity {
|
|
|
|
string name = 1;
|
|
|
|
repeated Credential credentials = 2;
|
|
|
|
repeated string actions = 3;
|
2023-09-25 15:34:12 +00:00
|
|
|
Account account = 4;
|
2020-02-09 22:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Credential {
|
|
|
|
string access_key = 1;
|
|
|
|
string secret_key = 2;
|
|
|
|
// uint64 expiration = 3;
|
|
|
|
// bool is_disabled = 4;
|
|
|
|
}
|
|
|
|
|
2023-09-25 15:34:12 +00:00
|
|
|
message Account {
|
|
|
|
string id = 1;
|
|
|
|
string display_name = 2;
|
|
|
|
string email_address = 3;
|
|
|
|
}
|
|
|
|
|
2020-02-09 22:30:02 +00:00
|
|
|
/*
|
|
|
|
message Policy {
|
|
|
|
repeated Statement statements = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Statement {
|
|
|
|
repeated Action action = 1;
|
|
|
|
repeated Resource resource = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Action {
|
|
|
|
string action = 1;
|
|
|
|
}
|
|
|
|
message Resource {
|
|
|
|
string bucket = 1;
|
|
|
|
// string path = 2;
|
|
|
|
}
|
2022-07-29 07:17:28 +00:00
|
|
|
*/
|