Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add logging to RunGitalyCommand funcid-logging-for-handler | Igor Drozdov | 2021-10-20 | 2 | -5/+12 |
| | |||||
* | Log SSL_CERT_DIR when it's configured | Igor Drozdov | 2021-10-20 | 1 | -0/+4 |
| | |||||
* | Merge branch '499-log-non-git-commands' into 'main' | Ash McKenzie | 2021-10-13 | 4 | -9/+37 |
|\ | | | | | | | | | Improve logging for non-git commands See merge request gitlab-org/gitlab-shell!538 | ||||
| * | Improve logging for non-git commands499-log-non-git-commands | Nick Thomas | 2021-10-13 | 4 | -9/+37 |
| | | | | | | | | | | | | | | | | | | Several of our commands only touch the internal API, and go nowhere near Gitaly. Improve logging for each of these in a single MR. In general, we want to be able to tell what happened in the execution of each command, and to track failures down to a specific line of code. Changelog: added | ||||
* | | Reject non-proxied connections when proxy protocol is enabled532-proxy-protocol-require | Nick Thomas | 2021-10-12 | 2 | -5/+42 |
|/ | | | | | | This will help to prevent misconfigurations. Changelog: fixed | ||||
* | Log command invocation499-log-command-invocation | Nick Thomas | 2021-10-07 | 1 | -0/+7 |
| | | | | | | | | Use reflection to log the command we are about to execute, both in gitlab-shell and gitlab-sshd. Include the environment, which has all the context we need to understand what the command is expected to do. Changelog: added | ||||
* | Fix logging channel typefix-logging-channel-type | Nick Thomas | 2021-10-06 | 1 | -1/+1 |
| | | | | | | | | | | | Currently we get this in some log messages: logrus_error="can not add field \"channel_type\"" This is because we're trying to add a function, rather than the result of the function call (a string) to the `log.Fields`. Whoops! Changelog: fixed | ||||
* | Resolve an error-swallowing issue499-log-me-more-more | Nick Thomas | 2021-09-30 | 1 | -0/+7 |
| | |||||
* | Add gitlab-sshd connection logging | Nick Thomas | 2021-09-28 | 2 | -6/+18 |
| | |||||
* | Add debug logging to gitlab-sshd session | Nick Thomas | 2021-09-28 | 2 | -12/+36 |
| | |||||
* | Don't swallow an error parsing SSH_ORIGINAL_COMMAND | Nick Thomas | 2021-09-27 | 2 | -10/+5 |
| | |||||
* | Respect log-level configuration again | Nick Thomas | 2021-09-23 | 3 | -2/+29 |
| | | | | | | This was lost in the move from Ruby to Go. Restore it now. Changelog: fixed | ||||
* | Merge branch 'refactor/unify-shell' into 'main' | Igor Drozdov | 2021-09-20 | 2 | -18/+15 |
|\ | | | | | | | | | | | | | refactor: unify instantiation of command.Shell Closes #517 See merge request gitlab-org/gitlab-shell!520 | ||||
| * | refactor: unify instantiation of command.Shell | feistel | 2021-09-20 | 2 | -18/+15 |
| | | |||||
* | | Improve err message given when Gitaly unavailable | Igor Drozdov | 2021-09-17 | 2 | -0/+22 |
|/ | |||||
* | Add context fields to loggingid-context-fields | Igor Drozdov | 2021-09-15 | 5 | -12/+12 |
| | | | | It adds correlation ids wherever possible | ||||
* | Extract server config related code out of sshd.go | Igor Drozdov | 2021-09-15 | 4 | -73/+217 |
| | |||||
* | Unit test exit-codes for sshd/session.goid-session-test-2 | Igor Drozdov | 2021-09-15 | 1 | -0/+145 |
| | |||||
* | Unit test sshd.handleEnv function | Igor Drozdov | 2021-09-15 | 1 | -0/+44 |
| | |||||
* | Add TestInvalidClientConfig and TestNewServerWithoutHosts for sshd.goid-sshd-tests | Igor Drozdov | 2021-09-15 | 1 | -0/+16 |
| | |||||
* | Merge branch 'main' into refactor/cmd | Nick Thomas | 2021-09-14 | 1 | -1/+1 |
|\ | |||||
| * | Fix a flaky test | Nick Thomas | 2021-09-14 | 1 | -1/+1 |
| | | |||||
* | | refactor: fix style issues | feistel | 2021-09-08 | 1 | -4/+4 |
| | | |||||
* | | refactor: rearchitect command and executable Go modules | feistel | 2021-09-08 | 7 | -474/+5 |
|/ | |||||
* | Merge branch 'remove/generic-args' into 'main' | Nick Thomas | 2021-09-08 | 7 | -35/+37 |
|\ | | | | | | | | | | | | | refactor: remove commandargs.GenericArgs Closes #212 See merge request gitlab-org/gitlab-shell!506 | ||||
| * | refactor: add acceptargs field to executable | feistel | 2021-09-08 | 5 | -16/+20 |
| | | | | | | | | | | parse logic will only run if the executable accept args. healthcheck is the only one not accepting arguments. | ||||
| * | refactor: improve unknown executable error message | feistel | 2021-09-08 | 1 | -1/+2 |
| | | |||||
| * | refactor: remove commandargs.GenericArgs | feistel | 2021-08-11 | 3 | -21/+18 |
| | | |||||
* | | refactor: move away from ioutil (deprecated) | feistel | 2021-08-19 | 17 | -47/+45 |
| | | |||||
* | | refactor: change httpclient to return an error | feistel | 2021-08-13 | 3 | -7/+12 |
| | | |||||
* | | refactor: update usage of NewHTTPClient to NewHTTPClientWithOpts | feistel | 2021-08-11 | 1 | -1/+6 |
|/ | |||||
* | Merge branch '499-use-labkit-logging-initialize' into 'main' | Patrick Bajao | 2021-08-04 | 2 | -33/+63 |
|\ | | | | | | | | | | | | | Switch to labkit for logging system setup Closes #271 See merge request gitlab-org/gitlab-shell!504 | ||||
| * | Switch to labkit for logging system setup | Nick Thomas | 2021-08-04 | 2 | -33/+63 |
| | | | | | | | | | | | | | | | | | | | | | | - We start supporting the "color" format for logs. - We now respond to SIGHUP by reopening the log file. - We now respect the log format when no log filename is specified. Output to syslog in the event of logging system setup is preserved in OpenSSH mode. Changelog: added | ||||
* | | Merge branch 'security-300265' into 'main' | Patrick Bajao | 2021-08-04 | 2 | -4/+9 |
|\ \ | |/ |/| | | | | | Modify regex to prevent partial matches See merge request gitlab-org/security/gitlab-shell!6 | ||||
| * | Modify regex to prevent partial matches | Robert May | 2021-06-29 | 2 | -4/+9 |
| | | |||||
* | | Remove some unreliable tests | Nick Thomas | 2021-07-30 | 4 | -71/+76 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Logrus buffers its output internally, which makes these tests fail intermittently. They're also not a good example to follow generally. We now have acceptance tests that exercise this functionality so I'm pretty relaxed about losing the expectations. However, we can test them by inspecting the server-received metadata too, so there's no loss of coverage here. The move from logrus to labkit for logging also makes these tests hard to justify keeping. | ||||
* | | Sshd: Log same correlation_id on auth keys | Igor Drozdov | 2021-07-27 | 3 | -54/+152 |
| | | |||||
* | | Merge branch 'sh-update-go-proxyproto' into 'main' | Nick Thomas | 2021-07-27 | 1 | -1/+5 |
|\ \ | | | | | | | | | | | | | Update go-proxyproto to v0.6.0 See merge request gitlab-org/gitlab-shell!499 | ||||
| * | | Set a 90-second timeout on proxy headers | Stan Hu | 2021-07-26 | 1 | -9/+12 |
| | | | |||||
* | | | Fix formatting via make fmt | Stan Hu | 2021-07-26 | 6 | -18/+16 |
|/ / | |||||
* | | Merge branch 'id-switch-logging-to-labkit' into 'main' | Patrick Bajao | 2021-07-23 | 4 | -21/+23 |
|\ \ | | | | | | | | | | | | | Switch to labkit/log for logging functionality See merge request gitlab-org/gitlab-shell!498 | ||||
| * | | Switch to labkit/log for logging functionality | Igor Drozdov | 2021-07-22 | 4 | -21/+23 |
| | | | |||||
* | | | Unit tests for internal/sshd/connection.go | Nick Thomas | 2021-07-22 | 1 | -5/+73 |
|/ / | |||||
* | | Prometheus metrics for HTTP requests | Igor Drozdov | 2021-07-21 | 4 | -40/+101 |
| | | | | | | | | | | A RoundTripper for tracking the duration of an http request is introduced | ||||
* | | remove tracing.NewRoundTripper from internal/Config, now that NewHTTPClient ↵ | Igor Wiedler | 2021-07-20 | 1 | -10/+4 |
| | | | | | | | | already includes it | ||||
* | | Provide liveness and readiness probes | Igor Drozdov | 2021-07-19 | 3 | -15/+114 |
| | | | | | | | | | | They are going to be used to determine whether a server is alive and ready to accept traffic | ||||
* | | Shutdown sshd gracefully | Igor Drozdov | 2021-07-15 | 3 | -22/+132 |
| | | | | | | | | | | | | | | | | When interruption signal is sent, we are closing ssh listener to prevent it from accepting new connections Then after configured grace period, we cancel the context to cancel all ongoing operations | ||||
* | | Merge branch 'id-refactor-test-helper' into 'main' | Nick Thomas | 2021-07-14 | 2 | -32/+11 |
|\ \ | | | | | | | | | | | | | Refactor testhelper.PrepareTestRootDir using t.Cleanup See merge request gitlab-org/gitlab-shell!493 | ||||
| * | | Refactor testhelper.PrepareTestRootDir using t.Cleanup | Igor Drozdov | 2021-07-14 | 2 | -32/+11 |
| |/ | |||||
* | | Merge branch 'change_log_format' into 'main' | Patrick Bajao | 2021-07-13 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | Change default logging format to JSON See merge request gitlab-org/gitlab-shell!476 |