Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow vault efs resource acquisition to operate on multiple vaults in parallel #847

Draft
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

aryanjassal
Copy link
Contributor

@aryanjassal aryanjassal commented Nov 25, 2024

Description

For handlers like VaultsSecretsCopy and VaultsSecretsMove, we need to acquire a transaction across multiple vaults. This allows for all the given operations to be completed in a single transaction, avoiding polluting the commit space.

This PR creates such pattern, to acquire the resources from a vault dynamically in a way which works across multiple vaults at the same time.

Issues Fixed

Tasks

  • 1. Add VaultInternal.acquireRead
  • 2. Add VaultInternal.acquireWrite
  • 3. Add tests
  • 4. Update VaultsSecretsRemove to use this instead of grouping paths by vault name.

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@aryanjassal aryanjassal self-assigned this Nov 25, 2024
Copy link

linear bot commented Nov 25, 2024

Copy link

linear bot commented Nov 25, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant