mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-15 11:07:00 +02:00
* introduce experiment to toggle between legacy auditing backends and eventlogger * provide changelog file
24 lines
658 B
Go
24 lines
658 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package experiments
|
|
|
|
const (
|
|
VaultExperimentEventsAlpha1 = "events.alpha1"
|
|
VaultExperimentCoreAuditEventsAlpha1 = "core.audit.events.alpha1"
|
|
)
|
|
|
|
var validExperiments = []string{
|
|
VaultExperimentEventsAlpha1,
|
|
VaultExperimentCoreAuditEventsAlpha1,
|
|
}
|
|
|
|
// ValidExperiments exposes the list without exposing a mutable global variable.
|
|
// Experiments can only be enabled when starting a server, and will typically
|
|
// enable pre-GA API functionality.
|
|
func ValidExperiments() []string {
|
|
result := make([]string, len(validExperiments))
|
|
copy(result, validExperiments)
|
|
return result
|
|
}
|