1. 25 10月, 2019 1 次提交
    • D
      Handle Stored XSS for Grafana URL in settings · da6a3067
      David Wilkins 提交于
      - Extend Gitlab::UrlBlocker to allow relative urls (require_absolute
        setting).  The new `require_absolute` setting defaults to true,
        which is the existing behavior.
      
      - Extend AddressableUrlValidator to accept `require_abosolute` and
        default to the existing behavior
      
      - Add validation for ApplicationSetting#grafana_url to validate that
        the URL does not contain XSS but can be a valid relative or absolute
        url.
      
      - In the case of existing stored URLs, validate the stored URL does
        not contain XSS. If the stored URL contains stored XSS or is an
        otherwise invalid URL, return the default database column value.
      
      - Add tests for Gitlab::UrlBlocker to test require_absolute setting
      
      - Add tests for AddressableUrlValidator
      
      - Add tests for ApplicationSetting#grafana_url
      da6a3067
  2. 20 8月, 2019 1 次提交
  3. 31 7月, 2019 1 次提交
    • R
      Allow blank but not nil in validations · 5c7f2853
      Reuben Pereira 提交于
      - The most common use case for qualified_domain_validator currently is
      to allow blank ([]) but not allow nil. Modify the
      qualified_domain_validator to support this use case.
      5c7f2853
  4. 25 7月, 2019 1 次提交
  5. 26 6月, 2019 1 次提交
  6. 27 4月, 2019 1 次提交
  7. 09 4月, 2019 1 次提交
  8. 05 4月, 2019 2 次提交
  9. 04 4月, 2019 1 次提交
  10. 01 4月, 2019 1 次提交
  11. 19 3月, 2019 1 次提交
  12. 07 2月, 2019 1 次提交
    • J
      Add local markdown version · 433bcf9b
      Jan Provaznik 提交于
      Cached markdown version is composed both from global and local
      markdown version. This allows admins to bump version locally when
      needed (e.g. when external URL is changed).
      433bcf9b
  13. 07 11月, 2018 1 次提交
    • T
      User can keep their commit email private · c239452b
      Tiago Botelho 提交于
      The private commit email is automatically generated in the format:
      id-username@noreply.HOSTNAME
      
      GitLab instance admins are able to change the HOSTNAME portion,
      that defaults to Gitlab's hostname, to whatever they prefer.
      c239452b
  14. 05 11月, 2018 1 次提交
  15. 10 10月, 2018 1 次提交
    • Z
      Remove Git circuit breaker · 30b4ce94
      Zeger-Jan van de Weg 提交于
      Was introduced in the time that GitLab still used NFS, which is not
      required anymore in most cases. By removing this, the API it calls will
      return empty responses. This interface has to be removed in the next
      major release, expected to be 12.0.
      30b4ce94
  16. 01 10月, 2018 1 次提交
    • O
      Make single diff patch limit configurable · 4fbca2a3
      Oswaldo Ferreira 提交于
      - Creates a new column to hold the single patch limit value on
      application_settings
      - Allows updating this value through the application_settings API
      - Calculates single diff patch collapsing limit based on
      diff_max_patch_bytes column
      - Updates diff limit documentation
      - Adds documentation (with warning) as of how one can update this limit
      4fbca2a3
  17. 13 9月, 2018 1 次提交
  18. 30 8月, 2018 1 次提交
  19. 26 6月, 2018 1 次提交
  20. 05 6月, 2018 1 次提交
  21. 31 5月, 2018 2 次提交
  22. 29 5月, 2018 1 次提交
  23. 23 5月, 2018 1 次提交
  24. 04 5月, 2018 1 次提交
    • B
      Store application wide terms · 3d6d0a09
      Bob Van Landuyt 提交于
      This allows admins to define terms in the application settings.
      
      Every time the terms are adjusted, a new version is stored and becomes
      the 'active' version. This allows tracking which specific version was
      accepted by a user.
      3d6d0a09
  25. 23 1月, 2018 2 次提交
  26. 08 12月, 2017 1 次提交
    • B
      Move the circuitbreaker check out in a separate process · f1ae1e39
      Bob Van Landuyt 提交于
      Moving the check out of the general requests, makes sure we don't have
      any slowdown in the regular requests.
      
      To keep the process performing this checks small, the check is still
      performed inside a unicorn. But that is called from a process running
      on the same server.
      
      Because the checks are now done outside normal request, we can have a
      simpler failure strategy:
      
      The check is now performed in the background every
      `circuitbreaker_check_interval`. Failures are logged in redis. The
      failures are reset when the check succeeds. Per check we will try
      `circuitbreaker_access_retries` times within
      `circuitbreaker_storage_timeout` seconds.
      
      When the number of failures exceeds
      `circuitbreaker_failure_count_threshold`, we will block access to the
      storage.
      
      After `failure_reset_time` of no checks, we will clear the stored
      failures. This could happen when the process that performs the checks
      is not running.
      f1ae1e39
  27. 29 11月, 2017 1 次提交
  28. 23 11月, 2017 1 次提交
  29. 23 10月, 2017 1 次提交
  30. 22 10月, 2017 1 次提交
  31. 19 10月, 2017 1 次提交
  32. 17 10月, 2017 1 次提交
  33. 16 10月, 2017 1 次提交
  34. 11 9月, 2017 1 次提交
  35. 01 9月, 2017 1 次提交
    • Z
      Implement the implied CI/CD config for AutoDevOps · 6ed49040
      Zeger-Jan van de Weg 提交于
      Behind an application setting, which defaults to false, this commit
      implements the implied CI/CD config. Which means that in the case we
      can't find the `.gitlab-ci.yml` on the commit we want to start a
      pipeline for, we fall back to an implied configuration.
      
      For now the Bash template has been copied to
      `Auto-Devops.gitlab-ci.yml` so the tests actually work.
      
      Fixes #34777
      6ed49040
  36. 31 8月, 2017 2 次提交