Skip to content
Snippets Groups Projects

Silent Mode: Block many outbound HTTP requests

Merged Michael Kozono requested to merge mk/silent-mode-block-outbound-gitlab-http into master
3 files
+ 25
39
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 1
1
@@ -92,7 +92,7 @@ def self.raise_if_blocked_by_silent_mode(http_method)
@@ -92,7 +92,7 @@ def self.raise_if_blocked_by_silent_mode(http_method)
::Gitlab::SilentMode.log_info(
::Gitlab::SilentMode.log_info(
message: 'Outbound HTTP request blocked',
message: 'Outbound HTTP request blocked',
http_method: http_method.to_s
outbound_http_request_method: http_method.to_s
)
)
raise SilentModeBlockedError, 'only get, head, options, and trace methods are allowed in silent mode'
raise SilentModeBlockedError, 'only get, head, options, and trace methods are allowed in silent mode'
Loading