[midPoint-git] [Evolveum/midpoint] cbf2b6: Clean up code for case auditing
mederly
noreply at github.com
Sat Feb 19 18:59:34 CET 2022
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: cbf2b65f15257c2968a95e10edbb05e80c89c25f
https://github.com/Evolveum/midpoint/commit/cbf2b65f15257c2968a95e10edbb05e80c89c25f
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2022-02-19 (Sat, 19 Feb 2022)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/cases/ApprovalContextUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-workflows-3.xsd
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/handler/AuditedAccessDeniedHandler.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/handler/AuditedLogoutHandler.java
M model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/AuditingConstants.java
M model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/CaseManager.java
A model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/extensions/AuditingExtension.java
M model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/extensions/EngineExtension.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/CaseManagerImpl.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/TimedActionTriggerHandler.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/CaseBeans.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/CaseEngineImpl.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/CaseEngineOperationImpl.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/DefaultEngineExtension.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/DefaultStageClosingResult.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/DefaultStageOpeningResult.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/DefaultWorkItemCompletionResult.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/Action.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/CompleteWorkItemsAction.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/DelegateWorkItemsAction.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenCaseAction.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenStageAction.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/events/PendingAuditRecords.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/events/PendingNotificationEvents.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/events/package-info.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/extension/DefaultAuditingExtension.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/extension/DefaultEngineExtension.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/extension/DefaultStageClosingResult.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/extension/DefaultStageOpeningResult.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/extension/DefaultWorkItemCompletionResult.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/helpers/CaseAuditHelper.java
R model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/helpers/CaseNotificationHelper.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/helpers/CaseMiscHelper.java
A model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/helpers/NotificationHelper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ClockworkAuditHelper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/security/SecurityHelper.java
M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/WorkflowListenerImpl.java
M model/rest-impl/src/main/java/com/evolveum/midpoint/rest/impl/AbstractRestController.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/ApprovalsAuditingExtension.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/ApprovalsCaseEngineExtension.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/execution/ExecutionHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/ChangeProcessor.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/PrimaryChangeProcessor.java
M repo/audit-api/src/main/java/com/evolveum/midpoint/audit/api/AuditEventRecord.java
M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/AuditSearchTest.java
M repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/AuditSearchTest.java
M repo/system-init/src/main/java/com/evolveum/midpoint/init/AuditServiceProxy.java
Log Message:
-----------
Clean up code for case auditing
1) AuditingExtension has been separated from EngineExtension
2) Whole processing of pending audit records and notification events
is now contained in their own classes (PendingAuditRecords and
PendingNotificationEvents).
Unrelated changes:
- Removed useless prismContext parameters from AuditEventRecord methods.
Commit: 414960cc9846d72166c6818cf56fa0020cb661f9
https://github.com/Evolveum/midpoint/commit/414960cc9846d72166c6818cf56fa0020cb661f9
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2022-02-19 (Sat, 19 Feb 2022)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/DefaultGuiConfigurationCompiler.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/result/MessagePanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/AbstractPageObjectDetails.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/assignmentholder/AssignmentHolderDetailsModel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/PageSystemConfiguration.html
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/PageSystemConfiguration.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AccessCertificationContentPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AccessCertificationContentPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AdditionalMenuLinkContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AppenderDetailsPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AppendersContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/AppendersMenuLinkCounter.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/ClassLoggersContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/DeploymentContentPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/DeploymentContentPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/LoggingContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/NotificationContentPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/NotificationContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/RelationDetailsPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/RelationsContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/RoleManagementContentPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/RoleManagementContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/SingleContainerContentPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/SingleContainerContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/SubSystemLoggerDetailsPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/SubSystemLoggersContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/SubSystemLoggersMenuLinkCounter.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/component/UserDashboardLinkContentPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageAccessCertification.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageAdminGui.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageBaseSystemConfiguration.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageLogging.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageProfiling.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageRoleManagement.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemAdminGui.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemBasic.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemInternals.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemLogging.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemNotification.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemPolicies.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/systemconfiguration/page/PageSystemWorkflow.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/util/GuiImplUtil.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/PanelDisplay.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/PanelInstance.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/PanelType.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageAccessCertification.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageDeploymentInformation.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageFullTextSearch.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageInfrastructure.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageInternalsConfiguration.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageNotificationConfiguration.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageProfiling.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageRoleManagement.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageSystemConfigurationBasic.java
R gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/system/PageWorkflowConfiguration.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/login/PageLogin.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/login/SelfRegistrationDto.java
M gui/admin-gui/src/test/java/com/evolveum/midpoint/gui/TestPageSystemConfiguration.java
M infra/schema/src/main/resources/xml/ns/public/common/common-notifications-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-security-3.xsd
M model/authentication-api/src/main/java/com/evolveum/midpoint/authentication/api/config/MidpointAuthentication.java
M model/authentication-api/src/main/java/com/evolveum/midpoint/authentication/api/util/AuthUtil.java
M model/authentication-impl/pom.xml
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/entry/point/HttpAuthenticationEntryPoint.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/AbstractCredentialModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/AbstractModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/AuthModuleRegistryImpl.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/HttpBasicModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/HttpClusterModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/HttpHeaderModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/HttpSecurityQuestionModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/LdapModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/LoginFormModuleFactoryImpl.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/MailNonceModuleFactory.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/OidcClientModuleFactory.java
R model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/OidcModuleFactory.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/OidcResourceServerModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/OtherModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/Saml2ModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/SecurityQuestionFormModuleFactory.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/filter/HttpAuthenticationFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/filter/HttpBasicAuthenticationFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/filter/HttpClusterAuthenticationFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/filter/HttpSecurityQuestionsAuthenticationFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/filter/MidpointAuthFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/authentication/HttpModuleAuthentication.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/authentication/OidcClientModuleAuthenticationImpl.java
R model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/authentication/OidcModuleAuthenticationImpl.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/authentication/OidcResourceServerModuleAuthentication.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/OidcAdditionalConfiguration.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/OidcClientModuleWebSecurityConfiguration.java
R model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/OidcModuleWebSecurityConfiguration.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/OidcResourceServerModuleWebSecurityConfiguration.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/RemoteModuleWebSecurityConfiguration.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configuration/SamlModuleWebSecurityConfiguration.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configurer/OidcClientModuleWebSecurityConfigurer.java
R model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configurer/OidcModuleWebSecurityConfigurer.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/module/configurer/OidcResourceServerModuleWebSecurityConfigurer.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/oidc/OidcAuthorizationRequestRedirectFilter.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/oidc/OidcBearerTokenAuthenticationFilter.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/oidc/OidcClientLogoutSuccessHandler.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/oidc/OidcLoginConfigurer.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/MidPointAbstractAuthenticationProvider.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/MidPointLdapAuthenticationProvider.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/OidcClientProvider.java
R model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/OidcProvider.java
A model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/OidcResourceServerProvider.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/RemoteModuleProvider.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/provider/Saml2Provider.java
M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/util/AuthSequenceUtil.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/authentication/CompiledGuiProfile.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/authentication/GuiProfileCompilerRegistry.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java
M model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/transports/Transport.java
A model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/CustomMessageTransport.java
R model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/CustomTransport.java
A model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/FileMessageTransport.java
A model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/MailMessageTransport.java
A model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/SmsMessageTransport.java
M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/TransportServiceImpl.java
M model/notifications-impl/src/test/java/com/evolveum/midpoint/notifications/impl/NotificationsTest.java
M pom.xml
M testing/rest/pom.xml
A testing/rest/src/test/java/com/evolveum/midpoint/testing/rest/authentication/TestAbstractOidcRestModule.java
A testing/rest/src/test/java/com/evolveum/midpoint/testing/rest/authentication/TestOidcRestAuthByHMacModule.java
A testing/rest/src/test/java/com/evolveum/midpoint/testing/rest/authentication/TestOidcRestAuthByPublicKeyModule.java
A testing/rest/src/test/resources/authentication/keycloak-hmac.json
A testing/rest/src/test/resources/authentication/keycloak-public-key.json
A testing/rest/src/test/resources/authentication/repo/security-policy-issuer-uri.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-jws-uri-wrong-alg.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-jws-uri.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-public-key-wrong-alg.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-public-key.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-symmetric-key-wrong-alg.xml
A testing/rest/src/test/resources/authentication/repo/security-policy-symmetric-key.xml
Log Message:
-----------
Merge remote-tracking branch 'origin/master'
Compare: https://github.com/Evolveum/midpoint/compare/8c90c8b3c490...414960cc9846
More information about the midPoint-svn
mailing list