feat: license util config (#3248)

* feat: license util config

* address comments

* introduce census job

* add job

* fix import groups

* remove pointers
This commit is contained in:
Michael Milton authored and GitHub committed 2023-05-30 18:20:49 -04:00
1 parent 7bdbe8ab8e
commit 9ae2bdfae6
6 files changed
+143

No files matched your search

+11
View File
@@ -148,6 +148,9 @@ type Config struct {
// sensitive. This should only be enabled for debugging purposes, and can be
// toggled with SIGHUP.
EnableWorkerAuthDebugging bool `hcl:"enable_worker_auth_debugging"`
// For opting out of license utilization reporting
Reporting Reporting `hcl:"reporting"`
}
type Controller struct {
@@ -308,6 +311,14 @@ type Plugins struct {
ExecutionDir string `hcl:"execution_dir"`
}
type Reporting struct {
License License `hcl:"license"`
}
type License struct {
Enabled bool `hcl:"enabled"`
}
// DevWorker is a Config that is used for dev mode of Boundary
// workers. Supported options: WithObservationsEnabled, WithSysEventsEnabled,
// WithAuditEventsEnabled, TestWithErrorEventsEnabled
+5
View File
@@ -451,6 +451,11 @@ func TestLoad(t *testing.T) {
ExecutionDir: "",
},
HcpbClusterId: "",
Reporting: &config.Reporting{
License: &config.License{
Enabled: false,
},
},
},
nil,
},
@@ -63,3 +63,9 @@ kms "aead" {
key = "8fZBjCUfN0TzjEGLQldGY4+iE9AkOvCfjh7+p0GtRBQ="
key_id = "global_recovery"
}
reporting {
license {
enabled = false
}
}