Bug: Double-encryption of dotenv files when re-encrypting an already encrypted file
Bug: Double-encryption of dotenv files when re-encrypting an already encrypted file: a task in LegoFlow-SWE (Harbor dataset). When sops -i -e (in‑place encryption) is run on a dotenv file that is already encrypted, SOPS fails to detect that the file contains encryption metadata. Instead of…
The task
When `sops -i -e` (in‑place encryption) is run on a dotenv file that is already encrypted, SOPS fails to detect that the file contains encryption metadata. Instead of aborting with an “already encrypted” error, it proceeds to encrypt the encrypted content again. The resulting file is corrupted, and any subsequent…
Part of Lego-X/LegoFlow-SWE.