diff options
author | WuKong <rebirthmonkey@gmail.com> | 2017-12-23 21:49:35 +0100 |
---|---|---|
committer | WuKong <rebirthmonkey@gmail.com> | 2017-12-23 21:49:58 +0100 |
commit | 1100c66ce03a059ebe7ece9734e799b49b3a5a9e (patch) | |
tree | a057e7e7511f6675a9327b79e6919f07c5f89f07 /moonv4/moon_bouchon/README.md | |
parent | 7a4dfdde6314476ae2a1a1c881ff1e3c430f790e (diff) |
moonv4 cleanup
Change-Id: Icef927f3236d985ac13ff7376f6ce6314b2b39b0
Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/moon_bouchon/README.md')
-rw-r--r-- | moonv4/moon_bouchon/README.md | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/moonv4/moon_bouchon/README.md b/moonv4/moon_bouchon/README.md deleted file mode 100644 index 11733cef..00000000 --- a/moonv4/moon_bouchon/README.md +++ /dev/null @@ -1,42 +0,0 @@ -#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. - - |