summaryrefslogtreecommitdiff
path: root/go
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-124-12/+99
|
* Correctly determine the root directory for gitlab-shellNick Thomas2019-04-121-11/+24
| | | | Credit to https://gitlab.com/ejiek for spotting this one.
* Provide go implementation for 2fa_recovery_codes commandIgor2019-03-2117-46/+622
|
* Better testing for JSON deserialisationan-improve-test-coverageAndrew Newdigate2019-03-183-0/+177
| | | | | | | | Adds tests to ensure that JSON deserialisation from program arguments takes place. This was a testing blind spot, which led to a brief regression: https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/280
* Wrap Stderr & Stdout in a reporter structBob Van Landuyt2019-03-158-37/+96
| | | | | 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.
* Vendor otiai10/copyBob Van Landuyt2019-03-136-0/+161
|
* Fix unmarshalling JSON from the command lineNick Thomas2019-03-063-3/+3
|
* Adds distributed tracing instrumentation to GitLab-Shellan-distributed-tracingAndrew Newdigate2019-03-0111-223/+322
| | | | Adds distributed tracing instrumentation to GitLab-Shell using LabKit
* Add testify/require to vendored packagesAndrew Newdigate2019-02-268-0/+2274
|
* Vendor LabKit into GitLab-ShellAndrew Newdigate2019-02-25120-0/+16304
| | | | Done using `govendor fetch -v gitlab.com/gitlab-org/labkit/...@master`
* Bump gitaly-proto to v1.10.0sh-bump-gitaly-protoStan Hu2019-02-128-539/+1009
| | | | | This is done to ensure we don't run into unknown fields as we saw in https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/364.
* Don't fall back to ruby for non SSH connectionsbvl-feature-flag-commandsBob Van Landuyt2019-01-152-7/+6
| | | | | 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-1510-17/+425
| | | | | | | | | | | | | | | | | | | 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 testifyBob Van Landuyt2019-01-1448-0/+11112
| | | | Add testify as test helpers
* Remove unused vendored coderemove-gitaly-proto-helperJacob Vosmaer2018-12-173-84/+0
|
* Vendor updatesAndrew Newdigate2018-12-11373-33426/+81807
|
* Revert "Merge branch 'zj-rename-gitalypb' into 'master'"revert-0662bdd1Zeger-Jan van de Weg2018-12-0741-2530/+2243
| | | This reverts merge request !262
* Upgrade gitaly Client dependencyZeger-Jan van de Weg2018-12-0641-2243/+2530
| | | | | 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-0926-6/+1954
|
* Allow the config directory to be specifiedNick Thomas2018-09-283-17/+31
|
* Specify a richer scheme to run the migration withNick Thomas2018-09-283-26/+54
|
* Initial feature-flagged go/ruby switchNick Thomas2018-09-283-6/+49
|
* Pass custom git_config_options to GitalyoRubén Dávila2018-08-077-273/+457
| | | | | The /api/internal/allowed endpoint on GitLab has been updated to return some custom git options that can be used with git commands, we need to pass these received options to Gitaly.
* Update gitaly-proto to 0.109.0James Lopez2018-07-2716-715/+3151
|
* Add script to update vendored go libsJacob Vosmaer (GitLab)2018-07-241-0/+12
|
* Add Gitaly git-upload-archive migrated commandgitaly-upload-archiveAlejandro Rodríguez2018-03-2018-666/+2397
|
* Switch to structured loggingJacob Vosmaer (GitLab)2018-03-193-23/+46
|
* Vendor logrus at v1.0.5add-logrusJacob Vosmaer2018-03-13266-0/+153518
|
* Update gitaly-proto and gitaly libsJacob Vosmaer (GitLab)2018-01-1821-480/+8485
|
* Use grpc-go 1.9.1grpc-go-1.9.1Jacob Vosmaer2018-01-1885-3557/+11819
|
* Bump gitaly-proto to v0.23.0sh-bump-gitaly-proto-23-0Stan Hu2017-07-296-142/+431
|
* Bump gitaly-proto version to 0.20.0Stan Hu2017-07-256-119/+540
|
* Update vendoring for gitalyupdate-gitaly-definitionKim "BKC" Carlbäcker2017-07-2011-191/+1059
|
* 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
|
* update gitaly-protoKim "BKC" Carlbäcker2017-07-0712-556/+2377
|
* AuthenticationKim "BKC" Carlbäcker2017-07-062-2/+18
|
* fix vendorKim "BKC" Carlbäcker2017-07-066-56/+71
|
* - Update gitaly vendoringKim "BKC" Carlbäcker2017-07-0320-146/+3115
| | | | | - Wire up gitaly-*-pack to Gitaly. Don't pass git-*-pack to go - Disable tests for go1.5 & 1.6
* Downgrade grpc to get Go 1.5 compatibilitygo-1.5-compatJacob Vosmaer2017-06-0215-921/+473
|
* Check number of argumentsJacob Vosmaer2017-05-232-0/+10
|
* Change signature of logger.FatalJacob Vosmaer2017-05-233-16/+17
|
* Use gitaly-upload-pack and gitaly-receive-packJacob Vosmaer2017-05-2326-12/+9717
|
* Vendor gitaly-proto 0.5.0go-hello-worldJacob Vosmaer2017-04-12161-1/+68957
|
* Add hello-world executableJacob Vosmaer2017-04-122-0/+13