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

VaultsSecretsRemove incorrectly reorders directories to be removed #837

Open
aryanjassal opened this issue Oct 28, 2024 · 1 comment · May be fixed by #847
Open

VaultsSecretsRemove incorrectly reorders directories to be removed #837

aryanjassal opened this issue Oct 28, 2024 · 1 comment · May be fixed by #847
Assignees
Labels
bug Something isn't working

Comments

@aryanjassal
Copy link
Contributor

Describe the bug

In the handler, VaultsSecretsRemove performs grouping, which would result in the order of files being changed. This is done to ensure all files from a single vault is removed in one vault commit, but doesn't align with how Unix rm works.

Instead, we want to preserve the order of the files while removing them in a single commit. This is blocked by Polykey#821.

To Reproduce

  1. Call VaultsSecretsRemove with directory paths and mixed vault names
  2. VaultsSecretsRemove groups them by vault, changing the order

Expected behavior

The order should be preserved, still ensuring the operation finishes in one commit.

Screenshots

Platform

  • Device: Dell Precision 3480
  • OS: NixOS 24.05
  • Version 0.12.0

Additional context

Notify maintainers

@aryanjassal

@aryanjassal aryanjassal added the bug Something isn't working label Oct 28, 2024
@aryanjassal aryanjassal self-assigned this Oct 28, 2024
Copy link

linear bot commented Oct 28, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant