* [COMPLIANCE] Update Copyright and License Headers * chore: make gen to generate files with copyright headers * chore: update missed copyright headers --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
32 lines
956 B
Go
32 lines
956 B
Go
// Copyright IBM Corp. 2020, 2025
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package controller
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/hashicorp/boundary/internal/cmd/base"
|
|
"github.com/hashicorp/boundary/internal/cmd/config"
|
|
)
|
|
|
|
type Config struct {
|
|
// The base Server object, containing things shared between Controllers and
|
|
// Workers
|
|
*base.Server
|
|
// The underlying configuration, passed in here to avoid duplicating values
|
|
// everywhere
|
|
RawConfig *config.Config
|
|
// If set, authorization checking occurrs but failures are ignored
|
|
DisableAuthorizationFailures bool
|
|
// Override worker auth CA certificate lifetime for testing
|
|
TestOverrideWorkerAuthCaCertificateLifetime time.Duration
|
|
// Reinitialize the roots at startup
|
|
TestWorkerAuthCaReinitialize bool
|
|
|
|
// This is derived from the config.Config. It tracks the state of the
|
|
// rate limiter's configuration, and is updated if the config changes via a
|
|
// SIGHUP.
|
|
rateLimiterConfig *rateLimiterConfig
|
|
}
|