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. May 20, 2022
    • Igor Drozdov's avatar
      Narrow supported kex algorithms · 6a76b027
      Igor Drozdov authored
      We don't support diffie-hellman-group14-sha1 via OpenSSH currently
      Let's avoid introducing it in gitlab-sshd because it's using
      weak hashing algorithm
      6a76b027
  2. May 19, 2022
  3. May 18, 2022
  4. May 12, 2022
    • Igor Drozdov's avatar
      Implement ClientKeepAlive option · a16dcb3e
      Igor Drozdov authored
      Git clients sometimes open a connection and leave it idling,
      like when compressing objects.
      Settings like timeout client in HAProxy might cause these
      idle connections to be terminated.
      
      Let's send the keepalive message in order to prevent a client
      from closing
      a16dcb3e
  5. May 10, 2022
  6. Apr 25, 2022
  7. Apr 22, 2022
  8. Mar 30, 2022
  9. Mar 24, 2022
  10. 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
  11. May 26, 2021
  12. May 24, 2021
  13. Apr 12, 2021
  14. Feb 16, 2021
  15. Jan 18, 2021
  16. Oct 01, 2020
    • Zeger-Jan van de Weg's avatar
      config: Set a secret example · 6cef0851
      Zeger-Jan van de Weg authored
      The config.yml.example didn't include a field I was expecting to be
      there, which lead me to believe the field didn't exist. This change adds
      the `secret` YAML field, and describes how it interacts with the
      secrets_file.
      6cef0851
  17. Aug 20, 2020
  18. Jul 01, 2020
  19. May 28, 2020
  20. May 05, 2020
  21. Oct 02, 2019
  22. Jun 11, 2019
  23. Mar 01, 2019
  24. Sep 28, 2018
  25. Aug 24, 2018
  26. Mar 19, 2018
  27. Jan 12, 2018
  28. Dec 13, 2017
  29. Feb 24, 2017
  30. Dec 12, 2016
    • Sean McGivern's avatar
      Make custom hooks dir configurable · fbc213ea
      Sean McGivern authored
      Add a new configuration option, custom_hooks_dir. When this is set, we
      will look for global custom hooks in:
          <custom_hooks_dir>/{pre-receive,update,post-receive}.d/*
      
      When this is not set, default to <REPO_PATH>/hooks.
      fbc213ea
  31. Sep 27, 2016
  32. Aug 18, 2016
  33. Jun 29, 2016
  34. Feb 09, 2016
  35. Dec 11, 2015
  36. Nov 10, 2015
    • Kirill Smelkov's avatar
      Add support to connect gitlab-shell to Unicorn via UNIX socket · 184385ac
      Kirill Smelkov authored
      It is well known that UNIX sockets are faster than TCP over loopback.
      
      E.g. on my machine according to lmbench[1] they have ~ 2 times
      lower latency and ~ 2-3 times more throughput compared to TCP over
      loopback:
      
          *Local* Communication latencies in microseconds - smaller is better
          ---------------------------------------------------------------------
          Host                 OS 2p/0K  Pipe AF     UDP  RPC/   TCP  RPC/ TCP
                                  ctxsw       UNIX         UDP         TCP conn
          --------- ------------- ----- ----- ---- ----- ----- ----- ----- ----
          teco      Linux 4.2.0-1  13.8  29.2 26.8  45.0  47.9  48.5  55.5  45.
      
          *Local* Communication bandwidths in MB/s - bigger is better
          -----------------------------------------------------------------------------
          Host                OS  Pipe AF    TCP  File   Mmap  Bcopy  Bcopy  Mem   Mem
                                       UNIX      reread reread (libc) (hand) read write
          --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- -----
          teco      Linux 4.2.0-1 1084 4353 1493 2329.1 3720.7 1613.8 1109.2 3402 1404.
      
      The same ratio usually holds for servers.
      
      Also UNIX sockets, since they reside on filesystem, besides being faster with
      less latency, have one another nice property: access permissions to them are
      managed the same way access to files is.
      
      Because of lower latencies and higher throughput - for performance reasons, and
      for easier security, it makes sense to interconnect services on one machine via
      UNIX sockets and talk via TCP only to outside world.
      
      All internal services inside GitLab can talk to each other via UNIX socket
      already and only gitlab-shell was missing support to talk to Unicorn via UNIX
      socket.
      
      Let's teach gitlab-shell to talk via UNIX sockets.
      
      [1] http://www.bitmover.com/lmbench/
      
      ~~~~
      
      In this patch we
      
      - add URI::HTTPUNIX to handle http+unix:// URI scheme
      - add Net::HTTPUNIX to handle "connect via unix socket and then talk http"
      - adjust GitlabNet#http_client_for() accordingly
      - adjust documentation in config.yml.example
      
      The http+unix:// scheme is not reinvented anew: the idea about its structure is
      quite logical an was already established at least in requests-unixsocket python
      package:
      
          http://fixall.online/theres-no-need-to-reinvent-the-wheelhttpsgithubcommsabramorequests-unixsocketurl/241810/
          https://github.com/msabramo/requests-unixsocket
      184385ac
Loading