MISP/app/View/Pages/administration.ctp

33 lines
5.7 KiB
PHP

<div class="index">
<h2><?php echo __('Administrative actions');?></h2>
<ul>
<li><a href="<?php echo $baseurl;?>/events/reportValidationIssuesEvents">reportValidationIssuesEvents</a></li>
<li><a href="<?php echo $baseurl;?>/attributes/reportValidationIssuesAttributes">reportValidationIssuesAttributes</a></li>
<li><?php echo $this->Form->postLink(__('Reset the attribute counts'), $baseurl . '/events/generateCount');?> (<?php echo __('Events need to have no validation issues');?>)</li>
<li><?php echo $this->Form->postLink(__('Recorrelate attributes'), $baseurl . '/attributes/generateCorrelation');?></li>
<li><?php echo $this->Form->postLink(__('Recorrelate proposals'), $baseurl . '/shadow_attributes/generateCorrelation');?></li>
<li><a href="<?php echo $baseurl;?>/users/verifyGPG"><?php echo __('Verify GnuPG keys');?></a> (<?php echo __('Check whether every user\'s GnuPG key is usable');?>)</li>
<li><a href="<?php echo $baseurl;?>/users/verifyCertificate"><?php echo __('Verify Certificates');?></a> (<?php echo __('Check whether every user\'s certificate is usable');?>)</li>
<li><?php echo $this->Form->postLink(__('Extend Organization length'), $baseurl . '/servers/updateDatabase/extendServerOrganizationLength');?> (<?php echo __('Hotfix 2.3.57: Increase the max length of the organization field when adding a new server connection.');?>)</li>
<li><?php echo $this->Form->postLink(__('Convert log fields to text'), $baseurl . '/servers/updateDatabase/convertLogFieldsToText');?> (<?php echo __('Hotfix 2.3.78: Some of the log fields that were varchar(255) ended up truncating the data. This function will change them to "text"');?>)</li>
<li><?php echo $this->Form->postLink(__('Fix duplicate UUIDs'), $baseurl . '/servers/pruneDuplicateUUIDs');?> (<?php echo __('Hotfix 2.3.107: it was previously possible to get duplicate attribute UUIDs in the database, this script will remove all duplicates and ensure that duplicates will not be entered into the database in the future.');?>)</li>
<li><?php echo $this->Form->postLink(__('Remove duplicate events (with the same UUID)'), $baseurl . '/servers/removeDuplicateEvents');?> (<?php echo __('Hotfix 2.3.115: In some rare situations it could occur that a duplicate of an event was created on an instance, with the exact same uuid. This action will remove any such duplicates and make sure that this cannot happen again.');?>)</li>
<li><?php echo $this->Form->postLink(__('Prune orphaned attributes'), $baseurl . '/attributes/pruneOrphanedAttributes');?> (<?php echo __('In some rare occasions it can happen that you end up with some attributes in your database that do not belong to an event - for example during a race condition between an event insert and a delete. This tool will collect and delete any such orphaned attributes. If you ever run into an issue where you cannot add an attribute with a specific valid value, this is probably the reason.');?>)</li>
<li><?php echo $this->Form->postLink(__('Clean regex table of potentially malicious entries'), $baseurl . '/regexp/cleanRegexModifiers');?> (<?php echo __('Hotfix 2.3.160: Prior to this version it was possible for a user/admin with Regex permission to create a malicious regular expression that could be used to execute arbitrary code. Since this version it is no longer possible to input such expressions, but already existing malicious entries still have to be cleaned using this tool.');?>)</li>
<li><?php echo $this->Form->postLink(__('Remove URL type attribute sanitisation'), $baseurl . '/attributes/updateAttributeValues/urlSanitisation');?> (<?php echo __('Hotfix 2.3.173: Sanitised URLs can cause issues with the NIDS exports and as of this version attributes will be modified on entry to correct this. To correct existing entries, run this script.');?>)</li>
<li><?php echo $this->Form->postLink(__('Index tables'), $baseurl . '/servers/updateDatabase/indexTables');?> (<?php echo __('This script will create indeces for all of the tables in MISP (other than primary keys)');?>)</li>
<li><?php echo $this->Form->postLink(__('Fix non-empty sharing group IDs'), $baseurl . '/servers/updateDatabase/fixNonEmptySharingGroupID');?> (<?php echo __('This script will change the sharing_group_id to 0 in all non sharing group setting events and attributes)');?>)</li>
</ul>
<h4><?php echo __('Upgrading a 2.3 instance to 2.4');?></h4>
<span class="red-background white"><?php echo __('Warning: Running this scripts below can result in the loss of data. Make sure that you back your database up before running them.');?></span>
<div> <?php echo __('The order for the 2.4 upgrade procedure is');?>:
<ol>
<li><?php echo __('%s - run this to migrate the 2.3 data to the 2.4 format', $this->Form->postLink(__('Upgrade to 2.4'), $baseurl . '/servers/upgrade2324'));?></li>
<li><?php echo __('If it completes successful, run the %s to remove the fields that are specific to 2.3. Make sure that the migration of the data to the 2.4 format was successful (you can check the result in the audit logs). If you have run the 2.4 upgrade script previously but are running into SQL errors on the column \'org\', run this script.', $this->Form->postLink(__('2.3->2.4 clean-up script'), $baseurl . '/servers/updateDatabase/cleanupAfterUpgrade', array(), __('If the migration of your data from 2.4 is not complete this will lead to the loss of data. Backing your DB up is highly recommended. Are you ready to start removing the obsolete fields?')));?></li>
</ol>
</div>
</div>
<?php
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'admin', 'menuItem' => 'adminTools'));
?>