| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| |
| |
| | |
Respect parent context for Gitaly calls
See merge request gitlab-org/gitlab-shell!469
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | | |
Stop changing directory to the filesystem root
See merge request gitlab-org/gitlab-shell!470
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Update LabKit to v1.4.0
Closes #478
See merge request gitlab-org/gitlab-shell!468
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
gitlab-sshd: Respect the ssl_cert_dir config
Closes #516
See merge request gitlab-org/gitlab-shell!467
|
| |/
| |
| |
| | |
Changelog: fixed
|
|\ \
| |/
|/|
| |
| | |
Don't finish the opentracing span early
See merge request gitlab-org/gitlab-shell!466
|
|/
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Release v13.18.0
See merge request gitlab-org/gitlab-shell!465
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
sshd: Recover from per-session and per-connection panics
Closes #511
See merge request gitlab-org/gitlab-shell!464
|
|/
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Extract sshd connections and sessions into their own files and structs
See merge request gitlab-org/gitlab-shell!463
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
gitlab-sshd: Support the PROXY protocol
Closes #491 and gitlab-com/gl-infra/infrastructure#10954
See merge request gitlab-org/gitlab-shell!461
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Fix thread-safety issues in gitlab-shell
Closes #518
See merge request gitlab-org/gitlab-shell!462
|
|/ |
|
|\
| |
| |
| |
| | |
Replace cleanup functions with t.Cleanup
See merge request gitlab-org/gitlab-shell!460
|
|/
|
|
|
| |
In this case we don't need to propagate cleanup
function. It simplifies the code.
|
|\
| |
| |
| |
| | |
gitlab-sshd: Acceptance test for the discover command
See merge request gitlab-org/gitlab-shell!457
|
| |
| |
| |
| |
| | |
With this, we can start to build confidence in making changes to
gitlab-sshd.
|
|\ \
| | |
| | |
| | |
| | | |
chore: Move environment introspection to sshenv module
See merge request gitlab-org/gitlab-shell!451
|
|/ /
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/|
| |
| | |
Clarify which versions of Go we support
See merge request gitlab-org/gitlab-shell!459
|
| | |
|
|\ \
| |/
|/|
| |
| | |
Compile against go 1.14-1.16
See merge request gitlab-org/gitlab-shell!458
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Use Docker 20.10.3 instead of 19.03.0 on build
Closes #512
See merge request gitlab-org/gitlab-shell!456
|
|/
|
|
| |
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
|
|\
| |
| |
| |
| | |
Release v13.17.0
See merge request gitlab-org/gitlab-shell!455
|
|/ |
|
|\
| |
| |
| |
| | |
Fix gitlab-shell panic when log file not writable
See merge request gitlab-org/gitlab-shell!453
|
|/
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
Resolve "Intermittent test failure in TestUploadPack"
See merge request gitlab-org/gitlab-shell!452
|
|/ |
|
|\
| |
| |
| |
| | |
Add monitoring endpoint to sshd
See merge request gitlab-org/gitlab-shell!449
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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 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>
|
|\
| |
| |
| |
| | |
Refactor Config defaults
See merge request gitlab-org/gitlab-shell!450
|
|/
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| | |
Update Go modules
See merge request gitlab-org/gitlab-shell!448
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
|/|
| |
| | |
Read limited input for yes answer
See merge request gitlab-org/security/gitlab-shell!1
|
|/ |
|
|\
| |
| |
| |
| | |
Release v13.16.0
See merge request gitlab-org/gitlab-shell!446
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
'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
|