Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure sparse mode is used on secrets where it is explicit
Sparse mode is marked in xxx_keys item with: > mode: "sparse" but when decrypting secrets, each node is trying to read the sparse format first (xxx_key_[node]) and then fallback to normal xxx_keys. This adds a performance penalty both on reading secrets and during refresh. With this patch, sparse format is checked only when secret is marked as sparse. This makes refresh a fast no-op (it was already a no-op with chef#269 now it is faster) since the only cost is now searching nodes matching search_query. Change-Id: I38f511b9f590240775085a386b387c476d3a1f5c Signed-off-by: Grégoire Seux <[email protected]>
- Loading branch information