Backport of Call runFilteredPathsEvaluation from within mountInternal/enableCredentialInternal into release/1.14.x by hc-github-team-secure-vault-core · Pull Request #21272 · hashicorp/vault

Backport

This PR is auto-generated from #21260 to be assessed for backporting due to the inclusion of the label backport/1.14.x.

The below text is copied from the body of the original PR.


This fixes a bug with backend initialization and path filters. This requires that we hold both the mountsLock and authLock (instead of just one or the other) while calling it, so for simplicity we grab them both at the outset.

While working on 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.


Overview of commits