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. Sep 12, 2024
  2. Aug 22, 2024
  3. Apr 22, 2024
  4. Dec 06, 2023
  5. Nov 23, 2023
  6. Oct 06, 2023
  7. Aug 21, 2023
  8. Aug 08, 2023
  9. Jun 06, 2023
  10. Mar 03, 2023
    • Igor Drozdov's avatar
      Perform HTTP request to primary on Geo push · 83a4e8e5
      Igor Drozdov authored
      Currently, we perform a request to Gitlab Rails that proxies
      the request to primary
      
      However, it causes timeouts on big pushes and consumes large
      amount of memory. We can perform an HTTP request directly
      from Gitlab Shell instead and stream the response to the user
      Unverified
      83a4e8e5
  11. Jan 23, 2023
  12. Aug 05, 2022
    • Igor Drozdov's avatar
      Update Gitaly to v15 · 2c187671
      Igor Drozdov authored
      This commit also excludes gitlab-shell from dependencies:
      
      Gitaly specifies Gitlab Shell as a dependency as well in order
      to use gitlabnet client to perform API endpoints to Gitlab Rails.
      As a result, Gitlab Shell requires Gitaly -> Gitaly requires an
      older version of Gitlab Shell -> that version requires an older
      version of Gitlab Shell, etc. Let's use exclude to break the
      chain earlier
      2c187671
  13. Jul 05, 2022
    • Patrick Steinhardt's avatar
      go: Bump major version to v14 · 822e49b3
      Patrick Steinhardt authored
      While gitlab-shell currently has a major version of v14, the module path
      it exposes is not using that major version like it is required by the Go
      standard. This makes it impossible for dependents to import gitlab-shell
      as a dependency without using a commit as version.
      
      Fix this by changing the module path of gitlab-shell to instead be
      `gitlab.com/gitlab-org/gitlab-shell/v14` and adjust all imports
      accordingly.
      
      Changelog: fixed
      822e49b3
  14. May 09, 2022
    • Stan Hu's avatar
      Fix check_ip argument when gitlab-sshd used with PROXY protocol · 14a406a2
      Stan Hu authored
      When gitlab-sshd were used with the PROXY protocol, the `check_ip`
      argument passed to `/api/v4/internal/allowed` was the Go remote
      address, which is a host and port combination
      (e.g. 127.0.0.1:12345). As a result, This prevents IP restrictions
      from working properly on Rails. We fix this by stripping out the port
      if it is present.
      
      When OpenSSH is used, this is not an issue because the IP address
      is extracted from `SSH_CONNECTION`.
      
      Changelog: fixed
      Unverified
      14a406a2
  15. May 02, 2022
    • Jacob Vosmaer's avatar
      Always use Gitaly sidechannel connections · b2b31cee
      Jacob Vosmaer authored
      Before this change, the GitLab internal API could use a boolean
      response field to indicate whether gitlab-shell should make
      sidechannel connections go Gitaly. We now ignore that response field
      and always use sidechannel connections.
      b2b31cee
  16. Jan 25, 2022
  17. 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
  18. Aug 19, 2021
  19. Jul 14, 2021
  20. Jun 02, 2021
    • Pavlo Strokov's avatar
      fix: upgrade of the gitaly dependency · 9f5a8022
      Pavlo Strokov authored
      Gitaly project now properly respects module release flow
      and includes a module suffix in the package name. It requires
      to re-write all non-suffixed imports with suffixed of a specific
      version of tha module. With proper module versioning we don't
      need to use a 'replace' directive to point to specific commit
      and can use semantic versioning for the gitaly dependency.
      
      Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/3177
      9f5a8022
  21. Mar 17, 2021
  22. Sep 21, 2020
    • Stan Hu's avatar
      Make it possible to propagate correlation ID across processes · a487572a
      Stan Hu authored
      Previously, gitlab-shell did not pass a context through the application.
      Correlation IDs were generated down the call stack instead of passed
      around from the start execution.
      
      This has several potential downsides:
      
      1. It's easier for programming mistakes to be made in future that lead
      to multiple correlation IDs being generated for a single request.
      2. Correlation IDs cannot be passed in from upstream requests
      3. Other advantages of context passing, such as distributed tracing is
      not possible.
      
      This commit changes the behavior:
      
      1. Extract the correlation ID from the environment at the start of
      the application.
      2. If no correlation ID exists, generate a random one.
      3. Pass the correlation ID to the GitLabNet API requests.
      
      This change also enables other clients of GitLabNet (e.g. Gitaly) to
      pass along the correlation ID in the internal API requests
      (https://gitlab.com/gitlab-org/gitaly/-/issues/2725).
      
      Fixes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/474
      a487572a
  23. May 04, 2020
  24. Apr 17, 2020
  25. Dec 24, 2019
  26. Oct 18, 2019
  27. Oct 15, 2019
  28. Oct 03, 2019
  29. Oct 01, 2019
  30. Jul 31, 2019
    • Patrick Bajao's avatar
      Rename CommandArgs to Shell · 592823d5
      Patrick Bajao authored
      Other functions are still expecting for `CommandArgs` instead
      of `Shell`. They should be expecting `commandargs.Shell` now
      since it has been renamed.
      592823d5
  31. Jun 03, 2019
  32. May 31, 2019
Loading