file storage backend: Spuriously deletes storage keys ending with .temp #23135
Labels
bug
Used to indicate a potential bug
core/storage
reproduced
This issue has been reproduced by a Vault engineer
I happened to browse the diff of #15946 when it was mentioned in another issue.
I immediately spotted a defect in the code.
It uses ".temp" as a suffix for temporary files without caring whether that temporary file name will accidentally collide with a legitimate other storage entry...
kv/example.temp
was unexpectedly overwritten by writing tokv/example
!!!The text was updated successfully, but these errors were encountered: