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. Jan 12, 2023
  2. Jul 20, 2022
  3. Jul 18, 2022
    • kmcknight's avatar
      Implement Push Auth support for 2FA verification · fe5feeea
      kmcknight authored and Igor Drozdov's avatar Igor Drozdov committed
      When `2fa_verify` command is executed:
      
      - A user is asked to enter OTP
      - A blocking call for push auth is performed
      
      Then:
      
      - If the push auth request fails, the user is still able to enter
      OTP
      - If OTP is invalid, the `2fa_verify` command ends the execution
      - If OTP is valid or push auth request succeeded, then the user is
      successfully authenticated
      - If 30 seconds passed while no OTP or Push have been provided,
      then the `2fa_verify` command ends the execution
      fe5feeea
  4. Jul 01, 2021
  5. Jun 29, 2021
    • Nick Thomas's avatar
      Fix a failing spec · 07ab5369
      Nick Thomas authored
      When the shell environment includes SSH_CONNECTION, one spec fails as
      the way we're stubbing the environment to the subprocess doesn't wipe
      out the pre-existing variable. This commit changes how we do it so the
      spec passes even in this environment.
      07ab5369
  6. Jan 29, 2021
  7. Dec 10, 2020
  8. Aug 17, 2020
    • Taylan Develioglu's avatar
      Add support obtaining personal access tokens via SSH · b8d66d79
      Taylan Develioglu authored
      Implements the feature requested in gitlab-org/gitlab#19672
      
      This requires the internal api counterpart in gitlab-org/gitlab!36302 to
      be merged first.
      
      It can be used as follows:
      ```
      censored@censored-VirtualBox:~/git/gitlab$ ssh git@gitlab-2004 personal_access_token
      remote:
      remote: ========================================================================
      remote:
      remote: Usage: personal_access_token <name> <scope1[,scope2,...]> [ttl_days]
      remote:
      remote: ========================================================================
      remote:
      
      censored@censored-VirtualBox:~/git/gitlab$ ssh git@gitlab-2004 personal_access_token newtoken read_api,read_repository 30
      Token:   aAY1G3YPeemECgUvxuXY
      Scopes:  read_api,read_repository
      Expires: 2020-08-07
      ```
      b8d66d79
  9. Apr 17, 2020
  10. Mar 11, 2020
  11. Dec 24, 2019
  12. Oct 23, 2019
  13. Oct 15, 2019
  14. Oct 03, 2019
  15. Oct 01, 2019
  16. Sep 04, 2019
  17. Aug 09, 2019
  18. Aug 08, 2019
  19. Aug 02, 2019
    • Patrick Bajao's avatar
      Add Executable struct · 3b6f9f75
      Patrick Bajao authored
      This struct is responsible for determining the name and
      root dir of the executable.
      
      The `RootDir` property will be used to find the config.
      
      The `Name` property will be used to determine what `Command`
      and `CommandArgs` to be built.
      3b6f9f75
  20. Jul 29, 2019
    • Patrick Bajao's avatar
      Support falling back to ruby version of checkers · aab85f36
      Patrick Bajao authored
      Rename the ruby scripts to have `-ruby` suffix and add a symlink
      for both to `./gitlab-shell`. The executable name will be used to
      determine how args will be parsed.
      
      For now, we only parse the arguments for gitlab-shell commands. If
      the executable is `gitlab-shell-authorized-keys-check` or
      `gitlab-shell-authorized-principals-check`, it'll always fallback
      to the ruby version.
      
      Ruby specs test the ruby script, the fallback from go to ruby and
      go implementation of both (still pending).
      aab85f36
  21. Jun 06, 2019
  22. May 31, 2019
  23. May 22, 2019
  24. May 07, 2019
  25. Apr 30, 2019
  26. Apr 04, 2019
  27. Apr 03, 2019
  28. Mar 31, 2019
  29. Mar 28, 2019
  30. Mar 21, 2019
  31. Mar 14, 2019
    • Bob Van Landuyt's avatar
      Detect user based on key, username or id · 53511f36
      Bob Van Landuyt authored
      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.
      53511f36
  32. Feb 16, 2019
    • Stan Hu's avatar
      Add support for using gl_project_path · ebedab83
      Stan Hu authored
      This will enable us to track the human-readable project path with SSH
      access in gitlab-shell. Currently the Gitaly logs will only show the
      hashed storage and gl_repository path (e.g. project-1234).
      ebedab83
  33. Feb 14, 2019
Loading