feat(xo-server-audit): ignore common methods without side effects (#5109)

Ignoring these methods reduce the number of records in the audit which makes it easier to analyze and store.
This commit is contained in:
badrAZ 2020-06-25 16:55:57 +02:00 committed by GitHub
parent 183ddb68d3
commit 0326ce1d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,21 +20,28 @@ const DEFAULT_BLOCKED_LIST = {
'audit.checkIntegrity': true,
'audit.generateFingerprint': true,
'audit.getRecords': true,
'backup.list': true,
'backupNg.getAllJobs': true,
'backupNg.getAllLogs': true,
'backupNg.listVmBackups': true,
'cloud.getResourceCatalog': true,
'cloudConfig.getAll': true,
'group.getAll': true,
'host.isHostServerTimeConsistent': true,
'host.isHyperThreadingEnabled': true,
'host.stats': true,
'ipPool.getAll': true,
'job.getAll': true,
'log.get': true,
'metadataBackup.getAllJobs': true,
'network.getBondModes': true,
'pif.getIpv4ConfigurationModes': true,
'plugin.get': true,
'pool.listMissingPatches': true,
'proxy.getAll': true,
'remote.getAll': true,
'remote.getAllInfo': true,
'remote.list': true,
'resourceSet.getAll': true,
'role.getAll': true,
'schedule.getAll': true,
@ -47,11 +54,16 @@ const DEFAULT_BLOCKED_LIST = {
'system.getServerTimezone': true,
'system.getServerVersion': true,
'user.getAll': true,
'vm.getHaValues': true,
'vm.stats': true,
'xo.getAllObjects': true,
'xoa.getApplianceInfo': true,
'xoa.licenses.get': true,
'xoa.licenses.getAll': true,
'xoa.licenses.getSelf': true,
'xoa.supportTunnel.getState': true,
'xosan.checkSrCurrentState': true,
'xosan.computeXosanPossibleOptions': true,
'xosan.getVolumeInfo': true,
}