Skip to content
Snippets Groups Projects
  1. Mar 13, 2020
  2. Mar 12, 2020
  3. Jan 27, 2020
  4. Jan 08, 2020
  5. Dec 17, 2019
  6. Dec 11, 2019
  7. Sep 13, 2019
  8. May 31, 2019
  9. Mar 28, 2019
  10. Nov 01, 2018
  11. Sep 11, 2018
  12. Jul 26, 2018
  13. Feb 15, 2018
  14. Feb 12, 2018
  15. Feb 02, 2018
  16. Feb 01, 2018
  17. Dec 05, 2017
  18. Nov 16, 2017
    • Yorick Peterse's avatar
      Cache the number of user SSH keys · 3e561736
      Yorick Peterse authored
      By caching the number of personal SSH keys we reduce the number of
      queries necessary on pages such as ProjectsController#show (which can
      end up querying this data multiple times).
      
      The cache is refreshed/flushed whenever an SSH key is added, removed, or
      when a user is removed.
      Verified
      3e561736
  19. Oct 03, 2017
  20. Sep 20, 2017
    • Yorick Peterse's avatar
      Stop using Sidekiq for updating Key#last_used_at · b3566a01
      Yorick Peterse authored
      This makes things simpler as no scheduling is involved. Further we
      remove the need for running a SELECT + UPDATE just to get the key and
      update it, whereas we only need an UPDATE when setting last_used_at
      directly in a request.
      
      The added service class takes care of updating Key#last_used_at without
      using Sidekiq. Further it makes sure we only try to obtain a Redis lease
      if we're confident that we actually need to do so, instead of always
      obtaining it. We also make sure to _only_ update last_used_at instead of
      also updating updated_at.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36663
      Verified
      b3566a01
  21. Sep 15, 2017
  22. Aug 30, 2017
    • Nick Thomas's avatar
      Address review comments · b84ca08e
      Nick Thomas authored
      b84ca08e
    • Nick Thomas's avatar
      Rework the permissions model for SSH key restrictions · 68470602
      Nick Thomas authored
      `allowed_key_types` is removed and the `minimum_<type>_bits` fields are
      renamed to `<tech>_key_restriction`. A special sentinel value (`-1`) signifies
      that the key type is disabled.
      
      This also feeds through to the UI - checkboxes per key type are out, inline
      selection of "forbidden" and "allowed" (i.e., no restrictions) are in.
      
      As with the previous model, unknown key types are disallowed, even if the
      underlying ssh daemon happens to support them. The defaults have also been
      changed from the lowest known bit size to "no restriction". So if someone
      does happen to have a 768-bit RSA key, it will continue to work on upgrade, at
      least until the administrator restricts them.
      68470602
    • Nick Thomas's avatar
      Add settings for minimum key strength and allowed key type · b0f982fb
      Nick Thomas authored
      This is an amalgamation of:
      
      * Cory Hinshaw: Initial implementation !5552
      * Rémy Coutable: Updates !9350
      * Nick Thomas: Resolve conflicts and add ED25519 support !13712
      b0f982fb
  23. Aug 03, 2017
  24. Jun 02, 2017
  25. May 10, 2017
  26. Jan 20, 2017
  27. Jan 08, 2017
    • Vincent Wong's avatar
      Record and show last used date of SSH Keys · b6df93a5
      Vincent Wong authored
      Addresses: Issue #13810
      
      1. Adds a last_used_at attribute to the Key table/model
      2. Update a key's last_used_at whenever it gets used
      3. Display how long ago an ssh key was last used
      b6df93a5
  28. Dec 06, 2016
  29. Nov 17, 2016
  30. Nov 15, 2016
  31. Aug 02, 2016
  32. Jun 20, 2016
  33. Jun 03, 2016
  34. May 31, 2016
  35. May 09, 2016
  36. May 06, 2016
  37. Mar 15, 2016
Loading