Rebrand user-visible CLI text; add legacy fallbacks for keyring, cache dir and version prefix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cb3bda43a
commit
ab4ed3c9e5
184 files changed
+934
-851
No files matched your search
@@ -76,16 +76,16 @@ type Command struct {
|
||||
}
|
||||
|
||||
func (c *Command) Synopsis() string {
|
||||
return "Start a Boundary server"
|
||||
return "Start a Threshold server"
|
||||
}
|
||||
|
||||
func (c *Command) Help() string {
|
||||
helpText := `
|
||||
Usage: boundary server [options]
|
||||
Usage: threshold server [options]
|
||||
|
||||
Start a server (controller, worker, or both) with a configuration file:
|
||||
|
||||
$ boundary server -config=/etc/boundary/controller.hcl
|
||||
$ threshold server -config=/etc/threshold/controller.hcl
|
||||
|
||||
For a full list of examples, please see the documentation.
|
||||
|
||||
@@ -115,13 +115,13 @@ func (c *Command) Flags() *base.FlagSets {
|
||||
complete.PredictFiles("*.hcl"),
|
||||
complete.PredictFiles("*.json"),
|
||||
),
|
||||
Usage: `Path to a configuration file containing a "kms" block marked for "config" purpose, to perform decryption of the main configuration file. If not set, will look for such a block in the main configuration file, which has some drawbacks; see the help output for "boundary config encrypt -h" for details.`,
|
||||
Usage: `Path to a configuration file containing a "kms" block marked for "config" purpose, to perform decryption of the main configuration file. If not set, will look for such a block in the main configuration file, which has some drawbacks; see the help output for "threshold config encrypt -h" for details.`,
|
||||
})
|
||||
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "log-level",
|
||||
Target: &c.flagLogLevel,
|
||||
EnvVar: "BOUNDARY_LOG_LEVEL",
|
||||
EnvVar: "THRESHOLD_LOG_LEVEL",
|
||||
Completion: complete.PredictSet("trace", "debug", "info", "warn", "err"),
|
||||
Usage: "Log verbosity level, mostly as a fallback for events. Supported values (in order of more detail to less) are " +
|
||||
"\"trace\", \"debug\", \"info\", \"warn\", and \"err\".",
|
||||
@@ -274,14 +274,14 @@ func (c *Command) Run(args []string) int {
|
||||
}
|
||||
|
||||
// If mlockall(2) isn't supported, show a warning. We disable this in dev
|
||||
// because it is quite scary to see when first using Boundary. We also disable
|
||||
// because it is quite scary to see when first using Threshold. We also disable
|
||||
// this if the user has explicitly disabled mlock in configuration.
|
||||
if !c.Config.DisableMlock && !mlock.Supported() {
|
||||
c.UI.Warn(base.WrapAtLength(
|
||||
"WARNING! mlock is not supported on this system! An mlockall(2)-like " +
|
||||
"syscall to prevent memory from being swapped to disk is not " +
|
||||
"supported on this system. For better security, only run Boundary on " +
|
||||
"systems where this call is supported. If you are running Boundary" +
|
||||
"supported on this system. For better security, only run Threshold on " +
|
||||
"systems where this call is supported. If you are running Threshold" +
|
||||
"in a Docker container, provide the IPC_LOCK cap to the container."))
|
||||
}
|
||||
|
||||
@@ -725,10 +725,10 @@ func (c *Command) WaitForInterrupt() int {
|
||||
}
|
||||
|
||||
if c.Config.Worker != nil {
|
||||
c.UI.Output("==> Boundary server graceful shutdown triggered, interrupt again to enter shutdown")
|
||||
c.UI.Output("==> Threshold server graceful shutdown triggered, interrupt again to enter shutdown")
|
||||
workerGracefulShutdownFunc()
|
||||
} else {
|
||||
c.UI.Output("==> Boundary server shutdown triggered, interrupt again to force")
|
||||
c.UI.Output("==> Threshold server shutdown triggered, interrupt again to force")
|
||||
}
|
||||
|
||||
if c.Config.Controller != nil {
|
||||
@@ -761,7 +761,7 @@ func (c *Command) WaitForInterrupt() int {
|
||||
for !shutdownCompleted.Load() {
|
||||
select {
|
||||
case <-c.ServerSideShutdownCh:
|
||||
c.UI.Output("==> Boundary server self-terminating")
|
||||
c.UI.Output("==> Threshold server self-terminating")
|
||||
shutdownTriggerCount++
|
||||
runShutdownLogic()
|
||||
|
||||
@@ -770,7 +770,7 @@ func (c *Command) WaitForInterrupt() int {
|
||||
runShutdownLogic()
|
||||
|
||||
case <-c.SighupCh:
|
||||
c.UI.Output("==> Boundary server reload triggered")
|
||||
c.UI.Output("==> Threshold server reload triggered")
|
||||
|
||||
// Check for new log level
|
||||
var level hclog.Level
|
||||
@@ -1032,20 +1032,20 @@ func verifyDatabaseState(ctx context.Context, db *db.DB, schemaManager *schema.M
|
||||
}
|
||||
if !s.Initialized {
|
||||
return fmt.Errorf("The database has not been initialized. Please ensure your database user " +
|
||||
"has access to all Boundary tables, or run 'boundary database init' if you haven't initialized " +
|
||||
"your database for Boundary.")
|
||||
"has access to all Threshold tables, or run 'threshold database init' if you haven't initialized " +
|
||||
"your database for Threshold.")
|
||||
}
|
||||
if !s.MigrationsApplied() {
|
||||
for _, e := range s.Editions {
|
||||
if e.DatabaseSchemaState == schema.Ahead {
|
||||
return fmt.Errorf("Newer schema version (%s %d) "+
|
||||
"than this binary expects. Please use a newer version of the boundary "+
|
||||
"than this binary expects. Please use a newer version of the threshold "+
|
||||
"binary.", e.Name, e.DatabaseSchemaVersion)
|
||||
}
|
||||
}
|
||||
return fmt.Errorf("Database schema must be updated to use this version. " +
|
||||
"Run 'boundary database migrate' to update the database. " +
|
||||
"NOTE: Boundary does not currently support live migration; " +
|
||||
"Run 'threshold database migrate' to update the database. " +
|
||||
"NOTE: Threshold does not currently support live migration; " +
|
||||
"Ensure all controllers are shut down before running the migration command.")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user