Sidebar

Combodo

iTop Extensions

Modules configuration editor

๐Ÿคฆ ๐Ÿคฆ ๐Ÿคฆ Combodo's customers only ๐Ÿ˜Ž ๐Ÿ˜Ž ๐Ÿ˜Ž

name:
Modules configuration editor
description:
Allow profiles to edit the configuration of specified modules
version:
1.0.2
release:
2024-08-07
itop-version-min:
3.0.0
code:
combodo-modules-config-editor
state:
stable
php-version-max:
PHP 8.3

This extension allows non-Administrators to edit the configuration of designated modules.

Features

Multiple iTop extensions come up with configuration parameters, but sometimes, the best person to set them isn't the iTop Administrator and the Configuration file is only accessible to Administrator. Rather than giving to this person full access to iTop Configuration, you can with this extension, allow him to edit just the modules configuration that he needs.

  • Delegate specific modules configuration to some profile
  • Can allow the inline edition of some modules even if the full Configuration edition is disabled for security reason with the parameter config_editor.

For eg. you want to allow Configuration Manager to setup and modify rules for those 2 modules: User actions configurator and Hyperlinks configurator

Configuration file
$MyModuleSettings = array(
  'combodo-modules-config-editor' => array (
    'profiles' => array (
      'Configuration Manager' => array (
        'itop-object-copier',
        'combodo-custom-hyperlinks',
      ),
    ),
  ),

Revision History

Date Version Description
2024-08-07 1.0.2 * Update deprecated calls
2023-09-18 1.0.1 - Remove require of deprecated iTopWebPage file
- Nยฐ6704 Fix escaped content in modules config editor
2023-01-16 1.0.0 * Allow profiles to edit the configuration of specified modules

Limitations

None identified yet

Requirements

This extension has no specific external dependencies.

Installation

Use the Standard installation process for this extension.

Configuration

For some iTop profiles, you can define explicitly the modules (identified with their code, as in the full Configuration file) which parameters edition will be allowed

Configuration file
'combodo-modules-config-editor' => array (
  'profiles' => array (
    'Administrator' => array (
        'approval-base',
        'authent-ldap',
        'combodo-modules-config-editor',
    ),
    'Configuration Manager' => array (
        'itop-object-copier',
        'combodo-custom-hyperlinks',
        'itop-attachments',
        'itop-stencils',
        'customer-survey',
        'approval-base',
        'combodo-approval-extended',
        'combodo-sla-computation',
    ),
  ),
),

The module configuration editor works even if the full Configuration edition is disabled for security reason with the parameter config_editor.

conf/production/config-itop.php
'itop-config' => array( 
    'config_editor' => 'disabled', 
)

Usage

Launch the editor from the configuration menu:

  • If the user tries to add some configuration for modules that he is not allowed to, this module configuration will be ignored (silently?)
  • If the user enters PHP invalid format, his submission will be rejected with an error message
  • If the user set non-existing parameters, there won't be any warning message, but those unknown parameters will have no effect
Adding a new module, renaming a proposed module or deleting a full module configuration, has no effect.
There is no warning nor error message, the invalid module is still displayed as typed.
If you Reset or reload the page, it will display the saved modules, remove the invalid ones and restored the removed ones.
There is no lock on the Module configuration editor, so if two persons edit them in parallel, the last one wins
extensions/combodo-modules-config-editor.txt ยท Last modified: 2024/09/12 15:03 by 127.0.0.1
Back to top
Contact us