fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

cp from v1 to v1 with data field in payload is considered as v2 #114

Open LaSylv opened 7 months ago

LaSylv commented 7 months ago

When I use cp, the fields I'm copying have a data field, meaning the method isValidKV2Data (client/util.go:82) returns true, while it's still KV1 data, so it converts the data

I'll try to do an example test case

fishi0x01 commented 6 months ago

Thank you for reporting this :bow: I will create a test case in the near future

fishi0x01 commented 6 months ago

@LaSylv I opened https://github.com/fishi0x01/vsh/pull/117 with an example test case. However, it succeeds - can you elaborate please on how I can properly reproduce the issue?