Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
081824b
Update README.md
rvald26 Jan 11, 2024
f2fc2f2
Bugfix/v10.2/260 frontend is making continuous requests when logout (…
mjabascal10 Jan 11, 2024
9b2ad62
Fix: Incorrect rendering of multi-selection filter when choosing mult…
mjabascal10 Jan 14, 2024
7372efd
Fix: Unable to login with token query param (269) (#271)
mjabascal10 Jan 14, 2024
3c306a9
adding content security policy
osmontero Jan 15, 2024
1ba95ae
updating Dockerfile
osmontero Jan 15, 2024
0f06fed
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /correlation (#274)
dependabot[bot] Jan 15, 2024
3b2d7e5
Adding backend xss attack prevention (#285)
c3s4rfred Jan 15, 2024
ca69878
support timeline
osmontero Jan 15, 2024
0d2f0e0
update security policy
osmontero Jan 15, 2024
5794835
updating security policy
osmontero Jan 15, 2024
18bcf65
Updating CSP (#295)
c3s4rfred Jan 15, 2024
b4ee590
Optimizing code and dependencies (#296)
leonardomoralopez89 Jan 15, 2024
1f4fe24
Optimizing code and dependencies (296) (#298)
mjabascal10 Jan 15, 2024
b4b72be
Bump google.golang.org/grpc from 1.58.0 to 1.58.3 in /log-auth-proxy …
dependabot[bot] Jan 15, 2024
d84969a
Bump golang.org/x/net from 0.9.0 to 0.17.0 in /agent-manager (#280)
dependabot[bot] Jan 15, 2024
5fd2679
Bump golang.org/x/net from 0.14.0 to 0.17.0 in /agent/agent (#281)
dependabot[bot] Jan 15, 2024
5fb50f8
Bump follow-redirects from 1.15.2 to 1.15.5 in /frontend (#275)
dependabot[bot] Jan 15, 2024
36696f6
Bump jinja2 from 3.1.2 to 3.1.3 in /mutate (#276)
dependabot[bot] Jan 15, 2024
47d564e
Bump pycryptodome from 3.19.0 to 3.19.1 in /mutate (#279)
dependabot[bot] Jan 15, 2024
39985c4
Bump golang.org/x/net from 0.12.0 to 0.17.0 in /log-auth-proxy (#282)
dependabot[bot] Jan 15, 2024
4cc05ee
Bump github.com/gorilla/mux from 1.8.0 to 1.8.1 in /bdgz (#289)
dependabot[bot] Jan 15, 2024
7eaf7f6
Bump github.com/utmstack/config-client-go from 1.0.3 to 1.1.0 in /bdg…
dependabot[bot] Jan 15, 2024
c537c0d
Bump github.com/shirou/gopsutil/v3 in /correlation (#291)
dependabot[bot] Jan 15, 2024
bd0110d
Bump github.com/google/uuid from 1.4.0 to 1.5.0 in /correlation (#292)
dependabot[bot] Jan 15, 2024
cc7c812
Bump github.com/cloudfoundry/gosigar from 1.3.34 to 1.3.42 in /instal…
dependabot[bot] Jan 15, 2024
faf6096
Bump github.com/shirou/gopsutil/v3 from 3.23.9 to 3.23.12 in /install…
dependabot[bot] Jan 15, 2024
ae3b88d
Bump golang.org/x/crypto from 0.11.0 to 0.17.0 in /log-auth-proxy (#299)
dependabot[bot] Jan 15, 2024
a777488
Feature/web pdf/change auth token behavior (#319)
mjabascal10 Jan 16, 2024
b358679
fixed logout observable emission (#314) (#320)
mjabascal10 Jan 17, 2024
e1b88aa
Removing CSP policy from NGINX until we define XSS treatment in front…
c3s4rfred Jan 17, 2024
0faccca
licence key help popup is behind the form (#305) (#321)
mjabascal10 Jan 17, 2024
a5b8ae3
Feature v10.3 add cmpl report scheduling (#318)
c3s4rfred Jan 17, 2024
c1308c8
Feature/10.3/216 user configuration starter (#328)
mjabascal10 Jan 18, 2024
93f129d
Feature/10.3/216 user configuration step getting starter (#327)
mjabascal10 Jan 18, 2024
199e313
Adding elastic dependency to fix missing components of health service…
c3s4rfred Jan 19, 2024
8863125
Update README.md
rvald26 Jan 21, 2024
9cfaea9
Fixing overwriting of the properties host and IP of the alert that is…
leonardomoralopez89 Jan 22, 2024
f402ce5
Adding selenium and pdf services to installer (#339)
c3s4rfred Jan 22, 2024
d162ba9
Bump github.com/cloudfoundry/gosigar from 1.3.42 to 1.3.43 in /instal…
dependabot[bot] Jan 22, 2024
5eaf1aa
Bump github.com/utmstack/config-client-go in /office365 (#297)
dependabot[bot] Jan 22, 2024
2b4e330
limiting resources
osmontero Jan 22, 2024
ae214f7
Feature/frontend/121-schedule report (#351)
mjabascal10 Jan 22, 2024
60ab9c7
Automatic deploy for agent versions. (#343)
Kbayero Jan 22, 2024
d01c049
Bugfix Detail view of an alert crashed when coming from a disconnecte…
mjabascal10 Jan 22, 2024
25a0457
Bump com.jayway.jsonpath:json-path from 2.8.0 to 2.9.0 in /backend (#…
dependabot[bot] Jan 23, 2024
21be43e
Updating security configuration to allow normal user to access manage…
c3s4rfred Jan 23, 2024
d2bd696
Bugfix/10.3/324 down datasource shows an empty detail in view and err…
mjabascal10 Jan 23, 2024
4632e9c
Fixing workflow for autoamtic deploy (#354)
Kbayero Jan 23, 2024
6014def
Updating privafy filter (#358)
c3s4rfred Jan 23, 2024
9425647
Fixed Property 'TimeFrequency' is protected and only accessible (#352…
mjabascal10 Jan 23, 2024
87a0876
Bugfix/10.2/333 incorrect linux agent install command (#362)
mjabascal10 Jan 24, 2024
072c603
Bugfix/10.2/359 unhandled login error (#364)
mjabascal10 Jan 25, 2024
7cedce3
using node1 always
osmontero Jan 25, 2024
f1d5dc3
cleaning imports
osmontero Jan 25, 2024
085f7ce
Updating security config for info endpoint (#373)
c3s4rfred Jan 26, 2024
66746b5
Fix workflow for automatic agent deploy (#377)
Kbayero Jan 29, 2024
8ec6d12
Fix error cannot assign requested address (#375)
Kbayero Jan 29, 2024
5df6cd6
Improvement for the create schedule report compliance component (#376)
mjabascal10 Jan 29, 2024
72912fb
Update web pdf image generation and actions (#380)
c3s4rfred Jan 29, 2024
48ca790
Fixing error in agent deploy workflow (#382)
Kbayero Jan 29, 2024
e39120e
Removing empty test class (#381)
c3s4rfred Jan 29, 2024
1e71510
Fixing rule history filter condition for IRA on dev (#389)
c3s4rfred Jan 30, 2024
5a309bd
Handling ssl certificates in chrome with selenium webDrive (#391)
mjabascal10 Jan 30, 2024
f0691eb
Fixed integration disconnected alert coming to often (#313) (#394)
mjabascal10 Feb 1, 2024
1910435
Bugfix/10.3/378 overview dashboard has wrong alert value (#392)
mjabascal10 Feb 1, 2024
39494f4
Fixed 217 Log-explorer-query-crashed-when-type-something (#) (#395)
mjabascal10 Feb 2, 2024
e2dbda1
Update fixes on dev (#418)
c3s4rfred Feb 6, 2024
9505f90
Feature/v10.x/secret management (#419)
jdieguez89 Feb 6, 2024
3c0ed54
Incident response trigger select cause modal scroll (#421)
mjabascal10 Feb 6, 2024
3e5501d
Hiding secrets from command outputs (#423)
jdieguez89 Feb 7, 2024
ccf19bb
Fixed Auditor crash try to parse (#405) (#422)
mjabascal10 Feb 7, 2024
d14fe4e
Update CODE_OF_CONDUCT.md
osmontero Feb 7, 2024
fd45aa8
Replacing secret value (#431)
jdieguez89 Feb 8, 2024
186cf3a
Fixed Key-Based Authentication Failure in web-pdf Microservice (#429)…
mjabascal10 Feb 8, 2024
4ee0d5e
creating vlan interface
osmontero Feb 8, 2024
762ad68
Specifying internal ip vlan (#434)
c3s4rfred Feb 8, 2024
ef79bd5
remove network size
osmontero Feb 8, 2024
da4a1eb
Merge branch 'main' of github.com:utmstack/UTMStack
osmontero Feb 8, 2024
a7f5985
Adding some comments to trigger dev (#436)
c3s4rfred Feb 8, 2024
56b5a65
Update README.md
rvald26 Feb 8, 2024
25f7fe3
Unable login with token query param (#269) (#433)
mjabascal10 Feb 8, 2024
75d1a0d
Update README.md
osmontero Feb 8, 2024
69e916f
Adding function to insert variable placeholder in incident reponse au…
jdieguez89 Feb 9, 2024
8d983a8
Update README.md
rvald26 Feb 9, 2024
7e764ca
Update README.md
rvald26 Feb 9, 2024
d64596e
avoid stop processing routine because of a lock (#444)
osmontero Feb 12, 2024
ee7ff67
Bugfix/10.2/379 pipelines are showing wrong input and processed value…
mjabascal10 Feb 12, 2024
ab5b4d3
response body
osmontero Feb 12, 2024
80cde96
continue if subscription already exists
osmontero Feb 12, 2024
36f528e
using logger function to check error
osmontero Feb 12, 2024
290c08c
using logs in text format
osmontero Feb 13, 2024
4850595
adding volume to backend
osmontero Feb 13, 2024
da99e3c
This is a temporal change to write logs to a file (#445)
leonardomoralopez89 Feb 13, 2024
2991f03
Bump github.com/google/uuid from 1.5.0 to 1.6.0 in /correlation (#383)
dependabot[bot] Feb 14, 2024
b9f3bdb
Bump github.com/swaggo/swag from 1.16.2 to 1.16.3 in /correlation (#410)
dependabot[bot] Feb 14, 2024
46fb685
Bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1 in /install…
dependabot[bot] Feb 14, 2024
b53db0a
Bump github.com/cloudfoundry/gosigar from 1.3.43 to 1.3.47 in /instal…
dependabot[bot] Feb 14, 2024
1ad2971
Bump github.com/shirou/gopsutil/v3 in /correlation (#411)
dependabot[bot] Feb 14, 2024
f716c02
Bugfix/10.3/435 validate minimum time of one day in cron expressions …
mjabascal10 Feb 14, 2024
6f34edf
increase minimum memory requirement
osmontero Feb 14, 2024
ba431f1
update error message
osmontero Feb 14, 2024
12937e5
Bugfix/10.2/379 pipelines are showing wrong input and processed value…
mjabascal10 Feb 14, 2024
edf1023
Validate minimum time of one day in cron expressions (#449)
mjabascal10 Feb 15, 2024
20bfa2f
install vlan package
osmontero Feb 16, 2024
9f095c0
using apt-get instead of apt
osmontero Feb 16, 2024
d73cbde
using log levels from env
osmontero Feb 16, 2024
00c70d8
Pipelines are showing wrong input and processed values (#451)
mjabascal10 Feb 16, 2024
52a2bc5
import libpq
osmontero Feb 16, 2024
4330c33
Bugfix/10.2/379 pipelines are showing wrong input and processed value…
mjabascal10 Feb 18, 2024
29f837e
Update README.md
osmontero Feb 18, 2024
19c801f
Fixed Login takes too long to load (#457)
mjabascal10 Feb 19, 2024
1dc7f2d
Merge branch 'main' of https://github.com/utmstack/UTMStack into bugf…
mjabascal10 Feb 19, 2024
e2dc583
Bump github.com/tidwall/gjson from 1.17.0 to 1.17.1 in /correlation (…
dependabot[bot] Feb 20, 2024
e1c4f97
Bump github.com/cloudfoundry/gosigar from 1.3.47 to 1.3.48 in /instal…
dependabot[bot] Feb 20, 2024
084f71c
Bump github.com/utmstack/config-client-go in /office365 (#463)
dependabot[bot] Feb 20, 2024
fbb57d5
Bump github.com/utmstack/config-client-go from 1.1.0 to 1.2.4 in /bdg…
dependabot[bot] Feb 20, 2024
70e91d8
Fixed Login takes too long to load (#457) (#465)
mjabascal10 Feb 21, 2024
089b713
Opening elastic and postgres ports in the installer on DEV and QA env…
c3s4rfred Feb 21, 2024
a598d6a
Bump org.postgresql:postgresql from 42.6.0 to 42.7.2 in /user-auditor…
dependabot[bot] Feb 21, 2024
126da98
Removing privafy filter from development because is not an oficial in…
c3s4rfred Feb 21, 2024
c3fee9e
I have added an init method that sets the start date for the alert ev…
leonardomoralopez89 Feb 21, 2024
1807051
Fixed Compliance reports are not being generated when the filters of …
mjabascal10 Feb 21, 2024
b3e32e3
Processed logs values still in the pipeline detail view (#475)
mjabascal10 Feb 21, 2024
83c8411
Fix environment variables for soc-ai service (#484)
Kbayero Feb 21, 2024
4616e06
Registering alerts of datasources down with state AUTOMATIC_REVIEW, t…
c3s4rfred Feb 22, 2024
f7dc1ef
Feature Soc AI rework (#494)
mjabascal10 Feb 22, 2024
7e43e1b
Merge remote-tracking branch 'origin/rc'
mjabascal10 Feb 23, 2024
73048f2
Merge remote-tracking branch 'origin/rc'
mjabascal10 Feb 26, 2024
3be3e16
Bugfix/10.3/500 downgrade java version from 17 to 11 in user auditor …
mjabascal10 Feb 26, 2024
f76df1e
Fix agent workflow (#504)
Kbayero Feb 27, 2024
55bc5b6
Bugfix/agent/workf (#506)
Kbayero Feb 27, 2024
4a94dd1
Updating version.yml to 10.3.0 (#507)
c3s4rfred Feb 27, 2024
c77f143
Restore agent workflow (#508)
Kbayero Feb 27, 2024
20a11db
Merge branch 'rc'
c3s4rfred Feb 27, 2024
32adc61
Fix email alerts after migrating to opensearch on dev (#516)
c3s4rfred Feb 28, 2024
fc1a758
Updating macos integration guide on DEV (#520)
c3s4rfred Feb 28, 2024
9f36ef8
Updating azure guide on dev (#525)
c3s4rfred Mar 1, 2024
99fe838
Fixed Select dropdown body positioned behind other form elements (#52…
mjabascal10 Mar 1, 2024
d12d7aa
Merge branch 'rc' into main
c3s4rfred Mar 1, 2024
33719a1
Merge branch 'main' of https://github.com/utmstack/UTMStack into bugf…
mjabascal10 Mar 2, 2024
ba1b6a7
Merge branch 'rc' of https://github.com/utmstack/UTMStack into bugfix…
mjabascal10 Mar 4, 2024
68e9778
Fixed Login takes to long to load (#457)
mjabascal10 Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<h6 class="font-weight-semibold">Unable to connect with the server</h6>
</div>
</div>
<div class="offline" *ngIf="!hideOnline">
<div class="offline" *ngIf="offline !== null && !offline">
<div
class="w-100 p-4 bg-success-400 d-flex justify-content-center align-items-center">
<h6 class="font-weight-semibold">Successfully Established Connection with the Server</h6>
Expand Down
68 changes: 29 additions & 39 deletions frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import {Component, HostListener, OnInit, Renderer2} from '@angular/core';
import {NavigationEnd, Router} from '@angular/router';
import {Router} from '@angular/router';
import {TranslateService} from '@ngx-translate/core';
import {NgxSpinnerService} from 'ngx-spinner';
import {UtmToastService} from './shared/alert/utm-toast.service';
import {DashboardBehavior} from './shared/behaviors/dashboard.behavior';
import {filter} from 'rxjs/operators';
import {ApiServiceCheckerService} from './core/auth/api-checker-service';
import {MenuBehavior} from './shared/behaviors/menu.behavior';
import {ThemeChangeBehavior} from './shared/behaviors/theme-change.behavior';
import {ADMIN_ROLE, USER_ROLE} from './shared/constants/global.constant';
import {AppThemeLocationEnum} from './shared/enums/app-theme-location.enum';
import {UtmAppThemeService} from './shared/services/theme/utm-app-theme.service';
import {retry} from "rxjs/operators";
import {ApiServiceCheckerService} from "./core/auth/api-checker-service";
import {TimezoneFormatService} from "./shared/services/utm-timezone.service";
import {TimezoneFormatService} from './shared/services/utm-timezone.service';

@Component({
selector: 'app-root',
Expand All @@ -23,23 +20,21 @@ export class AppComponent implements OnInit {
roles = [ADMIN_ROLE, USER_ROLE];
menu = false;
private height: string;
offline = false;
hideOnline = true;
offline = null;
iframeView = false;
favIcon: HTMLLinkElement;

constructor(
private spinner: NgxSpinnerService,
private translate: TranslateService,
private menuBehavior: MenuBehavior,
private dashboardBehavior: DashboardBehavior,
private themeChangeBehavior: ThemeChangeBehavior,
private utmAppThemeService: UtmAppThemeService,
private utmToastService: UtmToastService,
private router: Router, private renderer: Renderer2,
private apiServiceCheckerService: ApiServiceCheckerService,
private timezoneFormatService: TimezoneFormatService) {

this.translate.setDefaultLang('en');

this.menuBehavior.$menu.subscribe(men => {
this.menu = men;
});
Expand All @@ -59,39 +54,27 @@ export class AppComponent implements OnInit {
this.iframeView = true;
}
});
this.apiServiceCheckerService.checkApiAvailability();
}

ngOnInit(): void {
this.favIcon = document.querySelector('#appFavicon');
this.apiServiceCheckerService.isOnlineApi$.subscribe(result => {
if (result) {
this.offline = false;
this.timezoneFormatService.loadTimezoneAndFormat();
this.getReportLogo();
if (this.router.url === '/') {
this.hideOnline = false;
}
setTimeout(() => {
this.hideOnline = true;
}, 3000);
} else if (result != null && !result && !this.offline) {
this.offline = true;
}
});
this.router.events.subscribe(evt => {
if (evt instanceof NavigationEnd && evt.url.endsWith('dashboard')) {
}
});
this.init();

this.themeChangeBehavior.$themeChange.subscribe(value => {
if (value) {
this.getReportLogo();
}
});
/**
* Sync fields of index patterns every 5 min
*/

this.apiServiceCheckerService.isOnlineApi$
.pipe(
filter(isOnline => isOnline))
.subscribe(isOnline => {
if (this.offline) {
this.init();
}
setTimeout(() => this.offline = null, 3000);
});
}

@HostListener('window', ['$event'])
Expand All @@ -101,9 +84,9 @@ export class AppComponent implements OnInit {

getReportLogo() {
this.utmAppThemeService.getTheme({page: 0, size: 100})
.pipe(retry(5))
.subscribe(response => {
for (const img of response.body) {
this.offline = false;
for (const img of response.body) {
switch (img.shortName) {
case AppThemeLocationEnum.LOGIN:
this.favIcon.href = img.userImg;
Expand All @@ -120,14 +103,21 @@ export class AppComponent implements OnInit {
break;
}
}
this.apiServiceCheckerService.setOnlineStatus(true);
}, error => {
this.offline = true;
});
this.offline = true;
this.apiServiceCheckerService.checkApiAvailability();
});
}

isInExportRoute() {
return this.router.url.includes('dashboard/export/') || this.router.url.includes('dashboard/export-compliance') ||
this.router.url.includes('/getting-started') ||
this.router.url.includes('/dashboard/export-report/') || this.iframeView || this.router.url.includes('/data/alert/detail/');
}

init() {
this.timezoneFormatService.loadTimezoneAndFormat();
this.getReportLogo();
}
}
23 changes: 7 additions & 16 deletions frontend/src/app/core/auth/api-checker-service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {BehaviorSubject, interval, Observable, of, Subject, throwError} from 'rxjs';
import {catchError, delay, first, switchMap, takeUntil, takeWhile, tap} from 'rxjs/operators';
import {SERVER_API_URL} from "../../app.constants";
import {BehaviorSubject, interval, Observable, Subject} from 'rxjs';
import {first, takeUntil} from 'rxjs/operators';
import {SERVER_API_URL} from '../../app.constants';

@Injectable({
providedIn: 'root'
Expand Down Expand Up @@ -38,17 +38,8 @@ export class ApiServiceCheckerService {
);
});
}
}

/*return this.http.get(this.resourceUrl).pipe(
catchError(() => {
return of(false);
}),
switchMap((result: any) => {
if (result != null) {
return of(true);
}
}),
takeWhile((isAvailable: any) => isAvailable != null)
);
}*/
setOnlineStatus(status: boolean) {
this.isOnline.next(status);
}
}
11 changes: 3 additions & 8 deletions frontend/src/app/shared/components/auth/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {DomSanitizer} from '@angular/platform-browser';
import {ActivatedRoute, Router} from '@angular/router';
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
import {NgxSpinnerService} from 'ngx-spinner';
import {Observable} from "rxjs";
import {Observable} from 'rxjs';
import {AccountService} from '../../../../core/auth/account.service';
import {ApiServiceCheckerService} from '../../../../core/auth/api-checker-service';
import {LoginService} from '../../../../core/login/login.service';
Expand All @@ -20,7 +20,7 @@ import {PasswordResetInitComponent} from '../password-reset/init/password-reset-
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit, AfterViewInit {
export class LoginComponent implements OnInit {
authenticationError: boolean;
password: string;
rememberMe: boolean;
Expand Down Expand Up @@ -53,15 +53,9 @@ export class LoginComponent implements OnInit, AfterViewInit {
this.loginImage$ = this.themeChangeBehavior.$themeIcon.asObservable();
}

ngAfterViewInit() {

}

ngOnInit() {

this.apiServiceCheckerService.isOnlineApi$.subscribe(result => {
if (result) {
this.loadingAuth = false;
this.activatedRoute.queryParams.subscribe(params => {
if (params.token) {
this.loginService.loginWithToken(params.token, true).then(() => {
Expand All @@ -80,6 +74,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
}
});
this.initForm();
this.loadingAuth = false;
}
});
}
Expand Down