- Aug 17, 2020
-
-
Taylan Develioglu authored
Implements the feature requested in gitlab-org/gitlab#19672 This requires the internal api counterpart in gitlab-org/gitlab!36302 to be merged first. It can be used as follows: ``` censored@censored-VirtualBox:~/git/gitlab$ ssh git@gitlab-2004 personal_access_token remote: remote: ======================================================================== remote: remote: Usage: personal_access_token <name> <scope1[,scope2,...]> [ttl_days] remote: remote: ======================================================================== remote: censored@censored-VirtualBox:~/git/gitlab$ ssh git@gitlab-2004 personal_access_token newtoken read_api,read_repository 30 Token: aAY1G3YPeemECgUvxuXY Scopes: read_api,read_repository Expires: 2020-08-07 ```
-
- Aug 11, 2020
-
-
Nick Thomas authored
Specify more recent go version in go.mod See merge request gitlab-org/gitlab-shell!405
-
Lukas 'Eipi' Eipert authored
-
- Aug 05, 2020
-
-
Igor Drozdov authored
Release v13.5.0 See merge request gitlab-org/gitlab-shell!404
-
Stan Hu authored
-
- Jul 31, 2020
-
-
Igor Drozdov authored
Generate and log correlation IDs See merge request gitlab-org/gitlab-shell!400
-
This will make it easier to tie an SSH access request to Rails API and Gitaly requests.
-
- Jul 23, 2020
-
-
Igor Drozdov authored
Revert "Update executable.go" See merge request gitlab-org/gitlab-shell!403
-
Igor Drozdov authored
This reverts commit 869aeb90
-
Igor Drozdov authored
-
Igor Drozdov authored
Release v13.4.0 See merge request gitlab-org/gitlab-shell!402
-
Stan Hu authored
-
Igor Drozdov authored
Log SSH key details See merge request gitlab-org/gitlab-shell!398
-
Right now when a client such as gitlab-shell calls the `/api/v4/internal/allowed` API, the response only tells the client what user has been granted access, and it's impossible to tell which deploy key/token was used in the authentication request. This commit adds logs for the following when available: 1. `gl_key_type` (e.g. `deploy_key` or `key`) 2. `gl_key_id` These fields make it possible for admins to identify the exact record that was used to authenticate the user. API changes in the `/internal/allowed` endpoint in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37289 are needed to support this. Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/203
-
Ash McKenzie authored
Log remote IP for executed commands Closes #199 See merge request gitlab-org/gitlab-shell!399
-
- Jul 22, 2020
-
-
Igor Drozdov authored
Drop Go v1.12 support See merge request gitlab-org/gitlab-shell!401
-
Stan Hu authored
We officially use Go v1.13+ for everything (https://docs.gitlab.com/ee/install/requirements.html#go-versions), and dropping Go v1.12 allows us to use new methods such as `http.NewRequestWithContext`.
-
- Jul 20, 2020
-
-
Stan Hu authored
Admins may want to know what client IP originated the request. This commit adds a `remote_ip` field to the log that extracts the IP address from the `SSH_CONNECTION` environment variable. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/199
-
- Jul 02, 2020
-
-
Patrick Bajao authored
Merge branch '459-system-default-ssl_cert_dir-is-being-used-during-remote-gitaly-over-tls' into 'master' Support ssl_cert_dir config setting See merge request gitlab-org/gitlab-shell!393
-
Ash McKenzie authored
-
Ash McKenzie authored
-
- Jul 01, 2020
-
-
Ash McKenzie authored
-
- Jun 08, 2020
-
-
Nick Thomas authored
Extract coverage for Go code on CI pipeline See merge request gitlab-org/gitlab-shell!392
-
- Jun 06, 2020
-
-
Takuya Noguchi authored
Signed-off-by:
Takuya Noguchi <takninnovationresearch@gmail.com>
-
- Jun 05, 2020
-
-
Nick Thomas authored
Use simplified setup for code intelligence See merge request gitlab-org/gitlab-shell!386
-
- Jun 03, 2020
-
-
Ash McKenzie authored
Use codequality CI template See merge request gitlab-org/gitlab-shell!389
-
Patrick Bajao authored
In https://gitlab.com/gitlab-org/gitlab/-/issues/218797, it was determined that gitlab-shell is using an outdated image that no longer exists. To ensure that we are using up to date codequality image, we can use the built-in template instead.
-
- Jun 01, 2020
-
-
Stan Hu authored
Release v13.3.0 See merge request gitlab-org/gitlab-shell!391
-
Ash McKenzie authored
-
Ash McKenzie authored
Upgrade Ruby version to v2.6.6 See merge request gitlab-org/gitlab-shell!390
-
- May 29, 2020
-
-
Stan Hu authored
GitLab has now been upgraded to use Ruby 2.6.6: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33253
-
- May 28, 2020
-
-
Nick Thomas authored
Use default puma socket in example config See merge request gitlab-org/gitlab-shell!388
-
Justin Kromlinger authored
The unicorn replacement 'puma' uses a unix socket in the example config [1] instead of a tcp port. Using the non-existing tcp port results in "Internal API unreachable" on git operations. [1] https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/puma.rb.example#L34
-
Igor Drozdov authored
-
- May 22, 2020
-
-
Nick Thomas authored
Set client name when making requests to Gitaly See merge request gitlab-org/gitlab-shell!387
-
Changzheng Liu authored
-
- May 13, 2020
-
-
Nick Thomas authored
Fix race conditions with logrus testing Closes #450 See merge request gitlab-org/gitlab-shell!385
-
- May 12, 2020
-
-
Igor Drozdov authored
Add race testing as separate CI step See merge request gitlab-org/gitlab-shell!383
-
Nick Thomas authored
Release v13.2.0 See merge request gitlab-org/gitlab-shell!384
-
Stan Hu authored
logrus fires a Goroutine to write logs, so the tests could fail if they checked the event queue before the logrus have fired. Since there isn't an easy way to flush all outstanding hooks, we just retry every 100 ms for up to a second for log to arrive in the queue. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450
-