diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-16 18:28:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-16 18:28:59 +0700 |
| commit | cf8caf8844b51d71e39f5b454fc7c79a9bec3227 (patch) | |
| tree | 07c59becb58fa485c598b3067ffd4f26f8b2cf73 /testdata/local | |
| parent | 17a19677b325ce9911570db0988cd18ee996f46a (diff) | |
| download | awwan-cf8caf8844b51d71e39f5b454fc7c79a9bec3227.tar.xz | |
all: make the magic line "#put:" use explicit source for encrypted file
Previously, the magic line "#put" detect whether the source file is
encrypted or not automatically, so we did not need to put ".vault"
suffix in the source path.
This changes make it to be always explicit.
If we want to copy encrypted file than the source file must be the path
to encrypted file.
Implements: https://todo.sr.ht/~shulhan/awwan/7
Diffstat (limited to 'testdata/local')
| -rw-r--r-- | testdata/local/put.aww | 2 | ||||
| -rw-r--r-- | testdata/local/put.data | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testdata/local/put.aww b/testdata/local/put.aww index c67f9c3..c076bd7 100644 --- a/testdata/local/put.aww +++ b/testdata/local/put.aww @@ -2,7 +2,7 @@ #put: {{.ScriptDir}}/missing_val_encrypted.txt {{.ScriptDir}}/tmp/missing_val_encrypted.txt -#put: {{.ScriptDir}}/encrypted.txt {{.ScriptDir}}/tmp/decrypted.txt +#put: {{.ScriptDir}}/encrypted.txt.vault {{.ScriptDir}}/tmp/decrypted.txt #put! {{.ScriptDir}}/plain.txt /etc/plain.txt sudo chmod 0644 /etc/plain.txt diff --git a/testdata/local/put.data b/testdata/local/put.data index b548ea1..e457391 100644 --- a/testdata/local/put.data +++ b/testdata/local/put.data @@ -10,7 +10,7 @@ The host name is encrypt. The secret password is this_is_a_secret. <<< encrypted_empty_passphrase.stderr -Local: Copy: loadFileInput "encrypted.txt.vault": private key is missing or not loaded +Local: Copy: generateFileInput "encrypted.txt.vault": private key is missing or not loaded <<< encrypted_invalid_passphrase Local: NewSession: .awwan.env.vault: LoadPrivateKeyInteractive: x509: decryption password incorrect |
