|
36 | 36 | import org.apache.cloudstack.gpu.GpuDevice; |
37 | 37 | import org.apache.cloudstack.gpu.VgpuProfile; |
38 | 38 | import org.apache.cloudstack.ha.HAConfig; |
| 39 | +import org.apache.cloudstack.kms.HSMProfile; |
| 40 | +import org.apache.cloudstack.kms.KMSKey; |
39 | 41 | import org.apache.cloudstack.network.BgpPeer; |
40 | 42 | import org.apache.cloudstack.network.Ipv4GuestSubnetNetworkMap; |
41 | 43 | import org.apache.cloudstack.quota.QuotaTariff; |
@@ -272,6 +274,20 @@ public class EventTypes { |
272 | 274 | public static final String EVENT_CA_CERTIFICATE_REVOKE = "CA.CERTIFICATE.REVOKE"; |
273 | 275 | public static final String EVENT_CA_CERTIFICATE_PROVISION = "CA.CERTIFICATE.PROVISION"; |
274 | 276 |
|
| 277 | + // KMS (Key Management Service) events |
| 278 | + public static final String EVENT_KMS_KEY_WRAP = "KMS.KEY.WRAP"; |
| 279 | + public static final String EVENT_KMS_KEY_UNWRAP = "KMS.KEY.UNWRAP"; |
| 280 | + public static final String EVENT_KMS_KEY_CREATE = "KMS.KEY.CREATE"; |
| 281 | + public static final String EVENT_KMS_KEY_UPDATE = "KMS.KEY.UPDATE"; |
| 282 | + public static final String EVENT_KMS_KEY_ROTATE = "KMS.KEY.ROTATE"; |
| 283 | + public static final String EVENT_KMS_KEY_DELETE = "KMS.KEY.DELETE"; |
| 284 | + public static final String EVENT_VOLUME_MIGRATE_TO_KMS = "VOLUME.MIGRATE.TO.KMS"; |
| 285 | + |
| 286 | + // HSM Profile events |
| 287 | + public static final String EVENT_HSM_PROFILE_CREATE = "HSM.PROFILE.CREATE"; |
| 288 | + public static final String EVENT_HSM_PROFILE_UPDATE = "HSM.PROFILE.UPDATE"; |
| 289 | + public static final String EVENT_HSM_PROFILE_DELETE = "HSM.PROFILE.DELETE"; |
| 290 | + |
275 | 291 | // Account events |
276 | 292 | public static final String EVENT_ACCOUNT_ENABLE = "ACCOUNT.ENABLE"; |
277 | 293 | public static final String EVENT_ACCOUNT_DISABLE = "ACCOUNT.DISABLE"; |
@@ -1020,6 +1036,20 @@ public class EventTypes { |
1020 | 1036 | entityEventDetails.put(EVENT_VOLUME_RECOVER, Volume.class); |
1021 | 1037 | entityEventDetails.put(EVENT_VOLUME_CHANGE_DISK_OFFERING, Volume.class); |
1022 | 1038 |
|
| 1039 | + // KMS Key Events |
| 1040 | + entityEventDetails.put(EVENT_KMS_KEY_CREATE, KMSKey.class); |
| 1041 | + entityEventDetails.put(EVENT_KMS_KEY_UPDATE, KMSKey.class); |
| 1042 | + entityEventDetails.put(EVENT_KMS_KEY_UNWRAP, KMSKey.class); |
| 1043 | + entityEventDetails.put(EVENT_KMS_KEY_WRAP, KMSKey.class); |
| 1044 | + entityEventDetails.put(EVENT_KMS_KEY_DELETE, KMSKey.class); |
| 1045 | + entityEventDetails.put(EVENT_KMS_KEY_ROTATE, KMSKey.class); |
| 1046 | + entityEventDetails.put(EVENT_VOLUME_MIGRATE_TO_KMS, KMSKey.class); |
| 1047 | + |
| 1048 | + // HSM Profile Events |
| 1049 | + entityEventDetails.put(EVENT_HSM_PROFILE_CREATE, HSMProfile.class); |
| 1050 | + entityEventDetails.put(EVENT_HSM_PROFILE_UPDATE, HSMProfile.class); |
| 1051 | + entityEventDetails.put(EVENT_HSM_PROFILE_DELETE, HSMProfile.class); |
| 1052 | + |
1023 | 1053 | // Domains |
1024 | 1054 | entityEventDetails.put(EVENT_DOMAIN_CREATE, Domain.class); |
1025 | 1055 | entityEventDetails.put(EVENT_DOMAIN_DELETE, Domain.class); |
|
0 commit comments