Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"test.user_1": "password A",
|
||||
"test.user 2": "password-B",
|
||||
"test.user@company.com": "my$3cR3T",
|
||||
"test.user %with% $trAng€ characters": ""
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"user_1": "3y1Za18sLLNIIHw1fv2Olg==",
|
||||
"user 2": "aedMZXaLR246OHHjVtJKXQ==",
|
||||
"user@company.com": "rcFobNmuaaboSPZY5nKjzQ==",
|
||||
"user %with% $trAng\u20ac characters": "1HxPInsJomaWAE19VBisyw=="
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
[[secretstores.http]]
|
||||
id = "test"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
|
||||
cipher = "AES256/CBC/PKCS#5"
|
||||
|
||||
[secretstores.http.aes]
|
||||
init_vector = "61737570657273656372657469763432"
|
||||
kdf_algorithm = "PBKDF2-HMAC-SHA256"
|
||||
password = "a secret key"
|
||||
salt = "somerandombytes"
|
||||
iterations = 2000
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"test.user_1": "password A",
|
||||
"test.user 2": "password-B",
|
||||
"test.user@company.com": "my$3cR3T",
|
||||
"test.user %with% $trAng€ characters": ""
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"user_1": "3y1Za18sLLNIIHw1fv2Olg==",
|
||||
"user 2": "aedMZXaLR246OHHjVtJKXQ==",
|
||||
"user@company.com": "rcFobNmuaaboSPZY5nKjzQ==",
|
||||
"user %with% $trAng\u20ac characters": "1HxPInsJomaWAE19VBisyw=="
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
[[secretstores.http]]
|
||||
id = "test"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
|
||||
cipher = "AES256/CBC/PKCS#5"
|
||||
|
||||
[secretstores.http.aes]
|
||||
key = "63238c069e3c5d6aaa20048c43ce4ed0a910eef95f22f55bacdddacafa06b656"
|
||||
init_vector = "61737570657273656372657469763432"
|
10
plugins/secretstores/http/testcases/mixed/expected.json
Normal file
10
plugins/secretstores/http/testcases/mixed/expected.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"user.user_a": "user_1",
|
||||
"passwd.password_a": "password A",
|
||||
"user.user_b": "user 2",
|
||||
"passwd.password_b": "password-B",
|
||||
"user.user_c": "user@company.com",
|
||||
"passwd.password_c": "my$3cR3T",
|
||||
"user.user_d": "user %with% $trAng€ characters",
|
||||
"passwd.password_d": ""
|
||||
}
|
30
plugins/secretstores/http/testcases/mixed/secrets.json
Normal file
30
plugins/secretstores/http/testcases/mixed/secrets.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"userName": "user_a",
|
||||
"userValue": "user_1",
|
||||
"secretName": "password_a",
|
||||
"secretValue": "3y1Za18sLLNIIHw1fv2Olg==",
|
||||
"description": "server credentials for A"
|
||||
},
|
||||
{
|
||||
"userName": "user_b",
|
||||
"userValue": "user 2",
|
||||
"secretName": "password_b",
|
||||
"secretValue": "aedMZXaLR246OHHjVtJKXQ==",
|
||||
"description": "server credentials for B"
|
||||
},
|
||||
{
|
||||
"userName": "user_c",
|
||||
"userValue": "user@company.com",
|
||||
"secretName": "password_c",
|
||||
"secretValue": "rcFobNmuaaboSPZY5nKjzQ==",
|
||||
"description": "server credentials for C"
|
||||
},
|
||||
{
|
||||
"userName": "user_d",
|
||||
"userValue": "user %with% $trAng€ characters",
|
||||
"secretName": "password_d",
|
||||
"secretValue": "1HxPInsJomaWAE19VBisyw==",
|
||||
"description": "server credentials for D"
|
||||
}
|
||||
]
|
15
plugins/secretstores/http/testcases/mixed/telegraf.conf
Normal file
15
plugins/secretstores/http/testcases/mixed/telegraf.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
[[secretstores.http]]
|
||||
id = "user"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
transformation = '{userName: userValue}'
|
||||
|
||||
[[secretstores.http]]
|
||||
id = "passwd"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
transformation = '{secretName: secretValue}'
|
||||
|
||||
cipher = "AES256/CBC/PKCS#5"
|
||||
|
||||
[secretstores.http.aes]
|
||||
key = "63238c069e3c5d6aaa20048c43ce4ed0a910eef95f22f55bacdddacafa06b656"
|
||||
init_vector = "61737570657273656372657469763432"
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"test.user_a": "user_1",
|
||||
"test.password_a": "password A",
|
||||
"test.user_b": "user 2",
|
||||
"test.password_b": "password-B",
|
||||
"test.user_c": "user@company.com",
|
||||
"test.password_c": "my$3cR3T",
|
||||
"test.user_d": "user %with% $trAng€ characters",
|
||||
"test.password_d": ""
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"userName": "user_a",
|
||||
"userValue": "user_1",
|
||||
"secretName": "password_a",
|
||||
"secretValue": "password A",
|
||||
"description": "server credentials for A"
|
||||
},
|
||||
{
|
||||
"userName": "user_b",
|
||||
"userValue": "user 2",
|
||||
"secretName": "password_b",
|
||||
"secretValue": "password-B",
|
||||
"description": "server credentials for B"
|
||||
},
|
||||
{
|
||||
"userName": "user_c",
|
||||
"userValue": "user@company.com",
|
||||
"secretName": "password_c",
|
||||
"secretValue": "my$3cR3T",
|
||||
"description": "server credentials for C"
|
||||
},
|
||||
{
|
||||
"userName": "user_d",
|
||||
"userValue": "user %with% $trAng€ characters",
|
||||
"secretName": "password_d",
|
||||
"secretValue": "",
|
||||
"description": "server credentials for D"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
[[secretstores.http]]
|
||||
id = "test"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
transformation = '{userName: userValue, secretName: secretValue}'
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"test.user_1": "password A",
|
||||
"test.user 2": "password-B",
|
||||
"test.user@company.com": "my$3cR3T",
|
||||
"test.user %with% $trAng€ characters": ""
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"user": "user_1",
|
||||
"secret": "password A"
|
||||
},
|
||||
{
|
||||
"user": "user 2",
|
||||
"secret": "password-B"
|
||||
},
|
||||
{
|
||||
"user": "user@company.com",
|
||||
"secret": "my$3cR3T"
|
||||
},
|
||||
{
|
||||
"user": "user %with% $trAng€ characters",
|
||||
"secret": ""
|
||||
}
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
[[secretstores.http]]
|
||||
id = "test"
|
||||
url = "http://127.0.0.1/secrets"
|
||||
transformation = '{user: secret}'
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"test.user_1": "password A",
|
||||
"test.user 2": "password-B",
|
||||
"test.user@company.com": "my$3cR3T",
|
||||
"test.user %with% $trAng€ characters": ""
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"user_1": "password A",
|
||||
"user 2": "password-B",
|
||||
"user@company.com": "my$3cR3T",
|
||||
"user %with% $trAng€ characters": ""
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
[[secretstores.http]]
|
||||
id = "test"
|
||||
url = "http://127.0.0.1/secrets"
|
Loading…
Add table
Add a link
Reference in a new issue