Skip to content

Commit 30abbbe

Browse files
authored
feat(s2s_vpn): use secret manager to store connection psk (#2539)
1 parent c5da2b7 commit 30abbbe

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

packages_generated/s2s_vpn/src/v1alpha1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export const unmarshalConnection = (data: unknown): Connection => {
100100
projectId: data.project_id,
101101
region: data.region,
102102
routePropagationEnabled: data.route_propagation_enabled,
103+
secretId: data.secret_id,
104+
secretRevision: data.secret_revision,
103105
status: data.status,
104106
tags: data.tags,
105107
tunnelStatus: data.tunnel_status,

packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ export interface Connection {
156156
* Who initiates the IPsec tunnel.
157157
*/
158158
initiationPolicy: ConnectionInitiationPolicy
159+
/**
160+
* ID of the secret in Secret Manager which contains the PSK.
161+
*/
162+
secretId: string
163+
/**
164+
* Version number of the secret in Secret Manager which contains the PSK.
165+
*/
166+
secretRevision: number
159167
/**
160168
* List of IKE v2 ciphers proposed for the IPsec tunnel.
161169
*/
@@ -450,9 +458,9 @@ export interface CreateConnectionResponse {
450458
*/
451459
connection?: Connection
452460
/**
453-
* New PSK generated for this connection.
461+
* @deprecated Deprecated, use secret_id & secret_revision fields.
454462
*/
455-
preSharedKey: string
463+
preSharedKey?: string
456464
}
457465

458466
export type CreateCustomerGatewayRequest = {
@@ -940,9 +948,9 @@ export interface RenewConnectionPskResponse {
940948
*/
941949
connection?: Connection
942950
/**
943-
* New PSK generated for this connection.
951+
* @deprecated Deprecated, use secret_id & secret_revision fields.
944952
*/
945-
preSharedKey: string
953+
preSharedKey?: string
946954
}
947955

948956
export type SetRoutingPolicyRequest = {

0 commit comments

Comments
 (0)