sys/internal/counters/activity/monthly
returns mount accessors in a field that should contain mount paths
#18812
Labels
The activity reporting APIs return data mentioning mount paths using this structure:
vault/vault/activity_log.go
Lines 1482 to 1485 in 3ded138
which is populated from this very similar structure:
vault/vault/activity/query.go
Lines 48 to 51 in 92cc175
The
MountPath
field is filled in in various places. In these two, it is actually filled in with mount paths:vault/vault/activity_log.go
Lines 2168 to 2181 in 3ded138
vault/vault/activity_log.go
Lines 2341 to 2361 in 3ded138
but in this code:
vault/vault/activity_log_util_common.go
Lines 208 to 221 in 92cc175
the name given to the local variable would have you believe it is being filled with the mount path, but if you check the map it is being passed, it is actually a map keyed on mount accessor not path. This has the result of mount accessors erroneously showing up in some fields supposed to contain mount paths, when querying the current month's data.
The text was updated successfully, but these errors were encountered: