Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 945c172

Browse files
committed
apidoc
1 parent a03026b commit 945c172

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

enterprise/coderd/workspaceproxy.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,21 @@ func (api *API) workspaceProxyRegister(rw http.ResponseWriter, r *http.Request)
710710
go api.forceWorkspaceProxyHealthUpdate(api.ctx)
711711
}
712712

713+
// workspaceProxyCryptoKeys is used to fetch signing keys for the workspace proxy.
714+
//
715+
// This is called periodically by the proxy in the background (every 10m per
716+
// replica) to ensure that the proxy has the latest signing keys.
717+
//
718+
// @Summary Fetch workspace proxy signing keys
719+
// @ID get-workspace-proxy-crypto-keys
720+
// @Security CoderSessionToken
721+
// @Accept json
722+
// @Produce json
723+
// @Tags Enterprise
724+
// @Success 200 {object} wsproxysdk.CryptoKeysResponse
725+
// @Router /workspaceproxies/me/crypto-keys [get]
726+
// @x-apidocgen {"skip": true}
727+
713728
func (api *API) workspaceProxyCryptoKeys(rw http.ResponseWriter, r *http.Request) {
714729
ctx := r.Context()
715730

0 commit comments

Comments
 (0)