Skip to content

Commit 6fa0a13

Browse files
TosttiasteriscosDesvelaoguidomodarelliopensearch-trigger-bot[bot]
authored
Merge 4.10.2 into 4.11.0 (#176)
* Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Ian Yenien Serrano <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: yenienserrano <[email protected]> * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Ian Yenien Serrano <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: yenienserrano <[email protected]> * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * Bump revision to 07 (#147) * Bump version 4.10.1 (#157) * chore(bump): 4.10.1 rev 01 (#165) * Bump version to 4.10.2-00 (#169) * Replace the SAML default embedded route redirects with a new default route redirect. (#171) * Saml url default path changes to wz-home * Added pretier * Resolve test * Repair tests --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Ian Yenien Serrano <[email protected]> Co-authored-by: yenienserrano <[email protected]> Co-authored-by: JuanGarriuz <[email protected]>
1 parent f174b37 commit 6fa0a13

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

server/auth/types/saml/routes.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class SamlAuthRoutes {
7171
if (request.auth.isAuthenticated) {
7272
return response.redirected({
7373
headers: {
74-
location: `${this.coreSetup.http.basePath.serverBasePath}/app/opensearch-dashboards`,
74+
location: `${this.coreSetup.http.basePath.serverBasePath}/app/wz-home`,
7575
},
7676
});
7777
}
@@ -118,8 +118,7 @@ export class SamlAuthRoutes {
118118
if (cookie) {
119119
requestId = cookie.saml?.requestId || '';
120120
nextUrl =
121-
cookie.saml?.nextUrl ||
122-
`${this.coreSetup.http.basePath.serverBasePath}/app/opensearch-dashboards`;
121+
cookie.saml?.nextUrl || `${this.coreSetup.http.basePath.serverBasePath}/app/wz-home`;
123122
redirectHash = cookie.saml?.redirectHash || false;
124123
}
125124
if (!requestId) {
@@ -251,7 +250,7 @@ export class SamlAuthRoutes {
251250
this.sessionStorageFactory.asScoped(request).set(cookie);
252251
return response.redirected({
253252
headers: {
254-
location: `${this.coreSetup.http.basePath.serverBasePath}/app/opensearch-dashboards`,
253+
location: `${this.coreSetup.http.basePath.serverBasePath}/app/wz-home`,
255254
},
256255
});
257256
} catch (error) {

server/auth/types/saml/saml_auth.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ export class SamlAuthentication extends AuthenticationType {
6060

6161
private generateNextUrl(request: OpenSearchDashboardsRequest): string {
6262
let path =
63-
this.coreSetup.http.basePath.serverBasePath +
64-
(request.url.pathname || '/app/opensearch-dashboards');
63+
this.coreSetup.http.basePath.serverBasePath + (request.url.pathname || '/app/wz-home');
6564
if (request.url.search) {
6665
path += request.url.search;
6766
}

test/cypress/e2e/saml/saml_auth_test.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ before(() => {
2929

3030
// Avoid Cypress lock onto the ipv4 range, so fake `visit()` before `request()`.
3131
// See: https://github.com/cypress-io/cypress/issues/25397#issuecomment-1402556488
32-
cy.visit(`http://localhost:5601${basePath}`);
32+
cy.visit(`http://localhost:7000${basePath}`);
3333

3434
cy.createRoleMapping(ALL_ACCESS_ROLE, samlUserRoleMapping);
3535
cy.clearCookies();
@@ -50,11 +50,11 @@ describe('Log in via SAML', () => {
5050
}
5151
};
5252

53-
it('Login to app/opensearch_dashboards_overview#/ when SAML is enabled', () => {
53+
it('Login to app/wz-home_overview#/ when SAML is enabled', () => {
5454
localStorage.setItem('opendistro::security::tenant::saved', '"__user__"');
5555
localStorage.setItem('home:newThemeModal:show', 'false');
5656

57-
cy.visit(`http://localhost:5601${basePath}/app/opensearch_dashboards_overview`, {
57+
cy.visit(`http://localhost:7000${basePath}/app/wz-home_overview`, {
5858
failOnStatusCode: false,
5959
});
6060

@@ -68,7 +68,7 @@ describe('Log in via SAML', () => {
6868
localStorage.setItem('opendistro::security::tenant::saved', '"__user__"');
6969
localStorage.setItem('home:newThemeModal:show', 'false');
7070

71-
cy.visit(`http://localhost:5601${basePath}/app/dev_tools#/console`, {
71+
cy.visit(`http://localhost:7000${basePath}/app/dev_tools#/console`, {
7272
failOnStatusCode: false,
7373
});
7474

@@ -82,7 +82,7 @@ describe('Log in via SAML', () => {
8282
localStorage.setItem('opendistro::security::tenant::saved', '"__user__"');
8383
localStorage.setItem('home:newThemeModal:show', 'false');
8484

85-
const urlWithHash = `http://localhost:5601${basePath}/app/security-dashboards-plugin#/getstarted`;
85+
const urlWithHash = `http://localhost:7000${basePath}/app/security-dashboards-plugin#/getstarted`;
8686

8787
cy.visit(urlWithHash, {
8888
failOnStatusCode: false,
@@ -97,7 +97,7 @@ describe('Log in via SAML', () => {
9797
it('Tenancy persisted after logout in SAML', () => {
9898
localStorage.setItem('home:newThemeModal:show', 'false');
9999

100-
cy.visit(`http://localhost:5601${basePath}/app/opensearch_dashboards_overview`, {
100+
cy.visit(`http://localhost:7000${basePath}/app/wz-home_overview`, {
101101
failOnStatusCode: false,
102102
});
103103

@@ -133,7 +133,7 @@ describe('Log in via SAML', () => {
133133
// We need to explicitly clear cookies,
134134
// since the Shorten URL api is return's set-cookie header for admin user.
135135
cy.clearCookies().then(() => {
136-
const gotoUrl = `http://localhost:5601${basePath}/goto/${response.urlId}?security_tenant=global`;
136+
const gotoUrl = `http://localhost:7000${basePath}/goto/${response.urlId}?security_tenant=global`;
137137
cy.visit(gotoUrl);
138138
samlLogin();
139139
cy.getCookie('security_authentication').should('exist');

0 commit comments

Comments
 (0)