-
- 下载
Merge branch 'nick-kube-proxy' into 'master'
Handle environments/:id/terminal.ws, providing access to terminal websockets A GitLab environment may expose a terminal connection for out-of-band access. Workhorse is responsible for providing a websocket connection to the terminal if present. It authenticates the user and retrieves connection details from GitLab using the environments/:id/terminal.ws/authorize endpoint, and sets up a proxy to the terminal provider, converting from the remote's subprotocol to a common format. Authentication is periodically re-done, and the connection will be broken if it fails, or if the connection details change in any way. This MR includes support for the `channel.k8s.io` websocket subprotocol, allowing connections to be made to Kubernetes / OpenShift containers. Based on top of (some of) !72 Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/22864 See merge request !83
显示
- Godeps/Godeps.json 9 个添加, 1 个删除Godeps/Godeps.json
- README.md 2 个添加, 0 个删除README.md
- doc/terminal.md 191 个添加, 0 个删除doc/terminal.md
- internal/api/api.go 58 个添加, 30 个删除internal/api/api.go
- internal/api/terminal_settings.go 116 个添加, 0 个删除internal/api/terminal_settings.go
- internal/api/terminal_settings_test.go 145 个添加, 0 个删除internal/api/terminal_settings_test.go
- internal/helper/logging.go 31 个添加, 6 个删除internal/helper/logging.go
- internal/terminal/auth_checker.go 69 个添加, 0 个删除internal/terminal/auth_checker.go
- internal/terminal/auth_checker_test.go 53 个添加, 0 个删除internal/terminal/auth_checker_test.go
- internal/terminal/proxy.go 56 个添加, 0 个删除internal/terminal/proxy.go
- internal/terminal/terminal.go 121 个添加, 0 个删除internal/terminal/terminal.go
- internal/terminal/wrappers.go 134 个添加, 0 个删除internal/terminal/wrappers.go
- internal/terminal/wrappers_test.go 155 个添加, 0 个删除internal/terminal/wrappers_test.go
- internal/upstream/routes.go 95 个添加, 28 个删除internal/upstream/routes.go
- internal/upstream/upstream.go 15 个添加, 19 个删除internal/upstream/upstream.go
- terminal_test.go 224 个添加, 0 个删除terminal_test.go
- vendor/github.com/gorilla/websocket/.gitignore 25 个添加, 0 个删除vendor/github.com/gorilla/websocket/.gitignore
- vendor/github.com/gorilla/websocket/.travis.yml 18 个添加, 0 个删除vendor/github.com/gorilla/websocket/.travis.yml
- vendor/github.com/gorilla/websocket/AUTHORS 8 个添加, 0 个删除vendor/github.com/gorilla/websocket/AUTHORS
- vendor/github.com/gorilla/websocket/LICENSE 22 个添加, 0 个删除vendor/github.com/gorilla/websocket/LICENSE
加载中
想要评论请 注册 或 登录