Repository navigation
Bump axios to 1.18.1 - #1771
Merged
Merged
Bump axios to 1.18.1#1771
Conversation
Align the platform with OpenSearch Dashboards 3.8.0+ and the 4.14.x line. Remove the unused wait-on dependency and raise the follow-redirects and form-data resolutions to the versions axios 1.18.1 requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
This was referenced Nov 17, 2026
yenienserrano
marked this pull request as ready for review
November 17, 2026 19:12
7 tasks
Member
|
Approve: axios resolves to a single Tested Requirements
Follow-up (not blocking)
Before / after
Checks
|
rodrigofez
approved these changes
Nov 17, 2026
rodrigofez
left a comment
Member
There was a problem hiding this comment.
Approve: axios resolves to a single 1.18.1 copy, and the branding check, the Server API client and CTI registration still work. Details: #1771 (comment)
Ripdiegozz
approved these changes
Nov 18, 2026
Ripdiegozz
left a comment
There was a problem hiding this comment.
Approve: one axios 1.18.1 copy, and the branding check, the Server API client and the CTI registration work from the UI. Details: #1771 (comment)
asteriscos
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.











Description
The
5.0.0platform still resolvesaxiosto1.13.5, inherited from its OpenSearch Dashboards 3.6.0 base. Upstream OpenSearch Dashboards 3.8.0/3.9.0 and our4.14.13line already shipaxios1.18.1. This PR aligns5.0.0with them, following the same dependency-only path upstream took (opensearch-project#11721, opensearch-project#11863, opensearch-project#12159, opensearch-project#12432).The Wazuh plugins that use
axioson the server without declaring it (wazuh-core,wazuh-check-updates) resolve it from the platform'snode_modules, so they pick up the new version too.Closes #1770
Proposed Changes
axiosfrom^1.13.3to^1.18.1inpackages/osd-dev-utilsandpackages/osd-ui-shared-deps.wait-onroot dependency (also removed upstream in chore(deps): upgrade axios from 1.15.2 to 1.17.0 opensearch-project/OpenSearch-Dashboards#12159). It pulled its ownaxioscopy plusjoi,@sideway/address, andrxjs@7into the lockfile.**/follow-redirectsand**/form-dataresolutions to^1.16.0and^4.0.6. The previous resolutions (^1.15.4and^4.0.4) kept them at1.15.11and4.0.4, which are below the versionsaxios1.18.1 requires (^1.16.0and^4.0.5). The new versions match OSD 3.9.0 and4.14.13.axios1.18.1,follow-redirects1.16.0, andform-data4.0.6, the same versions upstream ships, rather than the newest releases (axios1.21.1 andfollow-redirects1.16.3 are less than two weeks old).chromedriver'saxios@^1.6.5range into the same entry, so the lockfile resolves a singleaxioscopy.src/core/server/rendering/rendering_service.tsx, branding URL validation) uses the stableaxios.getAPI withhttpsAgent,adapter: 'http', andmaxRedirects: 0.Results and Evidence
Resolved lockfile entries:
Lockfile is consistent and a single
axioscopy is installed:Runtime smoke test of the Node HTTP adapter (the platform's branding URL validation uses
maxRedirects: 0):Unit tests of the areas that use
axios(src/core/server/rendering,packages/osd-dev-utilsosd_client/ci_stats_reporter/axios,src/dev/build/lib):yarn typecheck:SUCCESS: No TypeScript errors detected!Artifacts Affected
node_modules/axios,node_modules/follow-redirects, andnode_modules/form-dataare updated.Configuration Changes
None.
Documentation Updates
None.
Tests Introduced
None. This is a dependency bump with no source changes; the existing tests that cover
axiosusage pass.Review Checklist
no-changelog)wazuh-coreServer API client and thewazuh-check-updatesCTI registration against a built package🤖 Generated with Claude Code