Skip to content

Commit

Permalink
Merge pull request #115 from dbarzin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dbarzin committed Aug 4, 2024
2 parents 48f0e9d + be47b9e commit 44a3e3c
Show file tree
Hide file tree
Showing 65 changed files with 130 additions and 164 deletions.
21 changes: 4 additions & 17 deletions app/Http/Controllers/ControlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1076,12 +1076,13 @@ public function doPlan(Request $request)
'403 Forbidden'
);

// Validate fields
$this->validate($request, [
'plan_date' => 'required',
'periodicity' => 'required',
'measures' => 'array|min:1',
]);

// Find the control
$control = Control::find($request->id);

// Control not found
Expand All @@ -1094,27 +1095,13 @@ public function doPlan(Request $request)
->withInput();
}

/*
// Check duplicate control on same scope
if (Control
// ::whereNull('realisation_date')
::whereIn('status', [0,1])
->where('id', '<>', $control->id)
->where('measure_id', '=', $control->measure_id)
->where('scope', '=', $request->scope)
->count() > 0) {
return back()
->withErrors(['msg' => trans('cruds.control.error.duplicate')])
->withInput();
}
*/
$control->scope = $request->scope;
// Update fields
$control->plan_date = $request->plan_date;
$control->periodicity = $request->periodicity;
$control->owners()->sync($request->input('owners', []));
$control->measures()->sync($request->input('measures', []));
$control->save();

// Redirect
return redirect('/bob/show/' . $request->id);
}

Expand Down
11 changes: 4 additions & 7 deletions docs/actions.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,25 @@ Chaque fois qu’un contrôle est en échec (orange ou rouge), un plan d’actio

Cet écran permet de suivre les plans d’action :

[<img src="/deming/images/a1.png" width="600">](/deming/images/a1.png)

[![Screenshot](images/a1.fr.png){: style="width:600px"}](images/a1.fr.png)

En cliquant sur :

