Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@
"archiver": "^5.3.1",
"async": "^3.2.6",
"aws4": "^1.13.2",
"axios": "^1.8.2",
"axios": "^1.8.3",
"base64-js": "^1.3.1",
"bitmap-sdf": "^1.0.3",
"blurhash": "^2.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class ApmClient {
auth,
baseURL,
timeout,
allowAbsoluteUrls: false,
});

this.logger = logger || console;
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-ci-stats-reporter/src/ci_stats_reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export class CiStatsReporter {
method: 'POST',
url: path,
baseURL: BASE_URL,
allowAbsoluteUrls: false,
headers,
data: body,
params: query,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ it('captures a list of failed test issue, loads the bodies for each issue, and o
"calls": Array [
Array [
Object {
"allowAbsoluteUrls": false,
"baseURL": "https://ci-stats.kibana.dev",
"data": Object {
"failures": Array [
Expand All @@ -117,6 +118,7 @@ it('captures a list of failed test issue, loads the bodies for each issue, and o
],
Array [
Object {
"allowAbsoluteUrls": false,
"baseURL": "https://ci-stats.kibana.dev",
"data": Object {
"failures": Array [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class ExistingFailedTestIssues {
const resp = await Axios.request<FindFailedTestIssuesResponse>({
method: 'POST',
baseURL: BASE_URL,
allowAbsoluteUrls: false,
url: '/v1/find_failed_test_issues',
data: {
failures: failures.map((f) => ({
Expand Down
1 change: 1 addition & 0 deletions src/dev/prs/github_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class GithubApi {
constructor(private accessToken?: string) {
this.api = axios.create({
baseURL: 'https://api.github.com/',
allowAbsoluteUrls: false,
headers: {
Accept: 'application/vnd.github.v3+json',
'User-Agent': 'kibana/update_prs_cli',
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/actions/server/lib/axios_utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ describe('request', () => {
defaults: {
...axios.defaults,
baseURL: 'https://here-we-go.com',
allowAbsoluteUrls: false,
},
} as unknown as AxiosInstance,
url: '/test',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function initDiagnosticsBundle({

const kibanaClientOpts = {
baseURL: kbHost ?? parsedCloudId.kibanaHost,
allowAbsoluteUrls: false,
auth,
headers: {
'kbn-xsrf': 'true',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function callKibana<T>({
const { data } = await axios.request({
...options,
baseURL: baseUrl,
allowAbsoluteUrls: false,
auth: { username, password },
headers: { ...DEFAULT_HEADERS, ...options.headers },
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export async function callKibana<T>({
const { data } = await axios.request({
...options,
baseURL: baseUrl,
allowAbsoluteUrls: false,
auth: { username, password },
headers: { 'kbn-xsrf': 'true', ...options.headers },
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export async function callKibana<T>({
const { data } = await axios.request({
...options,
baseURL: baseUrl,
allowAbsoluteUrls: false,
auth: { username, password },
headers: { 'kbn-xsrf': 'true', ...options.headers },
});
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/common/services/spaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function SpacesServiceProvider({ getService }: FtrProviderContext) {
'kbn-xsrf': 'x-pack/ftr/services/spaces/space',
},
baseURL: url,
allowAbsoluteUrls: false,
maxRedirects: 0,
validateStatus: () => true, // we do our own validation below and throw better error messages
httpsAgent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export async function callKibana<T>({
const { data } = await axios.request({
...options,
baseURL: baseUrl,
allowAbsoluteUrls: false,
auth: { username, password },
headers: { 'kbn-xsrf': 'true', ...options.headers },
});
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/ui_capabilities/common/services/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class FeaturesService {
this.axios = axios.create({
headers: { 'kbn-xsrf': 'x-pack/ftr/services/features' },
baseURL: url,
allowAbsoluteUrls: false,
maxRedirects: 0,
validateStatus: () => true, // we'll handle our own statusCodes and throw informative errors
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class UICapabilitiesService {
this.axios = axios.create({
headers: { 'kbn-xsrf': 'x-pack/ftr/services/ui_capabilities' },
baseURL: url,
allowAbsoluteUrls: false,
maxRedirects: 0,
validateStatus: () => true, // we'll handle our own statusCodes and throw informative errors
});
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13219,10 +13219,10 @@ axe-core@^4.2.0, axe-core@^4.6.2:
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.2.tgz#040a7342b20765cb18bb50b628394c21bccc17a0"
integrity sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==

axios@^1.0.0, axios@^1.6.0, axios@^1.6.2, axios@^1.7.4, axios@^1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.2.tgz#fabe06e241dfe83071d4edfbcaa7b1c3a40f7979"
integrity sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==
axios@^1.0.0, axios@^1.6.0, axios@^1.6.2, axios@^1.7.4, axios@^1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.3.tgz#9ebccd71c98651d547162a018a1a95a4b4ed4de8"
integrity sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==
dependencies:
follow-redirects "^1.15.6"
form-data "^4.0.0"
Expand Down