summaryrefslogtreecommitdiff
path: root/internal/handler/exec_test.go
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2020-07-19 23:24:32 -0700
committerStan Hu <stanhu@gmail.com>2020-07-20 13:15:49 -0700
commit7d62bbc3dd92f1e73b3e2a199f6b6b613d5821d9 (patch)
tree66d67385aff9007652167ed53cfac848de3e0b3a /internal/handler/exec_test.go
parentb3f6fcdb77a3d047ce8b02e9a0faf32e5a244c92 (diff)
downloadgitlab-shell-sh-log-remote-ip.tar.gz
Log remote IP for executed commandssh-log-remote-ip
Admins may want to know what client IP originated the request. This commit adds a `remote_ip` field to the log that extracts the IP address from the `SSH_CONNECTION` environment variable. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/199
Diffstat (limited to 'internal/handler/exec_test.go')
0 files changed, 0 insertions, 0 deletions