From fdef4ead7a28b3b0aeb42ee544bf68578664a6fa Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Fri, 10 Sep 2021 13:29:42 +0300 Subject: [PATCH] fix(build-security): do not expose hostname to build framents (#7491) Refs #7446 --- src/core/index.js | 3 +-- webpack/_config-builder.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/index.js b/src/core/index.js index e5f68527..5ec35133 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -11,7 +11,7 @@ if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") { } // eslint-disable-next-line no-undef -const { GIT_DIRTY, GIT_COMMIT, PACKAGE_VERSION, HOSTNAME, BUILD_TIME } = buildInfo +const { GIT_DIRTY, GIT_COMMIT, PACKAGE_VERSION, BUILD_TIME } = buildInfo export default function SwaggerUI(opts) { @@ -21,7 +21,6 @@ export default function SwaggerUI(opts) { gitRevision: GIT_COMMIT, gitDirty: GIT_DIRTY, buildTimestamp: BUILD_TIME, - machine: HOSTNAME } const defaults = { diff --git a/webpack/_config-builder.js b/webpack/_config-builder.js index cb56ae5f..ec971b64 100644 --- a/webpack/_config-builder.js +++ b/webpack/_config-builder.js @@ -69,7 +69,6 @@ export default function buildConfig( PACKAGE_VERSION: pkg.version, GIT_COMMIT: gitInfo.hash, GIT_DIRTY: gitInfo.dirty, - HOSTNAME: os.hostname(), BUILD_TIME: new Date().toUTCString(), }), }),