mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-16 16:21:11 +01:00
The main point of this work is to move runFilteredPathsEvaluation inside mountInternal/enableCredentialInternal, while we hold the lock. This requires that we grab both the mountsLock and authLock, for reasons that only make sense when looking at the ent code. While fixing this I noticed that ListAuths grabs the wrong lock, so I also fixed that. And I modified ClusterSetup: as a convenience, it now populates the factories for all the builtin engines in the config it returns.