Skip to content

Add service_account_mgr_id field at ServiceAccountInfo #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 36 additions & 20 deletions proto/spaceone/api/identity/v2/service_account.proto
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ service ServiceAccount {
}

//{
// "name": "woony-service-account",
// "name": "wonny-service-account",
// "data": {
// "account_id": "a1b2c3d4e5f6"
// },
@@ -87,6 +87,8 @@ service ServiceAccount {
// "aws_access_key_id": "a1b2c3d4e5f6",
// "aws_secret_access_key": "a1b2c3d4e5f6"
// },
// "tags": {},
// "service_account_mgr_id": "[email protected]",
// "project_id": "project-a1b2c3d4e5f6"
//}
message CreateServiceAccountRequest {
@@ -100,11 +102,20 @@ message CreateServiceAccountRequest {
// +optional
google.protobuf.Struct tags = 6;
// +optional
string trusted_account_id = 21;
string project_id = 22;
string project_id = 21;
string trusted_account_id = 22;
// service account manager should be in the same domain and this user will be invited automatically in project.
// +optional
string service_account_mgr_id = 23;
}

//{
// "name": "cloudforet-service-account 2",
// "data": {
// "account_id": "g7h8i9j1k2l3"
// },
// "tags": {},
// "service_account_mgr_id": "[email protected]"
// "service_account_id": "sa-a1b2c3d4e5f6",
// "project_id": "project-a1b2c3d4e5f6"
//}
@@ -117,7 +128,9 @@ message UpdateServiceAccountRequest {
// +optional
google.protobuf.Struct tags = 4;
// +optional
string project_id = 23;
string project_id = 21;
// +optional
string service_account_mgr_id = 22;
}

//{
@@ -144,19 +157,20 @@ message ServiceAccountRequest {
}

//{
// "created_at": "2024-11-18T05:39:08.732Z",
// "state": "ACTIVE",
// "data": {
// "account_id": "a1b2c3d4e5f6"
// },
// "domain_id": "domain-a1b2c3d4e5f6",
// "name": "test-service-account",
// "project_id": "project-a1b2c3d4e5f6",
// "provider": "aws",
// "secret_id": "secret-a1b2c3d4e5f6",
// "secret_schema_id": "aws-secret-access-key",
// "service_account_mgr_id": "[email protected]",
// "service_account_id": "sa-a1b2c3d4e5f6",
// "state": "ACTIVE",
// "project_id": "project-a1b2c3d4e5f6",
// "workspace_id": "workspace-a1b2c3d4e5f6"
// "domain_id": "domain-a1b2c3d4e5f6",
// "created_at": "2024-11-18T05:39:08.732Z"
//}
message ServiceAccountInfo {
enum State {
@@ -175,13 +189,13 @@ message ServiceAccountInfo {
google.protobuf.Struct tags = 6;
string reference_id = 7;
bool is_managed = 8;

string domain_id = 21;
string workspace_id = 22;
string project_id = 23;
string trusted_account_id = 24;
string secret_schema_id = 25;
string secret_id = 26;
string service_account_mgr_id = 27;
string created_at = 31;
string last_synced_at = 32;
string deleted_at = 33;
@@ -237,34 +251,36 @@ message ServiceAccountSearchQuery {
//{
// "results": [
// {
// "created_at": "2024-11-18T06:03:09.191Z",
// "name": "woony-service-account",
// "data": {
// "account_id": "a1b2c3d4e5f6"
// },
// "domain_id": "domain-a1b2c3d4e5f6",
// "name": "woony-service-account",
// "project_id": "project-a1b2c3d4e5f6",
// "provider": "aws",
// "service_account_id": "sa-a1b2c3d4e5f6",
// "state": "ACTIVE",
// "tags": {},
// "service_account_mgr_id": "[email protected]",
// "service_account_id": "sa-a1b2c3d4e5f6",
// "project_id": "project-a1b2c3d4e5f6",
// "workspace_id": "workspace-a1b2c3d4e5f6"
// "domain_id": "domain-a1b2c3d4e5f6",
// "created_at": "2024-11-18T06:03:09.191Z",
// },
// {
// "created_at": "2024-11-18T05:48:49.783Z",
// "name": "cloudforet-service-account",
// "state": "ACTIVE",
// "data": {
// "account_id": "g7h8i9j1k2l3"
// },
// "domain_id": "domain-a1b2c3d4e5f6",
// "name": "cloudforet-service-account",
// "project_id": "project-g7h8i9j1k2l3",
// "provider": "aws",
// "tags": {},
// "secret_id": "secret-g7h8i9j1k2l3",
// "secret_schema_id": "aws-secret-access-key",
// "service_account_mgr_id": "[email protected]",
// "service_account_id": "sa-g7h8i9j1k2l3",
// "state": "ACTIVE",
// "tags": {},
// "project_id": "project-g7h8i9j1k2l3",
// "workspace_id": "workspace-g7h8i9j1k2l3"
// "domain_id": "domain-a1b2c3d4e5f6",
// "created_at": "2024-11-18T05:48:49.783Z",
// }
// ],
// "total_count": 2