summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2018-06-01 00:39:17 -0500
committerAndrew Geissler <geissonator@yahoo.com>2018-07-18 19:55:19 +0000
commit1f988d51c1fc76768fd6447ad237c273609b06a3 (patch)
treeaa7e7e5b8e19694848f1e22b7029c1c648ea95ff /meta-openbmc-machines
parentb04fcb28684a7657d4f393091972a55841515c72 (diff)
downloadtalos-openbmc-1f988d51c1fc76768fd6447ad237c273609b06a3.tar.gz
talos-openbmc-1f988d51c1fc76768fd6447ad237c273609b06a3.zip
Get whitelisted URLs - openpower json
This commit adds a json file that specifies whitelisted URLs to be allowed access by REST server for openpower layer. Change-Id: I14b1c40db87c7806a86e34b0b7ca12c2bcd20635 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest.bbappend1
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest/url_config.json14
2 files changed, 15 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest.bbappend b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest.bbappend
new file mode 100644
index 000000000..72d991c7e
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest/url_config.json b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest/url_config.json
new file mode 100644
index 000000000..9d955f22f
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/interfaces/phosphor-rest/url_config.json
@@ -0,0 +1,14 @@
+{
+ "urls": [
+ "/org/openbmc/*",
+ "/org/open_power/*",
+ "/xyz/openbmc_project/*",
+ "/enumerate",
+ "/list",
+ "/login",
+ "/logout",
+ "/subscribe",
+ "/upload/image",
+ "/download/dump/*"
+ ]
+}
OpenPOWER on IntegriCloud