misc: finalized switching of project KMS

This commit is contained in:
Sheen Capadngan
2024-07-30 23:03:53 +05:30
committed by =
parent 7e5c3e8163
commit d918f3ecdf
16 changed files with 333 additions and 167 deletions
@@ -143,7 +143,8 @@ export enum EventType {
CREATE_KMS = "create-kms",
UPDATE_KMS = "update-kms",
DELETE_KMS = "delete-kms",
GET_KMS = "get-kms"
GET_KMS = "get-kms",
UPDATE_PROJECT_KMS = "update-project-kms"
}
interface UserActorMetadata {
@@ -1212,6 +1213,16 @@ interface GetKmsEvent {
};
}
interface UpdateProjectKmsEvent {
type: EventType.UPDATE_PROJECT_KMS;
metadata: {
secretManagerKmsKey: {
id: string;
slug: string;
};
};
}
export type Event =
| GetSecretsEvent
| GetSecretEvent
@@ -1317,4 +1328,5 @@ export type Event =
| CreateKmsEvent
| UpdateKmsEvent
| DeleteKmsEvent
| GetKmsEvent;
| GetKmsEvent
| UpdateProjectKmsEvent;