events: Enable by default, disable flag (#22815)

The flag `events.alpha1` will no longer do anything, but we keep it
to prevent breaking users who have it in their configurations or
startup flags, or if it is referenced in other code.
This commit is contained in:
Christopher Swenson
2023-09-07 11:27:14 -07:00
committed by GitHub
parent 9af1c4a183
commit 7f7907d3a0
10 changed files with 58 additions and 58 deletions

View File

@@ -1176,6 +1176,12 @@ func (c *ServerCommand) Run(args []string) int {
return 1
}
for _, experiment := range config.Experiments {
if experiments.IsUnused(experiment) {
c.UI.Warn(fmt.Sprintf("WARNING! Experiment %s is no longer used", experiment))
}
}
// If mlockall(2) isn't supported, show a warning. We disable this in dev
// because it is quite scary to see when first using Vault. We also disable
// this if the user has explicitly disabled mlock in configuration.