summaryrefslogtreecommitdiff
path: root/go/internal
Commit message (Collapse)AuthorAgeFilesLines
* Support calling internal API using HTTPSid-api-httpsIgor Drozdov2019-05-0110-16/+263
|
* Support calling internal api using HTTPIgor2019-04-2415-140/+348
|
* Pass the root directory into the fallback commandNick Thomas2019-04-123-7/+93
|
* Provide go implementation for 2fa_recovery_codes commandIgor2019-03-2116-35/+611
|
* Wrap Stderr & Stdout in a reporter structBob Van Landuyt2019-03-157-29/+85
| | | | | The reporter struct can be used for passing around and reporting to the io.Writer of choice.
* Detect user based on key, username or idBob Van Landuyt2019-03-148-1/+634
| | | | | | | | | | | | | | | | | | 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.
* Get secret from configBob Van Landuyt2019-03-138-87/+182
| | | | | | | | | | | This adds parsing if the `secret_file` from YAML. And reads the contents of the configured file. If no file is configured, we fall back to the `.gitlab_shell_secret` in the root dir of the configuration. If the configured path does not start with a `/` we start looking for the file relative to the root dir of the configuration.
* Adds distributed tracing instrumentation to GitLab-Shellan-distributed-tracingAndrew Newdigate2019-03-017-95/+278
| | | | Adds distributed tracing instrumentation to GitLab-Shell using LabKit
* Don't fall back to ruby for non SSH connectionsbvl-feature-flag-commandsBob Van Landuyt2019-01-151-3/+3
| | | | | When SSH_CONNECTION is not set, we don't fall back to ruby, but instead fail directly in go writing the error to stderr.
* Allow enabling gitlab-shell "discover"-featureBob Van Landuyt2019-01-159-0/+407
| | | | | | | | | | | | | | | | | | | 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
* Vendor updatesAndrew Newdigate2018-12-113-3/+3
|
* Revert "Merge branch 'zj-rename-gitalypb' into 'master'"revert-0662bdd1Zeger-Jan van de Weg2018-12-073-6/+6
| | | This reverts merge request !262
* Upgrade gitaly Client dependencyZeger-Jan van de Weg2018-12-063-6/+6
| | | | | The client now has TLS support. So this gets pulled into this component. To make it work, we have to upgrade the proto too.
* Use Gitaly's v2 auth schemegitaly-auth-v2Alejandro Rodríguez2018-10-091-1/+1
|
* Allow the config directory to be specifiedNick Thomas2018-09-282-7/+14
|
* Specify a richer scheme to run the migration withNick Thomas2018-09-282-11/+26
|
* Initial feature-flagged go/ruby switchNick Thomas2018-09-282-6/+13
|
* Add Gitaly git-upload-archive migrated commandgitaly-upload-archiveAlejandro Rodríguez2018-03-201-0/+26
|
* Switch to structured loggingJacob Vosmaer (GitLab)2018-03-193-23/+46
|
* tokens!Kim "BKC" Carlbäcker2017-07-073-3/+3
|
* refactor Gitaly dialOptsgitaly-124-gitaly-sshKim "BKC" Carlbäcker2017-07-073-18/+15
|
* don't make up exitCodesKim "BKC" Carlbäcker2017-07-072-6/+6
|
* AuthenticationKim "BKC" Carlbäcker2017-07-062-2/+18
|
* - Update gitaly vendoringKim "BKC" Carlbäcker2017-07-032-10/+30
| | | | | - Wire up gitaly-*-pack to Gitaly. Don't pass git-*-pack to go - Disable tests for go1.5 & 1.6
* Change signature of logger.FatalJacob Vosmaer2017-05-231-10/+11
|
* Use gitaly-upload-pack and gitaly-receive-packJacob Vosmaer2017-05-236-0/+227