Skip to content
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

WFCORE-671 : Configuration change reporting. #890

Merged
merged 2 commits into from Jul 23, 2015

Conversation

ehsavoie
Copy link
Contributor

Adding new collector
Creating a resource for configuration-changes configuration.
Securing operations :
* if the user can't access the resource addressed by the operation then the operation information are not displayed but the entry point is kept (aka date, result).
* if the user can access the address but doesn't have the rights to run the operation then the parameters are not accessible in the operation description.

Providing an in-memory audit-logger to track configuration changes easily.

Jira: https://issues.jboss.org/browse/WFCORE-671

@wildfly-ci
Copy link

Core - Full Integration Build 1324 is now running using a merge of 4e869ff

@wildfly-ci
Copy link

Linux Build 2187 is now running using a merge of 4e869ff

@wildfly-ci
Copy link

Windows Build 1714 is now running using a merge of 4e869ff

@wildfly-ci
Copy link

Windows Build 1714 outcome was SUCCESS using a merge of 4e869ff
Summary: Tests passed: 3390, ignored: 63 Build time: 0:36:38

@wildfly-ci
Copy link

Linux Build 2187 outcome was SUCCESS using a merge of 4e869ff
Summary: Tests passed: 3390, ignored: 63 Build time: 0:38:37

@wildfly-ci
Copy link

Core - Full Integration Build 1324 outcome was FAILURE using a merge of 4e869ff
Summary: Tests failed: 19 (19 new), passed: 2924, ignored: 344, muted: 2 Build time: 0:53:55

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.smoke.subsystem.xml.XSDValidationUnitTestCase.testJBossXsds: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneEC2FullHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHostMaster: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandalone: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHost: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneJTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneRTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneXTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneGossipHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHostSlave: <no details avaliable>


##### there are 9 more failed tests, see build details

@wildfly-ci
Copy link

Core - Full Integration Build 1330 is now running using a merge of 4e869ff

@wildfly-ci
Copy link

Windows Build 1721 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Linux Build 2193 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Core - Full Integration Build 1331 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Core - Full Integration Build 1330 outcome was FAILURE using a merge of 4a55c1a
Summary: Tests failed: 18, passed: 2916, ignored: 349 Build time: 0:47:07

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.smoke.subsystem.xml.XSDValidationUnitTestCase.testJBossXsds: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneEC2FullHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHostMaster: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandalone: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHost: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneJTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneRTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneXTS: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testStandaloneGossipHA: <no details avaliable>

org.jboss.as.test.smoke.subsystem.xml.StandardConfigsXMLValidationUnitTestCase.testHostSlave: <no details avaliable>


##### there are 8 more failed tests, see build details

@wildfly-ci
Copy link

Windows Build 1721 outcome was FAILURE using a merge of 4a55c1a
Summary: Tests failed: 1 (1 new), passed: 3389, ignored: 63 Build time: 0:34:15

Build problems:

Failed tests detected

Failed tests

org.jboss.as.jmx.rbac.JmxRbacDisabledTestCase.testMaintainerSensitiveMBeans: <no details avaliable>

@wildfly-ci
Copy link

Linux Build 2193 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 3390, ignored: 63 Build time: 0:36:42

@wildfly-ci
Copy link

Core - Full Integration Build 1331 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 2934, ignored: 349 Build time: 0:46:31

@ehsavoie
Copy link
Contributor Author

Retest this please

@wildfly-ci
Copy link

Linux Build 2196 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Windows Build 1724 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Core - Full Integration Build 1334 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Windows Build 1724 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 3390, ignored: 63 Build time: 0:35:18

@wildfly-ci
Copy link

Linux Build 2196 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 3390, ignored: 63 Build time: 0:35:31

@wildfly-ci
Copy link

Core - Full Integration Build 1334 outcome was FAILURE using a merge of 4a55c1a
Summary: Tests failed: 2 (2 new), passed: 2927, ignored: 350 Build time: 0:45:01

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.ejb.security.jbossappxml.JBossAppXMLSecurityTestCase.testEJBRunAs: <no details avaliable>

org.jboss.as.test.integration.messaging.mgmt.ConnectionFactoryManagementTestCase.testWriteDiscoveryGroupAttributeWhenConnectorIsAlreadyDefined: <no details avaliable>

@bstansberry
Copy link
Contributor

retest this please

@wildfly-ci
Copy link

Windows Build 1758 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Core - Full Integration Build 1369 is now running using a merge of 4a55c1a

@wildfly-ci
Copy link

Linux Build 2232 is now running using a merge of 4a55c1a


@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ModelNode maxHistory = MAX_HISTORY.resolveModelAttribute(context, operation);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't correct for a write-attribute op handler, which has params (name=max-history,value=15), not (max-history=15).

@wildfly-ci
Copy link

Windows Build 1758 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 3390, ignored: 63 Build time: 0:33:22

@wildfly-ci
Copy link

