Browse Source

Add an option to enable notifications in keystone

By this option (disabled by default), user can enable notifications in keystone
and configure their format (basic or CADF: Cloud Auditing Data Federation
standard).

Change-Id: I8dd5c2a24851d71db18399a709794d6c514e02b6
changes/40/420740/2
Marek Zawadzki 2 years ago
parent
commit
b816b9d22e
2 changed files with 15 additions and 0 deletions
  1. 5
    0
      service/files/defaults.yaml
  2. 10
    0
      service/files/keystone.conf.j2

+ 5
- 0
service/files/defaults.yaml View File

@@ -21,6 +21,11 @@ configs:
21 21
     fernet_key: "ZAabsQIXsSW7Ez52UZRqUXDz87y9+R+mbxVZ38gRmjg="
22 22
     credential_key: "2jjLrgOLvI-wj7g-8058SSCw0-ZnL4Ghg5cLuBirxL8="
23 23
 
24
+    notifications:
25
+      enable: false
26
+      # format can be basic or cadf:
27
+      format: cadf
28
+
24 29
   openstack:
25 30
     user_password: password
26 31
     user_name: admin

+ 10
- 0
service/files/keystone.conf.j2 View File

@@ -3,6 +3,9 @@ debug = {{ keystone.debug }}
3 3
 use_syslog = False
4 4
 use_stderr = True
5 5
 max_token_size = 255
6
+{% if keystone.notifications.enable %}
7
+notification_format = {{ keystone.notifications.format }}
8
+{% endif %}
6 9
 
7 10
 [database]
8 11
 connection = mysql+pymysql://{{ keystone.db.username }}:{{ keystone.db.password }}@{{ address(service.database) }}/{{ keystone.db.name }}
@@ -22,3 +25,10 @@ provider = fernet
22 25
 
23 26
 [assignment]
24 27
 driver = sql
28
+
29
+{% if keystone.notifications.enable %}
30
+{# This section should be updated after https://review.openstack.org/#/c/419995/ is merged #}
31
+[oslo_messaging_notifications]
32
+driver = messagingv2
33
+transport_url = rabbit://{{ rabbitmq.user }}:{{ rabbitmq.password }}@{{ address('rabbitmq', rabbitmq.port) }}
34
+{% endif %}

Loading…
Cancel
Save