summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix an inaccurate comment511-extract-sessionNick Thomas2021-04-231-1/+1
|
* sshd: Extract connections into their own fileNick Thomas2021-04-233-90/+113
|
* sshd: Extract sessions into their own fileNick Thomas2021-04-222-102/+161
|
* 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>
* Merge branch 'sh-release-13.7.0' into 'main'v13.17.0Nick Thomas2021-02-262-1/+6
|\ | | | | | | | | Release v13.17.0 See merge request gitlab-org/gitlab-shell!455
| * Release v13.17.0Stan Hu2021-02-262-1/+6
|/
* Merge branch 'sh-fix-log-permission-error' into 'main'Nick Thomas2021-02-262-2/+23
|\ | | | | | | | | Fix gitlab-shell panic when log file not writable See merge request gitlab-org/gitlab-shell!453
| * Fix gitlab-shell panic when log file not writableStan Hu2021-02-262-2/+23
|/ | | | | | | | | Previously when the gitlab-shell log was not writable, gitlab-shell would attempt to fall back to the syslog to log an error. However, if the syslog logger creation succeeded, gitlab-shell would panic since `err` was `nil`. Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/510
* Merge branch '477-fix-flaky-test' into 'main'Nick Thomas2021-02-221-6/+11
|\ | | | | | | | | Resolve "Intermittent test failure in TestUploadPack" See merge request gitlab-org/gitlab-shell!452
| * Use eventually to assert log entriesJaime Martinez2021-02-221-6/+11
|/
* Merge branch 'bjk/monitoring' into 'main'Nick Thomas2021-02-176-19/+316
|\ | | | | | | | | Add monitoring endpoint to sshd See merge request gitlab-org/gitlab-shell!449
| * Add basic metrics to sshdbjk/monitoringBen Kochie2021-02-161-0/+48
| | | | | | | | | | | | | | | | | | * Counter for how many times the max concurrent sessions limit was hit. * Histogram for duration of each SSH connection. https://gitlab.com/gitlab-org/gitlab-shell/-/issues/121 Signed-off-by: Ben Kochie <superq@gmail.com>
| * Add monitoring endpoint to sshdBen Kochie2021-02-165-19/+268
|/ | | | | | | | | | | Add a basic monitoring endpoint to the sshd command. * Listen on localhost port 9122 by default. * Integrate build/version info. * Update example config. https://gitlab.com/gitlab-org/gitlab-shell/-/issues/121 Signed-off-by: Ben Kochie <superq@gmail.com>
* Merge branch 'bjk/refactor_config' into 'main'Nick Thomas2021-02-162-51/+33
|\ | | | | | | | | Refactor Config defaults See merge request gitlab-org/gitlab-shell!450
| * Refactor Config defaultsBen Kochie2021-02-162-51/+33
|/ | | | | | | | | | | Use "omitempty" to allow defaults in the config file to be correctly passed. Without this, explicitly setting an empty default like an empty string will not work. Needed in order to allow explicitly disabling some settings. Related to: https://gitlab.com/gitlab-org/gitlab-shell/-/issues/121 Signed-off-by: Ben Kochie <superq@gmail.com>
* Merge branch 'bjk/bump_mods' into 'main'Nick Thomas2021-02-112-13/+75
|\ | | | | | | | | Update Go modules See merge request gitlab-org/gitlab-shell!448
| * Update Go modulesbjk/bump_modsBen Kochie2021-02-112-13/+75
| | | | | | | | | | | | | | | | | | | | Some pre-work for adding Prometheus metrics to SSH server. * Update Go modules to latest. * Add Go 1.15 build. https://gitlab.com/gitlab-org/gitlab-shell/-/issues/121 Signed-off-by: Ben Kochie <superq@gmail.com>
* | Merge branch 'security-limit-fscanl' into 'main'Nick Thomas2021-02-054-2/+29
|\ \ | |/ |/| | | | | Read limited input for yes answer See merge request gitlab-org/security/gitlab-shell!1
| * Read limited input for yes answerIgor Drozdov2021-02-054-2/+29
|/
* Merge branch '505-draft-release-v13-16-0' into 'main'v13.16.0Patrick Bajao2021-02-022-1/+6
|\ | | | | | | | | Release v13.16.0 See merge request gitlab-org/gitlab-shell!446
| * Release v13.16.0Ash McKenzie2021-02-032-1/+6
|/
* Merge branch ↵Ash McKenzie2021-02-013-3/+3
|\ | | | | | | | | | | | | '504-remove-the-session-duration-information-from-the-output-of-2fa_verify-command' into 'main' Resolve "Remove the session duration information from the output of `2fa_verify` command" See merge request gitlab-org/gitlab-shell!445
| * Remove session duration information from output of 2fa_verify command504-remove-the-session-duration-information-from-the-output-of-2fa_verify-commandManoj M J2021-01-293-3/+3
|/ | | | | This change removes session duration information from output of 2fa_verify command
* Merge branch 'add-gitlab-sshd-to-gitignore' into 'main'Igor Drozdov2021-01-191-0/+1
|\ | | | | | | | | Add gitlab-sshd to .gitignore See merge request gitlab-org/gitlab-shell!444
| * Add gitlab-sshd to .gitignoreadd-gitlab-sshd-to-gitignoreNick Thomas2021-01-181-0/+1
|/
* Merge branch 'master' into 'main'Nick Thomas2021-01-1821-309/+460
|\ | | | | | | | | | | | | RFC: Simple built-in SSH server Closes #165 See merge request gitlab-org/gitlab-shell!394
| * RFC: Simple built-in SSH serverLorenz Brun2021-01-1821-309/+460
|/
* Merge branch 'remove-default-branch-docs' into 'main'Igor Drozdov2021-01-071-7/+0
|\ | | | | | | | | | | | | Remove default branch statement in docs Closes #489 See merge request gitlab-org/gitlab-shell!443
| * Remove default branch statement in docsremove-default-branch-docsNick Thomas2021-01-061-7/+0
| | | | | | | | Now `master` is removed, this is no longer needed
* | Merge branch 'ashmckenzie/release-13.15.0' into 'main'v13.15.0masterPatrick Bajao2020-12-172-1/+5
|\ \ | | | | | | | | | | | | Release v13.15.0 See merge request gitlab-org/gitlab-shell!442
| * | Release v13.15.0ashmckenzie/release-13.15.0Ash McKenzie2020-12-172-1/+5
|/ /
* | Merge branch 'Updating-min-TLS-version-to-12' into 'main'Ash McKenzie2020-12-162-0/+2
|\ \ | |/ |/| | | | | Update httpclient.go with TLS 1.2 as minimum version See merge request gitlab-org/gitlab-shell!435
| * Update testserver.go with tls 1.2 min versionUpdating-min-TLS-version-to-12Vitor Meireles De Sousa2020-11-171-0/+1
| |
| * Update httpclient.go with TLS 1.2 as minimum versionVitor Meireles De Sousa2020-11-171-0/+1
| |
* | Merge branch 'id-release-13-14' into 'main'v13.14.0Igor Drozdov2020-12-112-1/+6
|\ \ | | | | | | | | | | | | Release v13.14.0 See merge request gitlab-org/gitlab-shell!441