@@ -205,7 +205,6 @@ type RegisterWorkspaceProxyRequest struct {
205
205
}
206
206
207
207
type RegisterWorkspaceProxyResponse struct {
208
- AppSecurityKey string `json:"app_security_key"`
209
208
DERPMeshKey string `json:"derp_mesh_key"`
210
209
DERPRegionID int32 `json:"derp_region_id"`
211
210
DERPMap * tailcfg.DERPMap `json:"derp_map"`
@@ -372,12 +371,6 @@ func (l *RegisterWorkspaceProxyLoop) Start(ctx context.Context) (RegisterWorkspa
372
371
}
373
372
failedAttempts = 0
374
373
375
- // Check for consistency.
376
- if originalRes .AppSecurityKey != resp .AppSecurityKey {
377
- l .failureFn (xerrors .New ("app security key has changed, proxy must be restarted" ))
378
- return
379
- }
380
-
381
374
if originalRes .DERPMeshKey != resp .DERPMeshKey {
382
375
l .failureFn (xerrors .New ("DERP mesh key has changed, proxy must be restarted" ))
383
376
return
@@ -586,10 +579,10 @@ type CryptoKeysResponse struct {
586
579
CryptoKeys []codersdk.CryptoKey `json:"crypto_keys"`
587
580
}
588
581
589
- func (c * Client )CryptoKeys (ctx context.Context ) (CryptoKeysResponse ,error ) {
582
+ func (c * Client )CryptoKeys (ctx context.Context , feature codersdk. CryptoKeyFeature ) (CryptoKeysResponse ,error ) {
590
583
res ,err := c .Request (ctx ,http .MethodGet ,
591
584
"/api/v2/workspaceproxies/me/crypto-keys" ,
592
- nil ,
585
+ codersdk . WithQueryParam ( "feature" , string ( feature )) ,
593
586
)
594
587
if err != nil {
595
588
return CryptoKeysResponse {},xerrors .Errorf ("make request: %w" ,err )