Commit cfd4af6 1 parent 4238274 commit cfd4af6 Copy full SHA for cfd4af6
File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -607,6 +607,17 @@ func (c *Core) GetSecretEngineUsageMetrics() map[string]int {
607
607
608
608
for _ , entry := range c .mounts .Entries {
609
609
mountType := entry .Type
610
+
611
+ if mountType == mountTypeNSIdentity {
612
+ mountType = pluginconsts .SecretEngineIdentity
613
+ }
614
+ if mountType == mountTypeNSSystem {
615
+ mountType = pluginconsts .SecretEngineSystem
616
+ }
617
+ if mountType == mountTypeNSCubbyhole {
618
+ mountType = pluginconsts .SecretEngineCubbyhole
619
+ }
620
+
610
621
if _ , ok := mounts [mountType ]; ! ok {
611
622
mounts [mountType ] = 1
612
623
} else {
@@ -625,6 +636,11 @@ func (c *Core) GetAuthMethodUsageMetrics() map[string]int {
625
636
626
637
for _ , entry := range c .auth .Entries {
627
638
authType := entry .Type
639
+
640
+ if authType == mountTypeNSToken {
641
+ authType = pluginconsts .AuthTypeToken
642
+ }
643
+
628
644
if _ , ok := mounts [authType ]; ! ok {
629
645
mounts [authType ] = 1
630
646
} else {
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ const (
75
75
mountTypeSystem = "system"
76
76
mountTypeNSSystem = "ns_system"
77
77
mountTypeIdentity = "identity"
78
+ mountTypeNSIdentity = "ns_identity"
78
79
mountTypeCubbyhole = "cubbyhole"
79
80
mountTypePlugin = "plugin"
80
81
mountTypeKV = "kv"
You can’t perform that action at this time.
0 commit comments