Merge "Vault Client Rest API implementation for sensitive data"
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / vault-secrets.json
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/vault-secrets.json b/components/model-catalog/resource-dictionary/starter-dictionary/vault-secrets.json
new file mode 100644 (file)
index 0000000..6b4d6a4
--- /dev/null
@@ -0,0 +1,36 @@
+{\r
+  "tags": "vault-secrets",\r
+  "name": "vault-secrets",\r
+  "property": {\r
+    "description": "Vault secret resolution with dynamic endpoint-selector",\r
+    "type": "map",\r
+    "entry_schema": {\r
+      "type": "string"\r
+    }\r
+  },\r
+  "updated-by": "Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>",\r
+  "sources": {\r
+    "input": {\r
+      "type": "source-input"\r
+    },\r
+    "vault-data": {\r
+      "type": "source-rest",\r
+      "properties": {\r
+        "endpoint-selector": "dynamic-secret-source",\r
+        "verb": "GET",\r
+        "type": "JSON",\r
+        "url-path": "$secret-path",\r
+        "path": "",\r
+        "input-key-mapping": {\r
+          "secret-path": "secret-path"\r
+        },\r
+        "output-key-mapping": {\r
+          "data": "data"\r
+        },\r
+        "key-dependencies": [\r
+          "secret-path"\r
+        ]\r
+      }\r
+    }\r
+  }\r
+}
\ No newline at end of file