Skip to content

Attempt to modify a remote vault throws an error instead of creating a clone #365

Description

@aryanjassal

Describe the bug

Polykey's design disallows modification of remote vaults. The intended usage in this case is to clone the vault, then modify it with the relevant secrets. This way, both vaults will maintain their separate histories and not interfere with each other. However, this is not the current behaviour. If the vault is a remote vault, then any modification operation will throw an error and exit the command instead of creating a clone.

To Reproduce

  1. Create a vault on N1
  2. Pull the vault on N2
  3. Attempt to modify the vault contents on N2
  4. Observe error

Expected behavior

The vault should create a clone of itself and perform the changes in the cloned vault instead.

Additional context

Notify maintainers

@aryanjassal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions