diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-22 02:43:21 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-22 02:43:21 +0700 |
| commit | f720644d0baaaf91e41b2e0374437d5d1e70dd9a (patch) | |
| tree | 2edf2364800cba565e0c71f1d44a709ae3fbc75d /testdata | |
| parent | 0d0217abcd91f9c597eaf44cb639191e42290b5d (diff) | |
| download | awwan-f720644d0baaaf91e41b2e0374437d5d1e70dd9a.tar.xz | |
all: implement reading encrypted awwan environment ".awwan.env.vault"
Upon executing "local" or "play" comman, awwan now read the encrypted
environment file .awwan.env.vault.
The encrypted environment file is generated using "awwan encrypt" command.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/encrypt/.awwan.env.plain | 2 | ||||
| -rw-r--r-- | testdata/encrypt/.awwan.env.vault | bin | 0 -> 384 bytes | |||
| l--------- | testdata/encrypt/.awwan.key | 1 | ||||
| -rw-r--r-- | testdata/encrypt/.ssh/empty | 0 | ||||
| -rw-r--r-- | testdata/encrypt/local.aww | 1 | ||||
| -rw-r--r-- | testdata/encrypt/sub/.awwan.env.plain | 2 | ||||
| -rw-r--r-- | testdata/encrypt/sub/.awwan.env.vault | bin | 0 -> 384 bytes | |||
| -rw-r--r-- | testdata/encrypt/sub/local.aww | 1 | ||||
| -rw-r--r-- | testdata/encrypt/test.data | 9 |
9 files changed, 16 insertions, 0 deletions
diff --git a/testdata/encrypt/.awwan.env.plain b/testdata/encrypt/.awwan.env.plain new file mode 100644 index 0000000..26ed285 --- /dev/null +++ b/testdata/encrypt/.awwan.env.plain @@ -0,0 +1,2 @@ +[secret] +pass = this_is_a_secret diff --git a/testdata/encrypt/.awwan.env.vault b/testdata/encrypt/.awwan.env.vault Binary files differnew file mode 100644 index 0000000..a4e4bdd --- /dev/null +++ b/testdata/encrypt/.awwan.env.vault diff --git a/testdata/encrypt/.awwan.key b/testdata/encrypt/.awwan.key new file mode 120000 index 0000000..aa99eff --- /dev/null +++ b/testdata/encrypt/.awwan.key @@ -0,0 +1 @@ +../encrypt-with-passphrase/.awwan.key
\ No newline at end of file diff --git a/testdata/encrypt/.ssh/empty b/testdata/encrypt/.ssh/empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/testdata/encrypt/.ssh/empty diff --git a/testdata/encrypt/local.aww b/testdata/encrypt/local.aww new file mode 100644 index 0000000..d9127db --- /dev/null +++ b/testdata/encrypt/local.aww @@ -0,0 +1 @@ +echo {{.Val "secret::pass"}} diff --git a/testdata/encrypt/sub/.awwan.env.plain b/testdata/encrypt/sub/.awwan.env.plain new file mode 100644 index 0000000..02b2ae0 --- /dev/null +++ b/testdata/encrypt/sub/.awwan.env.plain @@ -0,0 +1,2 @@ +[secret] +pass = this_is_a_secret_in_sub diff --git a/testdata/encrypt/sub/.awwan.env.vault b/testdata/encrypt/sub/.awwan.env.vault Binary files differnew file mode 100644 index 0000000..21aa5b1 --- /dev/null +++ b/testdata/encrypt/sub/.awwan.env.vault diff --git a/testdata/encrypt/sub/local.aww b/testdata/encrypt/sub/local.aww new file mode 100644 index 0000000..d9127db --- /dev/null +++ b/testdata/encrypt/sub/local.aww @@ -0,0 +1 @@ +echo {{.Val "secret::pass"}} diff --git a/testdata/encrypt/test.data b/testdata/encrypt/test.data new file mode 100644 index 0000000..9ecdb9f --- /dev/null +++ b/testdata/encrypt/test.data @@ -0,0 +1,9 @@ +<<< local.aww:1 + +--> local: 1: echo this_is_a_secret +this_is_a_secret + +<<< sub/local.aww:1 + +--> local: 1: echo this_is_a_secret_in_sub +this_is_a_secret_in_sub |
