2020-07-14 14:32:47 -07:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2020-02-12 13:53:27 -05:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
2023-05-17 18:12:19 -04:00
|
|
|
"time"
|
|
|
|
|
|
2020-08-10 17:15:02 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/cmd/base"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/cmd/config"
|
2020-02-12 13:53:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Config struct {
|
2020-07-14 14:32:47 -07:00
|
|
|
// The base Server object, containing things shared between Controllers and
|
|
|
|
|
// Workers
|
2020-03-10 15:48:04 -04:00
|
|
|
*base.Server
|
2020-07-14 14:32:47 -07:00
|
|
|
// 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
|
2023-05-17 18:12:19 -04:00
|
|
|
// Override worker auth CA certificate lifetime for testing
|
|
|
|
|
TestOverrideWorkerAuthCaCertificateLifetime time.Duration
|
2024-06-17 12:26:55 -04:00
|
|
|
// Reinitialize the roots at startup
|
|
|
|
|
TestWorkerAuthCaReinitialize bool
|
2023-10-24 14:52:25 +00:00
|
|
|
|
2023-12-01 22:14:49 +00:00
|
|
|
// 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
|
2020-02-12 13:53:27 -05:00
|
|
|
}
|