Linux Build 2232 outcome was SUCCESS using a merge of 4a55c1a
Summary: Tests passed: 3390, ignored: 63 Build time: 0:34:58

@wildfly-ci
Copy link

Core - Full Integration Build 1369 outcome was FAILURE using a merge of 4a55c1a
Summary: Tests failed: 1 (1 new), passed: 2955, ignored: 354 Build time: 0:46:36

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.ee.appclient.basic.SimpleApplicationClientTestCase.testAppClientJBossDescriptor: <no details avaliable>

@ehsavoie ehsavoie force-pushed the WFCORE-671 branch 2 times, most recently from d9eaea9 to 6a62f8b Compare July 21, 2015 17:02
@wildfly-ci
Copy link

Windows Build 1766 is now running using a merge of 6a62f8b

@wildfly-ci
Copy link

Linux Build 2241 is now running using a merge of 6a62f8b

@wildfly-ci
Copy link

Core - Full Integration Build 1377 is now running using a merge of 6a62f8b

@wildfly-ci
Copy link

Windows Build 1766 outcome was SUCCESS using a merge of 6a62f8b
Summary: Tests passed: 3392, ignored: 63 Build time: 0:33:39

@wildfly-ci
Copy link

Linux Build 2241 outcome was SUCCESS using a merge of 6a62f8b
Summary: Tests passed: 3392, ignored: 63 Build time: 0:36:27

@wildfly-ci
Copy link

Core - Full Integration Build 1377 outcome was FAILURE using a merge of 6a62f8b
Summary: Tests failed: 1 (1 new), passed: 2954, ignored: 355 Build time: 0:45:21

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.ejb.remote.client.api.interceptor.EJBClientInterceptorTestCase.testEJBClientInterceptionFromInVMClient: <no details avaliable>

Adding new collector
Creating a resource for configuration-changes configuration.
Securing operations :
	* if the user can't access the resource addressed by the operation then the operation information are not displayed but the entry point is kept (aka date, result).
	* if the user can access the address but doesn't have the rights to run the operation then the parameters are not accessible in the operation description.
Providing an in-memory audit-logger to track configuration changes easily.
@wildfly-ci
Copy link

Linux Build 2256 is now running using a merge of 43b4015

@wildfly-ci
Copy link

Windows Build 1779 is now running using a merge of 43b4015

@wildfly-ci
Copy link

Core - Full Integration Build 1395 is now running using a merge of 43b4015


public static final String OPERATION_NAME = "show-logs";
protected static final AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[]{MAX_OPERATION_COUNT};
private static final Map<String, InMemoryAuditLogHander> histories = Collections.synchronizedMap(new HashMap<String, InMemoryAuditLogHander>());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to delay merging this PR for this, but once it's merged please send up a PR to make this a non-static field and have the InMemoryAuditLogHandlerResourceDefinition pass a ref to it to the handlers when it constructs them.

Having this be static is no big deal in this case, but I don't want anyone looking at kernel code and thinking that using static fields to store state is a good practice.

@bstansberry bstansberry added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Jul 23, 2015
@wildfly-ci
Copy link

Windows Build 1779 outcome was FAILURE using a merge of 43b4015
Summary: Tests failed: 2 (2 new), passed: 3396, ignored: 63 Build time: 0:35:28

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.manualmode.auditlog.AuditLogBootingLogTestCase.testBootIsLogged: <no details avaliable>

org.jboss.as.test.manualmode.auditlog.AuditLogFieldsOfLogTestCase.testAuditLoggingFields: <no details avaliable>

@wildfly-ci
Copy link

Linux Build 2256 outcome was SUCCESS using a merge of 43b4015
Summary: Tests passed: 3398, ignored: 63 Build time: 0:36:17

@wildfly-ci
Copy link

Core - Full Integration Build 1395 outcome was FAILURE using a merge of 43b4015
Summary: Tests failed: 4 (4 new), passed: 2945, ignored: 354 Build time: 0:47:54

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.naming.connector.JMXConnectorTestCase.testMBeanCount: <no details avaliable>

org.jboss.as.test.integration.security.passwordmasking.PasswordMaskingInContainerTestCase.datasourceOperationsTest: <no details avaliable>

org.jboss.as.test.integration.security.vault.VaultDatasourceTestCase.testAccessThroughVaultDatasource: <no details avaliable>

org.jboss.as.test.manualmode.web.ssl.DatabaseCertLoginModuleTestCase.testDatabaseCertLoginModule: <no details avaliable>

bstansberry added a commit that referenced this pull request Jul 23, 2015
WFCORE-671 : Configuration change reporting.
@bstansberry bstansberry merged commit f6d4aba into wildfly:master Jul 23, 2015
@ehsavoie ehsavoie deleted the WFCORE-671 branch September 1, 2016 09:20
spyrkob pushed a commit to spyrkob/wildfly-core that referenced this pull request Sep 17, 2020
[JBEAP-19670][WCORE-5014] Remove the PropertySorter and specially handle the file …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
3 participants