summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'id-test-for-connection' into 'main'Nick Thomas2021-06-011-4/+34
|\ \ \ | |/ / |/| | | | | | | | Unit test wrong channel type See merge request gitlab-org/gitlab-shell!479
| * | Unit test wrong channel typeIgor Drozdov2021-06-011-4/+34
| | |
* | | Merge branch '500_git_upload_archive_test' into 'main'Nick Thomas2021-06-011-0/+18
|\ \ \ | |/ / |/| | | | | | | | Add acceptance test for git-upload-archive See merge request gitlab-org/gitlab-shell!478
| * | Add acceptance test for git-upload-archiveVasilii Iakliushin2021-06-011-0/+18
|/ / | | | | | | Contributes to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/500
* | Merge branch '501-fix-opentracing-init' into 'main'Igor Drozdov2021-05-2416-93/+118
|\ \ | |/ |/| | | | | | | | | Fix opentracing setup for gitlab-sshd Closes #501 See merge request gitlab-org/gitlab-shell!473
| * Fix opentracing setup for gitlab-sshdNick Thomas2021-05-1716-93/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, opentracing (if configured) was initialized late in the gitlab-shell process's lifespan, coming just before making a gRPC call to Gitaly. By moving the opentracing initialization to be at process startup, we make it available for the whole process lifecycle, which is very useful to gitlab-sshd, as it means we'll only call tracing.Initialize() once on process startup, rather than once per SSH connection. To get this working, we need to introduce a context to gitlab-sshd. This carries the client/service name, but also carries an initial correlation ID. The main outcome of this is that all calls to the authorized_keys endpoint from a given gitlab-sshd process will now share a correlation ID. I don't have a strong opinion about this either way. Changelog: fixed
* | Merge branch 'add-gitaly-acceptance-test' into 'main'Nick Thomas2021-05-215-5/+105
|\ \ | | | | | | | | | | | | Add first Gitaly acceptance test See merge request gitlab-org/gitlab-shell!475
| * | Add a simple acceptance test for git-receive-packSean McGivern2021-05-202-5/+76
| | |
| * | Set up a test Gitaly server in CI and provide a docker-compose fileSean McGivern2021-05-203-0/+29
|/ /
* | Merge branch 'ps-upgrade-labkit' into 'main'Nick Thomas2021-05-202-103/+5
|\ \ | | | | | | | | | | | | fix: upgrade of the labkit dependency See merge request gitlab-org/gitlab-shell!474
| * | fix: upgrade of the labkit dependencyPavlo Strokov2021-05-202-103/+5
|/ / | | | | | | The labkit has a fix in the dependency chain b36f912 (Merge branch 'ps-fix-dep-version' into 'master', 2021-05-20).
* | Specify the working version for lsif-go image Igor Drozdov2021-05-191-1/+1
| | | | | | | | 1.4.0 has introduced the format change Since v1 means latest 1.* image, we're pulling the unsupported version
* | Merge branch 'acceptance-tests-simple' into 'main'Patrick Bajao2021-05-182-0/+126
|\ \ | |/ |/| | | | | Acceptance tests for 2fa_recovery_codes, 2fa_verify, and git-lfs-authenticate See merge request gitlab-org/gitlab-shell!472
| * Add acceptance test for git-lfs-authenticateSean McGivern2021-05-172-0/+49
| |
| * Add acceptance test for 2fa_verifySean McGivern2021-05-171-0/+32
| |
| * Add acceptance test for 2fa_recovery_codesSean McGivern2021-05-171-0/+45
|/
* Merge branch 'acceptance-test-personal-access-token' into 'main'Patrick Bajao2021-05-141-1/+15
|\ | | | | | | | | Add acceptance test for personal_access_token command See merge request gitlab-org/gitlab-shell!471
| * Add acceptance test for personal_access_token commandSean McGivern2021-05-131-1/+15
|/
* Merge branch '501-gitaly-respect-parent-context' into 'main'Nick Thomas2021-05-1013-41/+39
|\ | | | | | | | | Respect parent context for Gitaly calls See merge request gitlab-org/gitlab-shell!469
| * Respect parent context for Gitaly callsNick Thomas2021-05-0513-41/+39
| | | | | | | | | | | | | | | | | | Without these changes, Gitaly calls would not be linked to a parent context. This means that they would have an unassociated correlationID, and Gitaly RPC calls would not be cancel()ed by parent context cancellation. Changelog: fixed
* | Merge branch '501-remove-chdir-call' into 'main'Igor Drozdov2021-05-061-6/+0
|\ \ | | | | | | | | | | | | Stop changing directory to the filesystem root See merge request gitlab-org/gitlab-shell!470
| * | Stop changing directory to the filesystem rootNick Thomas2021-05-061-6/+0
|/ / | | | | | | | | | | | | | | | | | | | | This behaviour dates from when Gitaly RPCs were executed in Ruby by a Go subprocess. It's not needed for gitlab-shell now that it's in Go, and it's a very strange thing for gitlab-sshd. Best just to remove it. If we wanted to retain this behaviour, we could have an `os.Chdir` call in the gitlab-shell binary, but I just don't think it's needed. Changelog: fixed
* | Merge branch '478-update-labkit' into 'main'Igor Drozdov2021-05-052-18/+371
|\ \ | | | | | | | | | | | | | | | | | | Update LabKit to v1.4.0 Closes #478 See merge request gitlab-org/gitlab-shell!468
| * | Update LabKit to v1.4.0478-update-labkitNick Thomas2021-04-302-18/+371
| |/
* | Merge branch '516-handle-ssl-cert-dir-correctly' into 'main'Nick Thomas2021-05-045-87/+97
|\ \ | | | | | | | | | | | | | | | | | | gitlab-sshd: Respect the ssl_cert_dir config Closes #516 See merge request gitlab-org/gitlab-shell!467
| * | gitlab-sshd: Respect the ssl_cert_dir config516-handle-ssl-cert-dir-correctlyNick Thomas2021-04-305-87/+97
| |/ | | | | | | Changelog: fixed
* | Merge branch 'dont-close-span-early' into 'main'Stan Hu2021-04-301-1/+0
|\ \ | |/ |/| | | | | Don't finish the opentracing span early See merge request gitlab-org/gitlab-shell!466
| * Don't finish the opentracing span earlydont-close-span-earlyNick Thomas2021-04-301-1/+0
|/ | | | | | | | | Calling finished() in `ContextWithCorrelationID` breaks opentracing, since it expects us to call it just before exiting, and this defer runs on function completion. All existing users of ContextWithCorrelationID already `defer finish()` themselves, so this call is entirely surplus to requirements.
* Merge branch 'release-13-18-0' into 'main'v13.18.0Nick Thomas2021-04-262-1/+7
|\ | | | | | | | | Release v13.18.0 See merge request gitlab-org/gitlab-shell!465
| * Release v13.18.0Nick Thomas2021-04-262-1/+7
|/
* Merge branch '511-be-safe-against-panics' into 'main'Igor Drozdov2021-04-263-3/+71
|\ | | | | | | | | | | | | sshd: Recover from per-session and per-connection panics Closes #511 See merge request gitlab-org/gitlab-shell!464
| * sshd: Recover from per-session and per-connection panics511-be-safe-against-panicsNick Thomas2021-04-233-3/+71
|/ | | | | | Without this, a failure in a single session could take out a whole connection, or a failure in a single connection could take out the whole server.
* Merge branch '511-extract-session' into 'main'Igor Drozdov2021-04-233-175/+257
|\ | | | | | | | | Extract sshd connections and sessions into their own files and structs See merge request gitlab-org/gitlab-shell!463
| * Extract sshd connections and sessions into their own files and structsNick Thomas2021-04-233-175/+257
|/
* Merge branch '491-support-proxy-protocol' into 'main'Igor Drozdov2021-04-127-5/+48
|\ | | | | | | | | | | | | gitlab-sshd: Support the PROXY protocol Closes #491 and gitlab-com/gl-infra/infrastructure#10954 See merge request gitlab-org/gitlab-shell!461
| * gitlab-sshd: Support the PROXY protocolNick Thomas2021-04-127-5/+48
|/
* Merge branch '518-fix-thread-safety' into 'main'Patrick Bajao2021-04-122-23/+23
|\ | | | | | | | | | | | | Fix thread-safety issues in gitlab-shell Closes #518 See merge request gitlab-org/gitlab-shell!462
| * Fix thread-safety issues in gitlab-shell518-fix-thread-safetyNick Thomas2021-04-092-23/+23
|/
* Merge branch 'id-refactor-cleanup' into 'main'Nick Thomas2021-03-1730-166/+116
|\ | | | | | | | | Replace cleanup functions with t.Cleanup See merge request gitlab-org/gitlab-shell!460
| * Replace cleanup functions with t.CleanupIgor Drozdov2021-03-1730-166/+116
|/ | | | | In this case we don't need to propagate cleanup function. It simplifies the code.
* Merge branch '500-gitlab-sshd-acceptance-tests' into 'main'Igor Drozdov2021-03-174-0/+197
|\ | | | | | | | | gitlab-sshd: Acceptance test for the discover command See merge request gitlab-org/gitlab-shell!457
| * gitlab-sshd: Acceptance test for the discover commandNick Thomas2021-03-174-0/+197
| | | | | | | | | | With this, we can start to build confidence in making changes to gitlab-sshd.
* | Merge branch '496-move-env-introspection-to-sshenv' into 'main'Nick Thomas2021-03-1621-213/+209
|\ \ | | | | | | | | | | | | chore: Move environment introspection to sshenv module See merge request gitlab-org/gitlab-shell!451
| * | chore: Refactor env introspection to rely on command initialization496-move-env-introspection-to-sshenvLucas Charles2021-03-1521-213/+209
|/ / | | | | | | | | | | | | Refactors introspection of execution environment to rely on per-connection state (`gitlab-shell`) or per request (`gitlab-sshd`) Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/496
* | Merge branch 'ashmckenzie/update-requirements' into 'main'Nick Thomas2021-03-151-0/+3
|\ \ | |/ |/| | | | | Clarify which versions of Go we support See merge request gitlab-org/gitlab-shell!459
| * Clarify which versions of Go we supportashmckenzie/update-requirementsAsh McKenzie2021-03-151-0/+3
| |
* | Merge branch 'update-golang-versions' into 'main'Ash McKenzie2021-03-151-6/+9
|\ \ | |/ |/| | | | | Compile against go 1.14-1.16 See merge request gitlab-org/gitlab-shell!458
| * Compile against go 1.14-1.16update-golang-versionsNick Thomas2021-03-131-6/+9
|/
* Merge branch '512-docker-20.10.3' into 'main'Nick Thomas2021-03-091-5/+1
|\ | | | | | | | | | | | | Use Docker 20.10.3 instead of 19.03.0 on build Closes #512 See merge request gitlab-org/gitlab-shell!456
| * Use Docker 20.10.3 instead of 19.03.0 on build512-docker-20.10.3Takuya Noguchi2021-02-271-5/+1
|/ | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>