summaryrefslogtreecommitdiffstats
path: root/sms-service/src/preload/sampleformat.json
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-03 22:11:28 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-04 13:25:58 -0700
commitb3254568d65e53c564a846a666fa6af912c9b474 (patch)
treead374fc666c8628e840141ecd8b9d0e85c9007de /sms-service/src/preload/sampleformat.json
parentc660d1b7dc666e23aed3e90ce6a01cd50172e9bc (diff)
Add preload commandline app to load secrets
Add a preload golang app that reads configuration files and loads the domains and corresponding secrets to SMS. The tool can configured via command line options. P2: Add support for domains as well as domain in JSON P3: Add sampleformat.json Issue-ID: AAF-532 Change-Id: If3f880b8ce61a282dc015cac7df723453b91f114 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/src/preload/sampleformat.json')
-rw-r--r--sms-service/src/preload/sampleformat.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/sms-service/src/preload/sampleformat.json b/sms-service/src/preload/sampleformat.json
new file mode 100644
index 0000000..1a8a9f5
--- /dev/null
+++ b/sms-service/src/preload/sampleformat.json
@@ -0,0 +1,22 @@
+{
+ "domains": [{
+ "name": "mysecretdomain ",
+ "secrets": [
+ {
+ "name": "database-credentials",
+ "values": {
+ "username": "admin",
+ "password": "admin",
+ "ttl": 3600
+ }
+ },
+ {
+ "name": "server-credentials",
+ "values": {
+ "username": "suser",
+ "password": "onap"
+ }
+ }
+ ]
+ }]
+}