Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 7月 24, 2024
  2. 7月 22, 2024
  3. 7月 17, 2024
  4. 7月 11, 2024
  5. 7月 06, 2024
  6. 7月 03, 2024
  7. 6月 25, 2024
  8. 6月 21, 2024
  9. 6月 20, 2024
    • Stan Hu's avatar
      Ensure RAILS_ENV is set for gitlab-http gem · e5bc3958
      Stan Hu 创作于
      `UrlBlocker` changes its behavior based on `Rails.env.test?`, which
      depends on `RAILS_ENV`. Locally the tests were not passing unless
      `RAILS_ENV` were set to `test`. In CI we already set this.
      未验证
      e5bc3958
    • Stan Hu's avatar
      Skip IP lookups in validating URLs on certain conditions · e8190bd3
      Stan Hu 创作于
      Previously anytime `ApplicationSetting` were updated `UrlBlocker`
      would attempt to resolve the IPs and determine whether they were
      allowed by the current settings. However, in an offline environment,
      services like Diagrams.net may not be resolved even if they are
      enabled by default.
      
      This commit skips the validations that require resolving IP addresses
      if there are no restrictions on outgoing requests:
      
      - Allow requests to the local network is checked
      - Allow requests to the local network from system hooks is checked
      - DNS rebinding attack protection is disabled
      - Block all requests, except for IP addresses, IP ranges, and domain
        names defined in the allowlist (`deny_all_requests_except_allowed`)
        is disabled
      
      Note that the URL validators in `ApplicationSetting` only pass in the
      current `deny_all_requests_except_allowed` setting, so if that is
      active then IP resolution will occur.
      
      Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/467524
      
      Changelog: fixed
      未验证
      e8190bd3
    • Stan Hu's avatar
      Refactor UrlBlocker validation methods · 89f6f99e
      Stan Hu 创作于
      This breaks up the methods that validate the URL itself
      and those that validate the resolved IP. This will
      make it easier to disable the latter.
      未验证
      89f6f99e
  10. 6月 13, 2024
  11. 6月 12, 2024
  12. 6月 11, 2024
  13. 6月 10, 2024
  14. 6月 06, 2024
  15. 6月 05, 2024
  16. 6月 04, 2024
  17. 6月 01, 2024
  18. 5月 30, 2024
  19. 5月 29, 2024
  20. 5月 28, 2024
  21. 5月 25, 2024
加载中