Skip to content

Commit 4f5d017

Browse files
committed
TUN-9333: Fix cloudflared tunnel secret rotate
## Summary The tunnel secret is never returned by the API response, therefore, we need to store the tunnel secret and configuration source, sent in the request to update it in the state after the patch is successful.
1 parent aebaede commit 4f5d017

File tree

1 file changed

+2
-2
lines changed
  • internal/services/zero_trust_tunnel_cloudflared

1 file changed

+2
-2
lines changed

internal/services/zero_trust_tunnel_cloudflared/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ func (r *ZeroTrustTunnelCloudflaredResource) Update(ctx context.Context, req res
112112
return
113113
}
114114

115-
configurationSource := state.ConfigSrc
116-
tunnelSecret := state.TunnelSecret
115+
configurationSource := data.ConfigSrc
116+
tunnelSecret := data.TunnelSecret
117117

118118
dataBytes, err := data.MarshalJSONForUpdate(*state)
119119
if err != nil {

0 commit comments

Comments
 (0)