aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_bouchon/README.md
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2017-12-13 11:04:09 +0100
committerThomas Duval <thomas.duval@orange.com>2017-12-13 11:04:09 +0100
commitbf495b93579a71dd01460cfeaf750703b239892d (patch)
tree54bcfd520a3ec14c0b7fd480ce8aa6d11841c7b6 /moonv4/moon_bouchon/README.md
parent4fa851471190f968289e04ae0f803b5b63744f6b (diff)
Add moon_bouchon component.
Change-Id: I6b5e88ca9349923c15c252f7f338b790a6714320
Diffstat (limited to 'moonv4/moon_bouchon/README.md')
-rw-r--r--moonv4/moon_bouchon/README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/moonv4/moon_bouchon/README.md b/moonv4/moon_bouchon/README.md
new file mode 100644
index 00000000..11733cef
--- /dev/null
+++ b/moonv4/moon_bouchon/README.md
@@ -0,0 +1,42 @@
+#Moon Bouchon
+
+Moon_bouchon is a fake interface to the Moon platform.
+Moon platform can be requested through 2 interfaces:
+
+- ''wrapper'', interface for the OpenStack platform
+- ''interface'', interface for other components
+
+## Usage:
+
+### server
+
+To start the server:
+
+ docker run -ti -p 31002:31002 wukongsun/moon_bouchon:v1.0
+ # or docker run -dti -p 31002:31002 wukongsun/moon_bouchon:v1.0
+
+### wrapper
+
+Here are the URL, you can request:
+
+ POST /wrapper/authz/grant to request the wrapper component with always a "True" response
+ POST /wrapper/authz/deny to request the wrapper component with always a "False" response
+ POST /wrapper/authz to request the wrapper component with always a "True" or "False" response
+
+In each request you must pass the following data (or similar):
+
+ {'rule': 'start', 'target': '{"target": {"name": "vm0"}, "user_id": "user0"}', 'credentials': 'null'}
+
+You have examples in the moon_bouchon/tests directory.
+
+### interface
+
+Here are the URL, you can request:
+
+ GET /interface/authz/grant/<string:project_id>/<string:subject_name>/<string:object_name>/<string:action_name> to request the interface component with always a "True" response
+ GET /interface/authz/deny/<string:project_id>/<string:subject_name>/<string:object_name>/<string:action_name> to request the interface component with always a "False" response
+ GET /interface/authz/<string:project_id>/<string:subject_name>/<string:object_name>/<string:action_name> to request the interface component with always a "True" or "False" response
+
+You have examples in the moon_bouchon/tests directory.
+
+