diff --git a/workhorse/_support/lint_last_known_acceptable.txt b/workhorse/_support/lint_last_known_acceptable.txt index fda475698a0cdfb73939f3f87972a6d37c63192e..e535b2565658f4903dc202e8e84d6eb03a38fe1f 100644 --- a/workhorse/_support/lint_last_known_acceptable.txt +++ b/workhorse/_support/lint_last_known_acceptable.txt @@ -1,8 +1,8 @@ cmd/gitlab-workhorse/config_test.go:191: cmd/gitlab-workhorse/config_test.go:191: Line contains TODO/BUG/FIXME/NOTE/OPTIMIZE/HACK: "TODO this is meant to be 50*time.Second ..." (godox) cmd/gitlab-workhorse/listener.go:26:16: G402: TLS MinVersion too low. (gosec) -cmd/gitlab-workhorse/main.go:73: Function 'buildConfig' has too many statements (64 > 40) (funlen) -cmd/gitlab-workhorse/main.go:194: Function 'run' has too many statements (59 > 40) (funlen) -cmd/gitlab-workhorse/main.go:290:10: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec) +cmd/gitlab-workhorse/main.go:73: Function 'buildConfig' has too many statements (65 > 40) (funlen) +cmd/gitlab-workhorse/main.go:195: Function 'run' has too many statements (59 > 40) (funlen) +cmd/gitlab-workhorse/main.go:291:10: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec) internal/ai_assist/duoworkflow/actions.go:79:24: G115: integer overflow conversion int -> int32 (gosec) internal/ai_assist/duoworkflow/client.go:56:73: G402: TLS MinVersion too low. (gosec) internal/api/channel_settings.go:57:28: G402: TLS MinVersion too low. (gosec) diff --git a/workhorse/cmd/gitlab-workhorse/main.go b/workhorse/cmd/gitlab-workhorse/main.go index 6703861f7f812dc892e2a6cdae1b122964a8695f..039d8d94947552c9f1f043a92f1bb6631445fb48 100644 --- a/workhorse/cmd/gitlab-workhorse/main.go +++ b/workhorse/cmd/gitlab-workhorse/main.go @@ -111,6 +111,7 @@ func buildConfig(arg0 string, args []string) (*bootConfig, *config.Config, error fset.DurationVar(&cfg.APIQueueTimeout, "apiQueueDuration", queueing.DefaultTimeout, "Maximum queueing duration of requests") fset.DurationVar(&cfg.APICILongPollingDuration, "apiCiLongPollingDuration", 50, "Long polling duration for job requesting for runners") fset.BoolVar(&cfg.PropagateCorrelationID, "propagateCorrelationID", false, "Reuse existing Correlation-ID from the incoming request header `X-Request-ID` if present") + fset.BoolVar(&cfg.CircuitBreakerConfig.Enabled, "circuitBreakerEnabled", false, "Enables the circuit breaker - overridden if specified in the config file") if err := fset.Parse(args); err != nil { return nil, nil, alreadyPrintedError{err}