chore: Add workspace proxy enterprise cli commands (#7176)

* feat: Add workspace proxy enterprise cli commands
* chore: Handle custom workspace proxy options. Remove excess
* chore: Add endpoint to register workspace proxies
This commit is contained in:
Steven Masley
2023-04-20 09:48:47 -05:00
committed by GitHub
parent 8926c10b7d
commit a5a5c4d400
30 changed files with 1558 additions and 107 deletions

98
coderd/apidoc/docs.go generated
View File

@ -5067,6 +5067,83 @@ const docTemplate = `{
}
}
},
"/workspaceproxies/me/register": {
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Enterprise"
],
"summary": "Register workspace proxy",
"operationId": "register-workspace-proxy",
"parameters": [
{
"description": "Issue signed app token request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/wsproxysdk.RegisterWorkspaceProxyRequest"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/wsproxysdk.RegisterWorkspaceProxyResponse"
}
}
},
"x-apidocgen": {
"skip": true
}
}
},
"/workspaceproxies/{workspaceproxy}": {
"delete": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Enterprise"
],
"summary": "Delete workspace proxy",
"operationId": "delete-workspace-proxy",
"parameters": [
{
"type": "string",
"format": "uuid",
"description": "Proxy ID or name",
"name": "workspaceproxy",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.Response"
}
}
}
}
},
"/workspaces": {
"get": {
"security": [
@ -10213,6 +10290,27 @@ const docTemplate = `{
"type": "string"
}
}
},
"wsproxysdk.RegisterWorkspaceProxyRequest": {
"type": "object",
"properties": {
"access_url": {
"description": "AccessURL that hits the workspace proxy api.",
"type": "string"
},
"wildcard_hostname": {
"description": "WildcardHostname that the workspace proxy api is serving for subdomain apps.",
"type": "string"
}
}
},
"wsproxysdk.RegisterWorkspaceProxyResponse": {
"type": "object",
"properties": {
"app_security_key": {
"type": "string"
}
}
}
},
"securityDefinitions": {