Skip to content

Commit 239e13f

Browse files
committed
fix: update sophos guide
1 parent af493ee commit 239e13f

File tree

5 files changed

+96
-2
lines changed

5 files changed

+96
-2
lines changed

frontend/src/app/app-module/guides/guide-sophos/guide-sophos.component.html

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,63 @@ <h4 class="card-title mb-0 text-primary">
55
</h4>
66
</div>
77

8+
<div class="card-body">
9+
<p class="font-size-base">
10+
Sophos Central has secured APIs available for customers. These allow the retrieval of event and alert data from
11+
Sophos Central, for use in other systems.<br><br>
12+
13+
<h6 class="font-weight-semibold mt-3 mb-3">
14+
How to send alert and event data to UTMStack:
15+
</h6>
16+
<ol class="setup_list">
17+
<app-utm-list [items]="steps">
18+
<ng-template stepTemplateRef let-step>
19+
<li>
20+
<app-step>
21+
<span stepNumber>{{step.id}}</span>
22+
<div [innerHtml]="step.name"></div>
23+
<ng-container *ngIf="step.content">
24+
25+
<ng-template [ngIf]="step.content['images']">
26+
<app-utm-list [items]="step.content['images']">
27+
<ng-template stepTemplateRef let-image>
28+
<img [alt]="image.alt" class="step-img" [src]="image.src">
29+
</ng-template>
30+
</app-utm-list>
31+
</ng-template>
32+
33+
<ng-template [ngIf]="step.content.id === 'stepContent5'">
34+
<app-int-generic-group-config [moduleId]="integrationId"
35+
(configValidChange)="configValidChange($event)"
36+
[serverId]="serverId"></app-int-generic-group-config>
37+
</ng-template>
38+
39+
<ng-template [ngIf]="step.content.id === 'stepContent3'">
40+
<div class="mt-3">
41+
<app-app-module-activate-button [module]="module.SOPHOS" [type]="'integration'"
42+
[disabled]="configValidity"
43+
[serverId]="serverId">
44+
</app-app-module-activate-button>
45+
</div>
46+
</ng-template>
47+
48+
</ng-container>
49+
</app-step>
50+
</li>
51+
</ng-template>
52+
</app-utm-list>
53+
</ol>
54+
</div>
55+
</div>
56+
57+
58+
<!--<div class="w-100 h-100">
59+
<div class="card-header d-flex justify-content-between align-items-center">
60+
<h4 class="card-title mb-0 text-primary">
61+
Sophos Central
62+
</h4>
63+
</div>
64+
865
<div class="card-body">
966
<p class="font-size-base">
1067
Sophos Central has secured APIs available for customers. These allow the retrieval of event and alert data from
@@ -72,4 +129,4 @@ <h6 class="font-weight-semibold mt-3 mb-3">
72129
</li>
73130
</ol>
74131
</div>
75-
</div>
132+
</div>-->

frontend/src/app/app-module/guides/guide-sophos/guide-sophos.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import {Component, Input, OnInit} from '@angular/core';
22
import {UtmModulesEnum} from '../../shared/enum/utm-module.enum';
3+
import {AS400STEPS} from "../guide-as400/as400.steps";
4+
import {ACTIONS, PLATFORM} from "../guide-as400/constants";
5+
import {Step} from "../shared/step";
6+
import {SOPHOS_STEPS} from "./sophos.steps";
37

48
@Component({
59
selector: 'app-guide-sophos',
@@ -11,6 +15,9 @@ export class GuideSophosComponent implements OnInit {
1115
@Input() serverId: number;
1216
module = UtmModulesEnum;
1317
configValidity: boolean;
18+
steps = SOPHOS_STEPS;
19+
platforms = PLATFORM;
20+
actions = ACTIONS;
1421

1522
constructor() {
1623
}
@@ -21,5 +28,4 @@ export class GuideSophosComponent implements OnInit {
2128
configValidChange($event: boolean) {
2229
this.configValidity = !$event;
2330
}
24-
2531
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import {Step} from '../shared/step';
2+
3+
export const SOPHOS_STEPS: Step[] = [
4+
{id: '1', name: 'You require a Client ID and Client Secret to access event data via the API. ' +
5+
'In Sophos Central Admin, go to <strong> Global Settings > API Credentials Management </strong>. <br>',
6+
},
7+
{id: '2', name: 'To create a new credential, click Add Credential from the top-right corner of the screen'},
8+
{id: '3', name: 'Enter a name and description for the credential, then select the role you want to assign and click Add.'},
9+
{id: '4', name: 'Click Show Client Secret to view the Client ID and Client Secret, then click Copy to store them securely. <br>' +
10+
'<div class="w-100 alert alert-info alert-styled-right mb-3 alert-dismissible">' +
11+
'The Client Secret is only visible once. Ensure you copy and save it securely</div>',
12+
content: {
13+
id: 'stepContent4',
14+
images: [{
15+
alt: 'Client Secrets',
16+
src: '../../../../assets/img/guides/sophos/sophos-step-4.png',
17+
}]
18+
}
19+
},
20+
{id: '5', name: 'Insert information in the following inputs.You can add more than one Sophos configuration ' +
21+
'by clicking on Add tenant button.',
22+
content: {
23+
id: 'stepContent5'
24+
}
25+
},
26+
{id: '6', name: 'Click on the button shown below, to activate the UTMStack features related to this integration',
27+
content: {
28+
id: 'stepContent6'
29+
}
30+
}
31+
];
49.2 KB
Loading
-75.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)