Skip to content
Snippets Groups Projects
  1. Feb 20, 2020
  2. Feb 13, 2020
  3. Nov 18, 2019
  4. Oct 23, 2019
  5. Oct 18, 2019
  6. Oct 09, 2019
  7. Sep 18, 2019
  8. Aug 29, 2019
  9. Aug 22, 2019
  10. May 30, 2019
  11. Mar 19, 2019
    • Patrick Bajao's avatar
      Integrate Gitlab::Keys with Gitlab::Shell · 26dadbc9
      Patrick Bajao authored and Nick Thomas's avatar Nick Thomas committed
      In this commit, some methods that aren't being used
      are removed from `Gitlab::Shell`. They are the ff:
      - `#remove_keys_not_found_in_db`
      - `#batch_read_key_ids`
      - `#list_key_ids`
      
      The corresponding methods in `Gitlab::Keys` have been
      removed as well.
      26dadbc9
  12. Feb 27, 2019
  13. Feb 06, 2019
  14. Nov 06, 2018
  15. Sep 12, 2018
  16. Jul 09, 2018
  17. Jun 19, 2018
  18. Jun 12, 2018
  19. Jun 05, 2018
  20. Apr 25, 2018
  21. Apr 18, 2018
  22. Apr 03, 2018
  23. Mar 21, 2018
  24. Mar 14, 2018
    • Zeger-Jan van de Weg's avatar
      Change Gitlab::Shell#add_namespace to #create_namespace · 77f0906e
      Zeger-Jan van de Weg authored
      Prior to this change, this method was called add_namespace, which broke
      the CRUD convention and made it harder to grep for what I was looking
      for. Given the change was a find and replace kind of fix, this was
      changed without opening an issue and on another feature branch.
      
      If more dynamic calls are made to add_namespace, these could've been
      missed which might lead to incorrect bahaviour. However, going through
      the commit log it seems thats not the case.
      Unverified
      77f0906e
  25. Mar 06, 2018
  26. Feb 07, 2018
  27. Jan 09, 2018
  28. Jan 08, 2018
    • James Edwards-Jones's avatar
      Fix spec in shell_spec.rb · bd9ead68
      James Edwards-Jones authored
      The spec for "#add_key does nothing" would always have passed,
      since the expectation was on both the wrong object and message.
      bd9ead68
    • Valery Sizov's avatar
      d9557e43
    • Michael Kozono's avatar
      Backport authorized_keys_enabled defaults to true' · 797fe0a6
      Michael Kozono authored
      Originally from branch 'fix-authorized-keys-enabled-default-2738' via merge request https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2240
      
      Removed background migrations which were intended to fix state after using Gitlab
      without a default having been set
      
      Squashed commits:
      Locally, if Spring was not restarted, `current_application_settings` was still cached, which prevented the migration from editing the file. This will also ensure that any app server somehow hitting old cache data will properly default this setting regardless.
      Retroactively fix migration
        This allows us to identify customers who ran the broken migration. Their `authorized_keys_enabled` column does not have a default at this point.
        We will fix the column after we fix the `authorized_keys` file.
      Fix authorized_keys file if needed
      Add default to authorized_keys_enabled setting
        Reminder: The original migration was fixed retroactively a few commits ago, so people who did not ever run GitLab 9.3.0 already have a column that defaults to true and disallows nulls. I have tested on PostgreSQL and MySQL that it is safe to run this migration regardless.
        Affected customers who did run 9.3.0 are the ones who need this migration to fix the authorized_keys_enabled column.
        The reason for the retroactive fix plus this migration is that it allows us to run a migration in between to fix the authorized_keys file only for those who ran 9.3.0.
      Tweaks to address feedback
      Extract work into background migration
      Move batch-add-logic to background migration
        Do the work synchronously to avoid multiple workers attempting to add batches of keys at the same time.
        Also, make the delete portion wait until after adding is done.
      Do read and delete work in background migration
      Fix Rubocop offenses
      Add changelog entry
      Inform the user of actions taken or not taken
      Prevent unnecessary `select`s and `remove_key`s
      Add logs for action taken
      Fix optimization
      Reuse `Gitlab::ShellAdapter`
      Guarantee the earliest key
      Fix migration spec for MySQL
      797fe0a6
    • Michael Kozono's avatar
      Backport option to disable writing to `authorized_keys` file · 255a0f85
      Michael Kozono authored
      Originally branch 'mk-toggle-writing-to-auth-keys-1631'
      
      See merge request !2004
      
      Squashed commits:
      Add authorized_keys_enabled to Application Settings
      Ensure default settings are exposed in UI
      Without this change, `authorized_keys_enabled` is unchecked when it is nil, even if it should be checked by default.
      Add “Speed up SSH operations” documentation
      Clarify the reasons for disabling writes
      Add "How to go back" section
      Tweak copy
      Update Application Setting screenshot
      255a0f85
  29. Jan 05, 2018
  30. Jan 04, 2018
  31. Dec 14, 2017
    • Nick Thomas's avatar
      Import gitlab_projects.rb from gitlab-shell · 4b785df2
      Nick Thomas authored
      By importing this Ruby code into gitlab-rails (and gitaly-ruby), we avoid
      200ms of startup time for each gitlab_projects subprocess we are eliminating.
      
      By not having a gitlab_projects subprocess between gitlab-rails / sidekiq and
      any git subprocesses (e.g. for fork_project, fetch_remote, etc, calls), we can
      also manage these git processes more cleanly, and avoid sending SIGKILL to them
      Verified
      4b785df2
  32. Dec 04, 2017
  33. Oct 07, 2017
    • Jacopo's avatar
      Replaces `tag: true` into `:tag` in the specs · 0ce67858
      Jacopo authored
      Replaces all the explicit include metadata syntax in the specs (tag:
      true) into the implicit one (:tag).
      Added a cop to prevent future errors and handle autocorrection.
      0ce67858
  34. Oct 05, 2017
  35. Oct 02, 2017
Loading