opt-out of certain notifications
Bug #1519210 reported by
Steve Martinelli
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Wishlist
|
Fernando Diaz |
Bug Description
keystone currently support a lot of event notifications, just see http://
It would be nice if there was a configuration option to allow users to opt-out of notifications they didn't care about.
This could be as simple as:
[notifications]
listen_group_create = True
listen_group_delete = True
listen_group_update = True
...
listen_
Or something more advanced.
Either way, each would have to be set to True by default.
Changed in keystone: | |
importance: | Undecided → Wishlist |
summary: |
- opt-out of notifications + opt-out of certain notifications |
Changed in keystone: | |
milestone: | none → mitaka-3 |
Changed in keystone: | |
assignee: | Fernando Diaz (diazjf) → Steve Martinelli (stevemar) |
Changed in keystone: | |
assignee: | Steve Martinelli (stevemar) → Fernando Diaz (diazjf) |
To post a comment you must log in.
Hey Steve, how does something like this look:
notifications.py ------- ------- ---
-------
Add:
enabled_events = {}
which will read from the conf and eventually generate something like:
enabled_events = { type": {'user', 'group'},
"resource_
"operation": {ACTIONS.created}
}
and in: cadf_payload( operation, resource_type, resource_id,
outcome, initiator):
def _create_
we add: events. get("resource_ type") and \
operation in enabled_ events. get("operation" ):
if resource_type in enabled_
to the top of the function.