-
Notifications
You must be signed in to change notification settings - Fork 42
Revise and adjust audit logging #1443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...iapps-controller-core/src/main/java/org/cloudfoundry/multiapps/controller/core/Messages.java
Outdated
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/CsrfTokenApiServiceAuditLog.java
Outdated
Show resolved
Hide resolved
.../main/java/org/cloudfoundry/multiapps/controller/core/auditlogging/model/CustomAuditLog.java
Outdated
Show resolved
Hide resolved
.../main/java/org/cloudfoundry/multiapps/controller/core/auditlogging/model/CustomAuditLog.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/cloudfoundry/multiapps/controller/core/helpers/MtaConfigurationPurger.java
Outdated
Show resolved
Hide resolved
multiapps-controller-web/src/main/java/org/cloudfoundry/multiapps/controller/web/Messages.java
Outdated
Show resolved
Hide resolved
multiapps-controller-web/src/main/java/org/cloudfoundry/multiapps/controller/web/Messages.java
Outdated
Show resolved
Hide resolved
...eb/src/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/FilesApiServiceImpl.java
Outdated
Show resolved
Hide resolved
|
|
||
| private static void failWithStatus(HttpStatus status, String message) { | ||
| LOGGER.warn(message); | ||
| AuditLoggingProvider.getFacade() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't log audit event anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The audit log logic is moved from here but still log
...src/main/java/org/cloudfoundry/multiapps/controller/web/security/UriAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...core/src/main/java/org/cloudfoundry/multiapps/controller/core/auditlogging/AuditLogBean.java
Outdated
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/model/AuditLogConfiguration.java
Outdated
Show resolved
Hide resolved
...dfoundry/multiapps/controller/core/security/data/termination/DataTerminationServiceTest.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/cloudfoundry/multiapps/controller/web/security/UriAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
| spaceClient = clientFactory.createSpaceClient(configuration.getControllerUrl(), oauthClient, Collections.emptyMap()); | ||
| } | ||
|
|
||
| private void auditLogDeletion(T configurationData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment
| protected DataSource dataSource; | ||
|
|
||
| @Bean | ||
| public AuditLoggingFacade buildAuditLoggingFacade() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How AuditLoggingFacade will be initialised as bean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will be initialized in the xsa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay but oss project must be also start and run without xsa part. In this way now it will always fails to initialize other beans due to missing AuditLoggingFacade bean initialization. Think for a way how to initialize this interface in oss and xsa project in the same time and override initialization in xsa project.
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceGuidBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceGuidBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceGuidBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceNameBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceNameBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceNameBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceGuidBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/model/AuditLogConfiguration.java
Outdated
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/model/AuditLogConfiguration.java
Outdated
Show resolved
Hide resolved
...web/src/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/InfoApiServiceImpl.java
Show resolved
Hide resolved
...eb/src/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/FilesApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/CsrfTokenApiServiceImpl.java
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/model/AuditLogConfiguration.java
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/CsrfTokenApiServiceAuditLog.java
Show resolved
Hide resolved
...a/org/cloudfoundry/multiapps/controller/core/auditlogging/impl/AuditLoggingFacadeSLImpl.java
Show resolved
Hide resolved
...in/java/org/cloudfoundry/multiapps/controller/core/auditlogging/FilesApiServiceAuditLog.java
Show resolved
Hide resolved
...ava/org/cloudfoundry/multiapps/controller/core/auditlogging/model/AuditLogConfiguration.java
Outdated
Show resolved
Hide resolved
...core/src/main/java/org/cloudfoundry/multiapps/controller/core/auditlogging/AuditLogBean.java
Show resolved
Hide resolved
multiapps-controller-web/src/main/java/org/cloudfoundry/multiapps/controller/web/Messages.java
Show resolved
Hide resolved
...c/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/OperationsApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceGuidBasedAuthorizationFilter.java
Outdated
Show resolved
Hide resolved
...va/org/cloudfoundry/multiapps/controller/web/security/SpaceNameBasedAuthorizationFilter.java
Show resolved
Hide resolved
| private MtaConfigurationPurgerAuditLog mtaConfigurationPurgerAuditLog; | ||
|
|
||
| @Inject | ||
| public DataTerminationService(MtaConfigurationPurgerAuditLog mtaConfigurationPurgerAuditLog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be possible to convert all field inections to constructor ones? If it requires too much refactoring, then just leave it as field injection.
| private MtaConfigurationPurgerAuditLog mtaConfigurationPurgerAuditLog; | ||
|
|
||
| @Inject | ||
| public ConfigurationEntriesResource(MtaConfigurationPurgerAuditLog mtaConfigurationPurgerAuditLog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as for DataTerminationService
theghost5800
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not forget to squash commits into 1 or smaller count with meaningful names before merge.
LMCROSSITXSADEPLOY-2517
3ba6cf3
|


No description provided.