Skip to content

Commit

Permalink
fix(build-security): do not expose hostname to build framents (#7491)
Browse files Browse the repository at this point in the history
Refs #7446
  • Loading branch information
char0n authored Sep 10, 2021
1 parent 5029b81 commit fdef4ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -21,7 +21,6 @@ export default function SwaggerUI(opts) {
gitRevision: GIT_COMMIT,
gitDirty: GIT_DIRTY,
buildTimestamp: BUILD_TIME,
machine: HOSTNAME
}

const defaults = {
Expand Down
1 change: 0 additions & 1 deletion webpack/_config-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}),
}),
Expand Down

0 comments on commit fdef4ea

Please sign in to comment.