* le titre du contrôle associé, vous arrivez vers la page de [modification du plan d’action](#edit) correspondant.

* La date de planification, vous arrivez sur le [contrôle](/deming/controls.fr/#show) ayant généré ce plan d’action
* La date de planification, vous arrivez sur le [contrôle](controls.fr.md/#show) ayant généré ce plan d’action

* La date de prochaine revue, vous arrivez vers le [contrôle](/deming/controls.fr/#show) suivant
* La date de prochaine revue, vous arrivez vers le [contrôle](controls.fr.md/#show) suivant


### Modifier un plan d’action <a name="edit"></a>

Cet écran permet de modifier un plan d’action et de planifier la prochaine évaluation du contrôle.

[<img src="/deming/images/a2.png" width="600">](/deming/images/a2.png)

[![Screenshot](images/a2.fr.png){: style="width:600px"}](images/a2.fr.png)

Lorsque vous cliquez sur :

* « Sauver », vous sauver le plan d’action et revenez à la [liste des plans d’action](#list)

* « Annuler » vous revenez à la [liste des plans d’action](#list)

11 changes: 5 additions & 6 deletions docs/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ Each time a control fails (orange or red), an action plan must be put in place a

This screen allows you to follow the action plans:

[<img src="/deming/images/a1.png" width="600">](/deming/images/a1.png)

[![Screenshot](images/a1.png)](images/a1.png)

Clicking on :

* the title of the associated control, you arrive at the corresponding [modification of the action plan](#edit) page.

* On the planning date, you arrive at the [control](/deming/controls/#show) that generated this action plan
* On the planning date, you arrive at the [control](controls.md/#show) that generated this action plan

* The next review date, you arrive at the next [control](/deming/controls/#show)
* The next review date, you arrive at the next [control](controls.md/#show)


### Edit an action plan <a name="edit"></a>

This screen allows you to edit an action plan and schedule the next control assessment.

[<img src="/deming/images/a2.png" width="600">](/deming/images/a2.png)
[![Screenshot](images/a2.png)](images/a2.png)


When you click:

* "Save", you save the action plan and return to the [list of action plans](#list)

* "Cancel" you return to the [list of action plans](#list)
* "Cancel" you return to the [list of action plans](#list)
24 changes: 12 additions & 12 deletions docs/config.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
Cet écran permet de gérer les attributs associés aux mesures de sécurité.
Il contient la liste des attributs et permet de créer, supprimer ou modifier des listes d’attributs.

[<img src="/deming/images/tags.png" width="600">](/deming/images/tags.png)
[![Screenshot](images/tags.fr.png)](images/tags.fr.png)

### Domaines <a name="domains"></a>

Cet écran permet de créer, modifier ou supprimer des liste de domaines de sécurité.

[<img src="/deming/images/domains.png" width="600">](/deming/images/domains.png)
[![Screenshot](images/domains.fr.png)](images/domains.fr.png)

L’application est founir avec une base de mesure de sécurité inspirée de la norme ISO 27001:2022 mais il est possible de définir de nouveaux domaines de sécurité inspirés d’autres normes comme PCIDSS, HDS...

### Utilisateurs <a name="users"></a>

Les utilisateurs sont définits dans l’application.

[<img src="/deming/images/users.png" width="600">](/deming/images/users.png)
[![Screenshot](images/users.fr.png)](images/users.fr.png)

Il existe quatres roles différents :

Expand All @@ -31,32 +31,32 @@ Il existe quatres roles différents :

* Auditeur : l’auditeur a un accès en lecture à l’ensemble des informations de l’application.


### Rapports <a name="report"></a>

L’application permet de générer le rapport de pilotage du SMSI et d’exporter dans un fichier Excell la liste des domains, les mesures de sécurités et tous les contrôles réalisés.

[<img src="/deming/images/reports.png" width="500">](/deming/images/reports.png)

[![Screenshot](images/reports.png){: style="width:500px"}](images/reports.png)

Voici le rapport de pilotage du SMSI :

[<img src="/deming/images/report1.png" width="600">](/deming/images/report1.png)
[![Screenshot](images/report1.png){: style="width:600px"}](images/report1.png)

[<img src="/deming/images/report2.png" width="600">](/deming/images/report2.png)
[![Screenshot](images/report2.png){: style="width:600px"}](images/report2.png)

### Import <a name="import"></a>

Il est possible d'importer des mesures de sécurité depuis un fichier .XLSX.
Il est possible d'importer des mesures de sécurité depuis un fichier .XLSX ou depuis la base de données de modèles.

Lors de l'importation, il est possible de supprimer tous les autres contrôles et mesures et de générer des données de test.

[<img src="/deming/images/import.png" width="600">](/deming/images/import.png)
[![Screenshot](images/import.png){: style="width:600px"}](images/import.png)

### Documents <a name="documents"></a>

Cet écran permet de modifier les modèles de document utilisés pour les fiches de contrôle et le rapport de pilotage du SMSI.
et permet d’avoir une vue sur l’ensemble des documents utilisés comme preuve lors de la réalisation des contrôles de sécurité.

[<img src="/deming/images/documents.png" width="400">](/deming/images/documents.png)
[![Screenshot](images/documents.png){: style="width:400px"}](images/documents.png)

Le bouton « Vérifier » permet de vérifier l’intégrité des documents conservés dans l'application.

Expand All @@ -74,7 +74,7 @@ L'écran contient :

* Le délais de notification.

[<img src="/deming/images/config.png" width="500">](/deming/images/config.png)
[![Screenshot](images/config.fr.png){: style="width:500px"}](images/config.fr.png)

Lorsque vous cliquer sur :

Expand Down
22 changes: 12 additions & 10 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
This screen allows you to manage the attributes associated with the security measures.
It contains the list of attributes and allows you to create, delete or modify attribute lists.

[<img src="/deming/images/tags.png" width="600">](/deming/images/tags.png)
[![Screenshot](images/tags.png)](images/tags.png)

### Domains <a name="domains"></a>

This screen allows you to create, modify or delete lists of security domains.

[<img src="/deming/images/domains.png" width="600">](/deming/images/domains.png)
[![Screenshot](images/domains.png)](images/domains.png)

The application is provided with a security measurement base inspired by the ISO 27001:2022 standard, but it is possible to define new security domains inspired by other standards such as PCIDSS, HDS, etc.

### Users <a name="users"></a>

Users are directly defined in the application.

[<img src="/deming/images/users.png" width="600">](/deming/images/users.png)
[![Screenshot](images/users.png)](images/users.png)

There are four different roles:

Expand All @@ -36,25 +36,27 @@ There are four different roles:

The application allows you to generate the ISMS management report and to export the list of domains, the security measures and all the checks carried out in an Excell file.

[<img src="/deming/images/reports.png" width="500">](/deming/images/reports.png)
[![Screenshot](images/reports.png){: style="width:500px"}](images/reports.png)

Here is the ISMS pilot report:

[<img src="/deming/images/report1.png" width="600">](/deming/images/report1.png)
[![Screenshot](images/report1.png)](images/report1.png)

[<img src="/deming/images/report2.png" width="600">](/deming/images/report2.png)
[![Screenshot](images/report2.png)](images/report2.png)

### Import <a name="import"></a>

It is possible to import controls from an .XLSX file.
Measures can be imported from an .XLSX file or from the template database.

[<img src="/deming/images/import.png" width="600">](/deming/images/import.png)
When importing, all other controls and measures can be deleted and test data generated.

[![Screenshot](images/import.png)](images/import.png)

### Documents <a name="documents"></a>

This screen is used to modify the document templates used for the control sheets and the ISMS management report and provides an overview of all the documents used as evidence when carrying out security checks.

[<img src="/deming/images/documents.png" width="400">](/deming/images/documents.png)
[![Screenshot](images/documents.png){: style="width:400px"}](images/documents.png)

The "Verify" button allows you to verify the integrity of the documents stored in the application.

Expand All @@ -72,7 +74,7 @@ The screen contains:

* The notification deadlines.

[<img src="/deming/images/config.png" width="500">](/deming/images/config.png)
[![Screenshot](images/config.png){: style="width:500px"}](images/config.png)

When you click on:

Expand Down
31 changes: 11 additions & 20 deletions docs/controls.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Cet écran permet d’afficher la liste des contrôles et de les filtrer par :

* texte libre sur le nom, l’objectif, les observations.

[<img src="/deming/images/c1.png" width="600">](/deming/images/c1.png)
[![Screenshot](images/c1.fr.png)](images/c1.fr.png)

Lorsque vous cliquez sur :

* Le domaine, vous arrivez l'écran d'[affichage du domaine de sécurité](/deming/config/#domains)
* Le domaine, vous arrivez l'écran d'[affichage du domaine de sécurité](config.fr.md/#domains)

* La clause, vous arrivez l'écran d'[affichage de la mesure de sécurité](/deming/measures/#show).
* La clause, vous arrivez l'écran d'[affichage de la mesure de sécurité](measures.fr.md/#show).

* La date de réalisation, de planification ou la date du contrôle suivant, vous arrivez l'écran d'[affichage du contrôle de sécurité](#show).

Expand Down Expand Up @@ -48,7 +48,7 @@ Les boutons « Faire » et « Planifier » sont présents si ce contôle n’a p

Les boutons « Modifier » et « Supprimer » sont présents si l'utilisateur est administrateur.

[<img src="/deming/images/c2.fr.png" width="600">](/deming/images/c2.fr.png)
[![Screenshot](images/c2.fr.png)](images/c2.fr.png)

Lorsque vous cliquez sur :

Expand All @@ -74,18 +74,17 @@ Cet écran contient les informations d’un contrôle :

* Le périmètre du contrôle ;

* La date de palnification ;
* La date de planification ;

* La périodicité ; et

* Les responsables de la réalisation du contrôles.

[<img src="/deming/images/c5.png" width="400">](/deming/images/c5.png)
[![Screenshot](images/c5.fr.png)](images/c5.fr.png)

Lorsque vous cliquez sur :

* « Plan », la date de planifierion, la récurence et les responsables sont mis à jour et vous êtres renvoyés vers l’[écran d'affichage
du contrôles](#show)
* « Plan », la date de planifierion, la récurence et les responsables sont mis à jour et vous êtres renvoyés vers l’[écran d'affichage du contrôles](#show)

* « Annuler », Vous êtres renvoyés vers l’[écran d'affichage du contrôles](#show)

Expand Down Expand Up @@ -120,8 +119,8 @@ Cet écran contient :

* La date du prochaine contrôle

[<img src="/deming/images/c3.png" width="600">](/deming/images/c3.png)
[<img src="/deming/images/c4.png" width="600">](/deming/images/c4.png)
[![Screenshot](images/c3.fr.png)](images/c3.fr.png)
[![Screenshot](images/c4.fr.png)](images/c4.fr.png)

Lorsque vous cliquez sur :

Expand All @@ -140,14 +139,6 @@ La fiche de contrôle est un document word généré par l'application sur base

Cette fiche permet de décrire les observations réalisés, d'ajouter des captures d'écran ou des tableaux et de __signer électroniquement__ les observations.

[![Screenshot](images/report3.png)](images/report3.png)

[<img src="/deming/images/report3.png" width="600">](/deming/images/report3.png)


La fiche de contrôle peut être [adaptée](/deming/config.fr/#documents) afin de respecter le modèle de document de votre organisation.






La fiche de contrôle peut être [adaptée](config.fr.md/#documents) afin de respecter le modèle de document de votre organisation.
Loading

0 comments on commit 44a3e3c

Please sign in to comment.