As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
  1. Feb 03, 2022
  2. Feb 02, 2022
  3. Feb 01, 2022
  4. Jan 31, 2022
  5. Jan 28, 2022
  6. Jan 26, 2022
  7. Jan 25, 2022
  8. Jan 20, 2022
    • Jacob Vosmaer's avatar
      Refactor client response tests · 2cf1af8e
      Jacob Vosmaer authored
      This reduces coupling between tests in
      internal/gitlabnet/accessverifier/client_test.go, and will make it
      easier to add new test cases in the future.
      
      Note that the test server had a special behavior for the username
      "second", but this was never used. So we removed that behavior in this
      commit.
      2cf1af8e
  9. Jan 19, 2022
  10. Jan 16, 2022
  11. Jan 14, 2022
  12. Jan 13, 2022
  13. Jan 12, 2022
    • Igor Drozdov's avatar
      Deprecate self_signed_cert config setting · 537f8e19
      Igor Drozdov authored
      The option isn't required to accept self-signed certs
      
      On the other hand, if the option set to true it makes
      machine-in-the-middle attack possible
      
      Let's clarify it in the code that the option is deprecated
      537f8e19
  14. Jan 05, 2022
  15. Dec 28, 2021
    • Will Chandler's avatar
      Suppress internal errors in client output · 3a8bab43
      Will Chandler authored
      Until recently, Gitaly was silently swallowing any errors returned by
      SSH `git upload-pack` processes. Clients would still receive stderr
      output and a non-zero return code, but Gitlab-Shell would receive error
      as nil and log success.
      
      With 9deaf47f1ecb00f0f36d18ee4a0fb1576f5a0efe Gitaly will now return an
      error when git fails, but this causes Gitlab-Shell to print out the
      GRPC error code as a message to the client:
      
      > fatal: couldn't find remote ref not-a-real-ref
      > fatal: the remote end hung up unexpectedly
      > remote:
      > remote:
      > ========================================================================
      > remote:
      > remote: rpc error: code = Internal desc = SSHUploadPack: exit status 128
      > remote:
      > remote:
      > ========================================================================
      > remote:
      
      The `remote:` text gives no additional context for the user and adds
      clutter.
      
      This commit suppresses the additional message added by Gitlab-Shell on
      failure when the error type is `Internal`, returning client output to
      the format it was prior to the Gitaly change.
      3a8bab43
    • Igor Drozdov's avatar
      Merge branch 'wc-sshd-upload-pack' into 'main' · 3038ae45
      Igor Drozdov authored
      Send full git request/response in SSHD tests
      
      See merge request gitlab-org/gitlab-shell!550
      3038ae45
  16. Dec 22, 2021
    • Will Chandler's avatar
      Send full git request/response in SSHD tests · 922bb8ff
      Will Chandler authored
      Before 9deaf47f1ecb00f0f36d18ee4a0fb1576f5a0efe, Gitaly would return
      success for `SSHUploadPack` and `SSHUploadArchive` regardless of the
      exit code of the `git upload-pack|archive` process. As a result, the
      gitlab-sshd acceptance tests could rely on no errors being returned from
      Gitaly.
      
      Currently these tests send the minimum request needed to start a
      session, causing the server git process to fail as the `0000` flush
      packet to end the session is never sent.
      
      This commit fixes the tests by sending the full request/response needed
      for a successful git operation.
      922bb8ff
Loading