chore: Move environment introspection to sshenv module
What
Moves assorted os.Getenv
usage for inspecting the runtime environment
into sshenv
module to centralize configuration checks. This Env
struct
is initialized per connection in the case of gitlab-shell
and per request
in the case of gitlab-sshd
.
Relates issues
Relates to #496 (closed)
Edited by Lucas Charles