Skip to content
Snippets Groups Projects
  1. Aug 27, 2019
  2. Aug 20, 2019
    • Diego Louzán's avatar
      feat: SMIME signed notification emails · 0dcb9d21
      Diego Louzán authored
      - Add mail interceptor the signs outgoing email with SMIME
      - Add lib and helpers to work with SMIME data
      - New configuration params for setting up SMIME key and cert files
      0dcb9d21
  3. Aug 07, 2019
    • Stan Hu's avatar
      Add support for Content-Security-Policy · 5fbbd3dd
      Stan Hu authored and Ash McKenzie's avatar Ash McKenzie committed
      A nonce-based Content-Security-Policy thwarts XSS attacks by allowing
      inline JavaScript to execute if the script nonce matches the header
      value. Rails 5.2 supports nonce-based Content-Security-Policy headers,
      so provide configuration to enable this and make it work.
      
      To support this, we need to change all `:javascript` HAML filters to the
      following form:
      
      ```
      = javascript_tag nonce: true do
        :plain
          ...
      ```
      
      We use `%script` throughout our HAML to store JSON and other text, but
      since this doesn't execute, browsers don't appear to block this content
      from being used and require the nonce value to be present.
      Verified
      5fbbd3dd
  4. Aug 01, 2019
  5. Jul 24, 2019
  6. Jul 22, 2019
  7. Jul 10, 2019
  8. Jul 08, 2019
  9. Jul 02, 2019
    • Mayra Cabrera's avatar
      Includes logic to persist namespace statistics · dfdfa913
      Mayra Cabrera authored and Kamil Trzciński's avatar Kamil Trzciński committed
      - Add two new ActiveRecord models:
        - RootNamespaceStoragestatistics will persist root namespace statistics
        - NamespaceAggregationSchedule will save information when a new update
      to the namespace statistics needs to be scheduled
      - Inject into UpdateProjectStatistics concern a new callback that will
      call an async job to insert a new row onto NamespaceAggregationSchedule
      table
      - When a new row is inserted a new job is scheduled. This job will
      update call an specific service to update the statistics and after that
      it will delete thee aggregated scheduled row
      - The RefresherServices makes heavy use of arel to build composable
      queries to update Namespace::RootStorageStatistics attributes.
      - Add an extra worker to traverse pending rows on
      NAmespace::AggregationSchedule table and schedule a worker for each one
      of this rows.
      - Add an extra worker to traverse pending rows on
      NAmespace::AggregationSchedule table and schedule a worker for each one
      of this rows
      dfdfa913
  10. Jun 28, 2019
  11. Jun 27, 2019
  12. Jun 26, 2019
  13. Jun 24, 2019
    • Vladimir Shushlin's avatar
      Renew Let's Encrypt certificates · a7764d0e
      Vladimir Shushlin authored
      Add index for pages domain ssl auto renewal
      Add PagesDomain.needs_ssl_renewal scope
      Add cron worker for ssl renewal
      Add worker for ssl renewal
      Add pages ssl renewal worker queues settings
      a7764d0e
  14. Jun 20, 2019
    • Yorick Peterse's avatar
      Backport gitlab.yml.example from EE · 0e415647
      Yorick Peterse authored
      To make this happen, we need to conditionally add the group_saml
      strategy when running tests, but only on EE. This requires some changes
      to Gitlab.ee? so that it can be used before/without loading the Rails
      environment. We also have to change how we require a few files, so this
      can run outside of Rails.
      Verified
      0e415647
  15. May 29, 2019
  16. May 01, 2019
  17. Apr 30, 2019
  18. Apr 29, 2019
    • Sean McGivern's avatar
      Don't allow a relative_url_root of '/' · 56515020
      Sean McGivern authored
      This will fail in a few ways:
      
      1. We might end up having a path (not a URL) starting with `//`, which
         will be interpreted by browsers as a protocol-relative URL.
      2. Issue, MR, snippet, etc. reference parsing will look for URLs at
         `http://gitlab.example.com//project/...`, with the double slash
         preventing single slashes from working.
      
      In general, it doesn't seem like there's a valid case for this.
      56515020
  19. Apr 05, 2019
    • Gosia Ksionek's avatar
      Add part of needed code · 64858317
      Gosia Ksionek authored and Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre committed
      Add columns to store project creation settings
      
      Add project creation level column in groups
       and default project creation column in application settings
      
      Remove obsolete line from schema
      
      Update migration with project_creation_level column existence check
      
      Rename migrations to avoid conflicts
      
      Update migration methods
      
      Update migration method
      64858317
  20. Mar 27, 2019
    • Nick Thomas's avatar
      Allow external diffs to be used conditionally · 0e831b0b
      Nick Thomas authored
      Since external diffs are likely to be a bit slower than in-database
      ones, add a mode that makes diffs external after they've been obsoleted
      by events. This should strike a balance between performance and disk
      space.
      
      A background cron drives the majority of migrations, since diffs become
      outdated through user actions.
      Unverified
      0e831b0b
  21. Mar 19, 2019
    • Patrick Bajao's avatar
      Integrate Gitlab::Keys with Gitlab::Shell · 26dadbc9
      Patrick Bajao authored
      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
  22. Mar 04, 2019
  23. Feb 27, 2019
  24. Feb 05, 2019
  25. Jan 09, 2019
  26. Dec 07, 2018
  27. Nov 29, 2018
    • Imre Farkas's avatar
      Add config to disable impersonation · bd3a4840
      Imre Farkas authored
      Adds gitlab.impersonation_enabled config option defaulting to true to
      keep the current default behaviour.
      
      Only the act of impersonation is modified, impersonation token
      management is not affected.
      Verified
      bd3a4840
  28. Oct 31, 2018
  29. Oct 30, 2018
  30. Oct 05, 2018
  31. Sep 13, 2018
  32. Sep 06, 2018
  33. Aug 31, 2018
    • Stan Hu's avatar
      Bump unauthenticated session time from 1 hour to 2 hours · 19e56902
      Stan Hu authored
      Users who have their system clocks configured inconsistently due to Daylight
      Savings may see a GitLab session cookie that immediately expires, resulting in
      a 422 error. To avoid these errors, we can bump the unauthenticated session
      time from 1 hour to 2 hours so they have time to login and get the default 7-day
      session.
      
      Closes #50393
      19e56902
  34. Jul 25, 2018
  35. Jul 24, 2018
  36. Jul 23, 2018
  37. Jul 18, 2018
    • Stan Hu's avatar
      Limit the TTL for anonymous sessions to 1 hour · c559c43d
      Stan Hu authored
      By default, all sessions are given the same expiration time configured in the
      session store (e.g. 1 week). However, unauthenticated users can generate a lot
      of sessions, primarily for CSRF verification. It makes sense to reduce the TTL
      for unauthenticated to something much lower than the default (e.g. 1 hour) to
      limit Redis memory. In addition, Rails creates a new session after login,
      so the short TTL doesn't even need to be extended.
      
      Closes #48101
      c559c43d
    • Imre Farkas's avatar
      Delete UserActivities and related workers · c62fce98
      Imre Farkas authored
      Verified
      c62fce98
  38. Jul 11, 2018
Loading