sops:tldr:21bc0
This command compares the decrypted content of two YAML files, secret1-enc.yaml and secret2-enc.yaml, using the diff command.
Here's a breakdown of the command:
-
<(sops -d ${path-to-secret1-enc-yaml}): This part decrypts the content of thesecret1-enc.yamlfile using thesopscommand and passes the decrypted content as input to thediffcommand.${path-to-secret1-enc-yaml}is the placeholder for the actual path tosecret1-enc.yaml. Make sure to replace it with the correct file path.
-
<(sops -d ${path-to-secret2-enc-yaml}): This part decrypts the content of thesecret2-enc.yamlfile usingsopscommand and passes the decrypted content as input to thediffcommand.${path-to-secret2-enc-yaml}is the placeholder for the actual path tosecret2-enc.yaml. Replace it with the correct file path.
-
diff <(sops -d ${path-to-secret1-enc-yaml}) <(sops -d ${path-to-secret2-enc-yaml}): Thediffcommand compares the decrypted content of both files, highlighting the differences between them.
Overall, this command helps identify the differences between the decrypted content of two encrypted YAML files.