| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the way sshd works, gitlab-shell could be called with a single
string in the form:
```
/path/to/gitlab-shell -c key-id
```
However, due to the tightening of the regular expressions in fcff692b
this string no longer matches, so logins would fail with:
```
Failed to get username: who='' is invalid
```
This can be reproduced by changing the user's shell to point to
gitlab-shell. For example:
```
usermod git -s /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell
```
While setting gitlab-shell as the user's shell isn't officially
supported, gitlab-shell still should be able to cope with the key being
specified as the last argument. We now split the argument list and use
the last value.
Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/530
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Improve logging for non-git commands
See merge request gitlab-org/gitlab-shell!538
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
| |
This will help to prevent misconfigurations.
Changelog: fixed
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This was lost in the move from Ruby to Go. Restore it now.
Changelog: fixed
|
|\
| |
| |
| |
| |
| |
| | |
refactor: unify instantiation of command.Shell
Closes #517
See merge request gitlab-org/gitlab-shell!520
|
| | |
|
|/ |
|
|
|
|
| |
It adds correlation ids wherever possible
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
refactor: remove commandargs.GenericArgs
Closes #212
See merge request gitlab-org/gitlab-shell!506
|
| |
| |
| |
| |
| | |
parse logic will only run if the executable accept args.
healthcheck is the only one not accepting arguments.
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Switch to labkit for logging system setup
Closes #271
See merge request gitlab-org/gitlab-shell!504
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
|\ \
| |/
|/|
| |
| | |
Modify regex to prevent partial matches
See merge request gitlab-org/security/gitlab-shell!6
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
Update go-proxyproto to v0.6.0
See merge request gitlab-org/gitlab-shell!499
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
Switch to labkit/log for logging functionality
See merge request gitlab-org/gitlab-shell!498
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| | |
A RoundTripper for tracking the duration of an http request
is introduced
|
| |
| |
| |
| | |
already includes it
|
| |
| |
| |
| |
| | |
They are going to be used to determine whether a server is alive
and ready to accept traffic
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | | |
Refactor testhelper.PrepareTestRootDir using t.Cleanup
See merge request gitlab-org/gitlab-shell!493
|
| |/ |
|