- Mar 11, 2020
-
-
Stan Hu authored
This restores the previous behavior of logging the success and failures of internal HTTP requests. Part of https://gitlab.com/gitlab-org/gitlab/issues/207916
-
- Dec 24, 2019
-
-
Ash McKenzie authored
-
- Oct 23, 2019
-
-
- Oct 15, 2019
-
-
Nick Thomas authored
-
Nick Thomas authored
-
Nick Thomas authored
-
- Oct 03, 2019
-
-
Małgorzata Ksionek authored
-
- Oct 01, 2019
-
-
Małgorzata Ksionek authored
-
Małgorzata Ksionek authored
-
- Sep 04, 2019
-
-
Patrick Bajao authored
-
- Aug 09, 2019
-
-
Patrick Bajao authored
Build this command when `Executable` name is `gitlab-shell-authorized-principals-check`. Feature flag is the same name.
-
- Aug 08, 2019
-
-
Patrick Bajao authored
Build this command when `Executable` name is `gitlab-shell-authorized-keys-check`. Feature flag is the same name.
-
- Aug 02, 2019
-
-
Patrick Bajao authored
This struct is responsible for determining the name and root dir of the executable. The `RootDir` property will be used to find the config. The `Name` property will be used to determine what `Command` and `CommandArgs` to be built.
-
- Jul 29, 2019
-
-
Patrick Bajao authored
Rename the ruby scripts to have `-ruby` suffix and add a symlink for both to `./gitlab-shell`. The executable name will be used to determine how args will be parsed. For now, we only parse the arguments for gitlab-shell commands. If the executable is `gitlab-shell-authorized-keys-check` or `gitlab-shell-authorized-principals-check`, it'll always fallback to the ruby version. Ruby specs test the ruby script, the fallback from go to ruby and go implementation of both (still pending).
-
- Jun 06, 2019
-
-
Igor Drozdov authored
-
- May 31, 2019
-
-
Igor Drozdov authored
-
- May 22, 2019
-
-
Igor Drozdov authored
-
- May 07, 2019
-
-
Stan Hu authored
Restores some of the changes in https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/257, but still targets Rubocop for 2.3.
-
- Apr 30, 2019
-
-
Christian Ratzenhofer authored
-
- Apr 04, 2019
-
-
Ash McKenzie authored
Using ConsoleHelper::write_stderr
-
Ash McKenzie authored
.write_stderr .format_for_stderr
-
- Apr 03, 2019
-
-
Jacob Vosmaer authored
-
- Mar 31, 2019
-
-
Luke Duncalfe authored
print_warnings is now using that method in order to print a large formatted warning message, so renaming the method to be less tied to the broadcast message functionality.
-
- Mar 28, 2019
-
-
Luke Duncalfe authored
-
Luke Duncalfe authored
-
Luke Duncalfe authored
Warnings are printed using the same method that prints broadcast messages. This ensures that whatever warnings are returned will be displayed correctly.
-
- Mar 21, 2019
-
-
Igor Drozdov authored
-
- Mar 14, 2019
-
-
Bob Van Landuyt authored
This allows gitlab-shell to be called with an argument of the format `key-123` or `username-name`. When called in this way, `gitlab-shell` will call the GitLab internal API. If the API responds with user information, it will print a welcome message including the username. If the API responds with a successful but empty response, gitlab-shell will print a welcome message for an anonymous user. If the API response includes an error message in JSON, this message will be printed to stderr. If the API call fails, an error message including the status code will be printed to stderr.
-
- Feb 16, 2019
-
-
Stan Hu authored
This will enable us to track the human-readable project path with SSH access in gitlab-shell. Currently the Gitaly logs will only show the hashed storage and gl_repository path (e.g. project-1234).
-
- Feb 14, 2019
-
-
Ash McKenzie authored
-
- Jan 15, 2019
-
-
Bob Van Landuyt authored
When SSH_CONNECTION is not set, we don't fall back to ruby, but instead fail directly in go writing the error to stderr.
-
Bob Van Landuyt authored
This adds the possibility to enable features for GitLab shell. The first feature being recognized is "Discover": It's the command that is executed when running `ssh git@gitlab.example.com` and is called without a command. The gitlab key id or username is already parsed from the command line arguments. Currently we only support communicating with GitLab-rails using unix sockets. So features will not be enabled if the GitLab-url is using a different protocol. The url for this read from the config yaml. Pending ruby-specs have been added for the gitlab-shell command. Refactor to have separate command packages
-
- Dec 20, 2018
-
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
- Dec 14, 2018
-
-
Jonathon Reinhart authored
-
Jonathon Reinhart authored
push_opts[] is named as such so that it becomes an array in the GitLab internal Grape::API params hash. If it were named push_opts, only the final (scalar) push_opts parameter would be present. Also update specs to include push_opts parameter: - gitlab_post_receive_spec - gitlab_net_spec for the internal API change
-
Jonathon Reinhart authored
This module is responsible for converting the GIT_PUSH_OPTION_* environment variables into an array. See https://gitlab.com/gitlab-org/gitlab-ce/issues/18667
-
- Dec 13, 2018
-
-
Douwe Maan authored
This reverts merge request !257
-
Stan Hu authored
-
Jonathon Reinhart authored
As of 7eb45672, NamesHelper is no longer used.
-