forked from p15670423/monkey
Fixed notification link and updated legend texts
This commit is contained in:
parent
f78e76bdee
commit
dc2686301c
|
@ -29,6 +29,8 @@ let infectionMonkeyImage = require('../images/infection-monkey.svg');
|
||||||
let guardicoreLogoImage = require('../images/guardicore-logo.png');
|
let guardicoreLogoImage = require('../images/guardicore-logo.png');
|
||||||
let notificationIcon = require('../images/notification-logo-512x512.png');
|
let notificationIcon = require('../images/notification-logo-512x512.png');
|
||||||
|
|
||||||
|
const reportZeroTrustPath = '/report/zero_trust';
|
||||||
|
|
||||||
class AppComponent extends AuthComponent {
|
class AppComponent extends AuthComponent {
|
||||||
updateStatus = () => {
|
updateStatus = () => {
|
||||||
this.auth.loggedIn()
|
this.auth.loggedIn()
|
||||||
|
@ -200,7 +202,7 @@ class AppComponent extends AuthComponent {
|
||||||
{this.renderRoute('/infection/telemetry', <TelemetryPage onStatusChange={this.updateStatus}/>)}
|
{this.renderRoute('/infection/telemetry', <TelemetryPage onStatusChange={this.updateStatus}/>)}
|
||||||
{this.renderRoute('/start-over', <StartOverPage onStatusChange={this.updateStatus}/>)}
|
{this.renderRoute('/start-over', <StartOverPage onStatusChange={this.updateStatus}/>)}
|
||||||
{this.renderRoute('/report/security', <ReportPage onStatusChange={this.updateStatus}/>)}
|
{this.renderRoute('/report/security', <ReportPage onStatusChange={this.updateStatus}/>)}
|
||||||
{this.renderRoute('/report/zero_trust', <ZeroTrustReportPage onStatusChange={this.updateStatus}/>)}
|
{this.renderRoute(reportZeroTrustPath, <ZeroTrustReportPage onStatusChange={this.updateStatus}/>)}
|
||||||
{this.renderRoute('/license', <LicensePage onStatusChange={this.updateStatus}/>)}
|
{this.renderRoute('/license', <LicensePage onStatusChange={this.updateStatus}/>)}
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -211,8 +213,9 @@ class AppComponent extends AuthComponent {
|
||||||
|
|
||||||
showInfectionDoneNotification() {
|
showInfectionDoneNotification() {
|
||||||
if (this.state.completedSteps.infection_done) {
|
if (this.state.completedSteps.infection_done) {
|
||||||
let hostname = window.location.hostname;
|
const hostname = window.location.hostname;
|
||||||
let url = `https://${hostname}:5000/report`;
|
const port = window.location.port;
|
||||||
|
let url = `https://${hostname}:${port}/${reportZeroTrustPath}`;
|
||||||
console.log("Trying to show notification. URL: " + url + " | icon: " + notificationIcon);
|
console.log("Trying to show notification. URL: " + url + " | icon: " + notificationIcon);
|
||||||
|
|
||||||
Notifier.start(
|
Notifier.start(
|
||||||
|
|
|
@ -27,19 +27,18 @@ class ZeroTrustReportLegend extends Component {
|
||||||
|
|
||||||
getLegendContent() {
|
getLegendContent() {
|
||||||
return <div id={this.constructor.name}>
|
return <div id={this.constructor.name}>
|
||||||
<h4>Statuses</h4>
|
|
||||||
<ul style={{listStyle: "none"}}>
|
<ul style={{listStyle: "none"}}>
|
||||||
<li>
|
<li>
|
||||||
<div style={{display: "inline-block"}}>
|
<div style={{display: "inline-block"}}>
|
||||||
<StatusLabel showText={true} status={ZeroTrustStatuses.failed}/>
|
<StatusLabel showText={true} status={ZeroTrustStatuses.failed}/>
|
||||||
</div>
|
</div>
|
||||||
{"\t"}Some tests failed; the monkeys found something wrong.
|
{"\t"}At least one of the tests related to this component failed. This means that the Infection Monkey detected an unmet Zero Trust requirement.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div style={{display: "inline-block"}}>
|
<div style={{display: "inline-block"}}>
|
||||||
<StatusLabel showText={true} status={ZeroTrustStatuses.inconclusive}/>
|
<StatusLabel showText={true} status={ZeroTrustStatuses.inconclusive}/>
|
||||||
</div>
|
</div>
|
||||||
{"\t"}The test ran; manual verification is required to determine the results.
|
{"\t"}At least one of the tests’ results related to this component requires further manual verification.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div style={{display: "inline-block"}}>
|
<div style={{display: "inline-block"}}>
|
||||||
|
@ -55,7 +54,7 @@ class ZeroTrustReportLegend extends Component {
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
Some of the tests can be activated using the <NavLink to="/configuration"><u>configuration</u></NavLink>.
|
To activate more tests, go to the Monkey <NavLink to="/configuration"><u>configuration</u></NavLink> page.n
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue