feat: gcp secret sync

This commit is contained in:
Sheen Capadngan
2025-01-24 22:33:56 +08:00
parent c3970d1ea2
commit 58f51411c0
20 changed files with 386 additions and 14 deletions
@@ -1,4 +1,5 @@
export enum AppConnection {
AWS = "aws",
GitHub = "github"
GitHub = "github",
GCP = "gcp"
}
@@ -0,0 +1,13 @@
import { AppConnection } from "../enums";
import { TRootAppConnection } from "./root-connection";
export enum GcpConnectionMethod {
ServiceAccountImpersonation = "service-account-impersonation"
}
export type TGcpConnection = TRootAppConnection & { app: AppConnection.GCP } & {
method: GcpConnectionMethod.ServiceAccountImpersonation;
credentials: {
serviceAccountEmail: string;
};
};
@@ -3,10 +3,13 @@ import { TAppConnectionOption } from "@app/hooks/api/appConnections/types/app-op
import { TAwsConnection } from "@app/hooks/api/appConnections/types/aws-connection";
import { TGitHubConnection } from "@app/hooks/api/appConnections/types/github-connection";
import { TGcpConnection } from "./gcp-connection";
export * from "./aws-connection";
export * from "./gcp-connection";
export * from "./github-connection";
export type TAppConnection = TAwsConnection | TGitHubConnection;
export type TAppConnection = TAwsConnection | TGitHubConnection | TGcpConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "app" | "id">;