feat(provisioner): pass owner git ssh key (#13366)

This commit is contained in:
Cian Johnston
2024-05-29 11:43:08 +01:00
committed by GitHub
parent b7edf5bbc7
commit cca3cb1c55
7 changed files with 236 additions and 137 deletions
+8
View File
@@ -231,6 +231,8 @@ export interface Metadata {
templateId: string;
workspaceOwnerName: string;
workspaceOwnerGroups: string[];
workspaceOwnerSshPublicKey: string;
workspaceOwnerSshPrivateKey: string;
}
/** Config represents execution configuration shared by all subsequent requests in the Session */
@@ -842,6 +844,12 @@ export const Metadata = {
for (const v of message.workspaceOwnerGroups) {
writer.uint32(114).string(v!);
}
if (message.workspaceOwnerSshPublicKey !== "") {
writer.uint32(122).string(message.workspaceOwnerSshPublicKey);
}
if (message.workspaceOwnerSshPrivateKey !== "") {
writer.uint32(130).string(message.workspaceOwnerSshPrivateKey);
}
return writer;
},
};