mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
VAULT-34593 CE changes (#29889)
* VAULT-34593 CE changes * Move nsidentity to mount
This commit is contained in:
parent
4238274692
commit
cfd4af68a8
@ -607,6 +607,17 @@ func (c *Core) GetSecretEngineUsageMetrics() map[string]int {
|
||||
|
||||
for _, entry := range c.mounts.Entries {
|
||||
mountType := entry.Type
|
||||
|
||||
if mountType == mountTypeNSIdentity {
|
||||
mountType = pluginconsts.SecretEngineIdentity
|
||||
}
|
||||
if mountType == mountTypeNSSystem {
|
||||
mountType = pluginconsts.SecretEngineSystem
|
||||
}
|
||||
if mountType == mountTypeNSCubbyhole {
|
||||
mountType = pluginconsts.SecretEngineCubbyhole
|
||||
}
|
||||
|
||||
if _, ok := mounts[mountType]; !ok {
|
||||
mounts[mountType] = 1
|
||||
} else {
|
||||
@ -625,6 +636,11 @@ func (c *Core) GetAuthMethodUsageMetrics() map[string]int {
|
||||
|
||||
for _, entry := range c.auth.Entries {
|
||||
authType := entry.Type
|
||||
|
||||
if authType == mountTypeNSToken {
|
||||
authType = pluginconsts.AuthTypeToken
|
||||
}
|
||||
|
||||
if _, ok := mounts[authType]; !ok {
|
||||
mounts[authType] = 1
|
||||
} else {
|
||||
|
||||
@ -75,6 +75,7 @@ const (
|
||||
mountTypeSystem = "system"
|
||||
mountTypeNSSystem = "ns_system"
|
||||
mountTypeIdentity = "identity"
|
||||
mountTypeNSIdentity = "ns_identity"
|
||||
mountTypeCubbyhole = "cubbyhole"
|
||||
mountTypePlugin = "plugin"
|
||||
mountTypeKV = "kv"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user