Skip to content

Commit

Permalink
Merge pull request #86 from lfu/prevent_retirement_request
Browse files Browse the repository at this point in the history
Add policy checking for the retirement request.
(cherry picked from commit c6c51d4)
  • Loading branch information
gmcculloug authored and simaishi committed Apr 7, 2017
1 parent bfe87c5 commit b795b48
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ object:
fields:
- logical_event:
value: request_orchestration_stack_retire
- rel1:
value: "/System/event_handlers/event_enforce_policy"
- rel2:
value: "/System/event_handlers/check_policy_prevent"
- rel4:
value: "/System/Process/parse_provider_category"
- rel5:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ object:
- logical_event:
value: request_service_retire
- rel1:
value: "/System/event_handlers/event_enforce_policy"
- rel2:
value: "/System/event_handlers/check_policy_prevent"
- rel3:
value: "/Service/Retirement/StateMachines/Methods/GetRetirementEntryPoint"
- rel4:
value: "${/#retirement_entry_point}?service_id=${process#service_id}"
- rel5:
value: "/System/event_handlers/event_enforce_policy"
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ object:
fields:
- logical_event:
value: request_vm_retire
- rel2:
value: "/System/event_handlers/event_enforce_policy"
- rel3:
value: "/System/event_handlers/check_policy_prevent"
- rel4:
value: "/System/Process/parse_provider_category"
- rel5:
value: "/${/#ae_provider_category}/VM/Lifecycle/Retirement?vm_id=${process#vm_id}"
- rel6:
value: "/System/event_handlers/event_enforce_policy"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
object_type: method
version: 1.0
object:
attributes:
name: check_policy_prevent
display_name:
description:
scope: instance
language: ruby
location: builtin
inputs: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
object_type: instance
version: 1.0
object:
attributes:
display_name:
name: check_policy_prevent
inherits:
description:
fields:
- meth1:
value: check_policy_prevent

0 comments on commit b795b48

Please sign in to comment.