You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added support for nested parameters
* Update README.md
Changed the description to reflect the changes.
* fixed test
Co-authored-by: Mikhail Merkulov <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,32 @@ Alternatively, you can configure Vault connection using next environmnt variable
47
47
## Preparing secrets in Vault
48
48
49
49
You need to store your secrets with special naming rules.
50
-
First of all, all secrets should use KV2 storage and have prefix `data/{app_alias}/`.
51
-
For example, if your app has alias `sampleapp` and you want to have configuration option `ConnectionString` your secret path would be `data/sampleapp/ConnectionString`.
50
+
First of all, all secrets should use KV2 storage and have prefix `{app_alias}/{env}`.
51
+
For example, if your app has alias `sampleapp` and environment `producton` and you want to have configuration option `ConnectionString` your secret path would be `sampleapp/producton`.
52
52
53
-
All secret data should use JSON format with the only key `value` and secret data inside:
53
+
All parameters are grouped and arranged in folders and can be managed within the group. All secret data should use JSON format with secret data inside:
54
54
```json
55
55
{
56
-
"value": "secret value"
56
+
"ConnectionString": "secret value",
57
+
"Option1": "secret value 2",
58
+
}
59
+
```
60
+
### Nested secrets
61
+
62
+
There are two ways to create nested parameters.
63
+
1. Description of nesting directly in Json format.:
64
+
```json
65
+
{
66
+
"DB":
67
+
{
68
+
"ConnectionString": "secret value"
69
+
}
70
+
}
71
+
```
72
+
2. Creating a parameter on the desired path "sampleapp/producton/DB":
0 commit comments