Skip to content

Commit 2c2abcb

Browse files
authored
0.82.3: security updates (#358)
1 parent 71a4ccb commit 2c2abcb

File tree

5 files changed

+1582
-1840
lines changed

5 files changed

+1582
-1840
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,21 @@ jobs:
2626
steps:
2727

2828
- name: Checkout
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
30+
31+
- name: Enable Corepack
32+
run: corepack enable
33+
34+
- name: Prepare Yarn 4
35+
run: corepack prepare yarn@4.0.2 --activate
36+
37+
- name: Verify Yarn version
38+
run: yarn -v
39+
40+
- name: Set up Node.js with Corepack
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 22 # Or another supported version
3044

3145
- name: Set up Docker Buildx
3246
uses: docker/setup-buildx-action@v1

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

Dockerfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM node:18-bookworm-slim AS build
1+
# Stage 1: Install dependencies
2+
FROM node:22-slim AS build
23

34
LABEL maintainer="OpenZiti <openziti@netfoundry.io>"
45

56
# Install useful tools
67
RUN apt-get update
7-
RUN apt-get install -y python3 build-essential
8+
RUN apt-get install -y python3 build-essential curl
89

910
# Create directory for the Ziti BrowZer Bootstrapper, and explicitly set the owner of that new directory to the node user
1011
RUN mkdir /home/node/ziti-browzer-bootstrapper
@@ -14,28 +15,31 @@ WORKDIR /home/node/ziti-browzer-bootstrapper
1415
COPY --chown=node:node package.json ./
1516
COPY --chown=node:node yarn.lock ./
1617

17-
# Install the dependencies for the Ziti BrowZer Bootstrapper according to yarn.lock (ci) without
18-
# devDepdendencies (--production), then uninstall npm which isn't needed.
19-
RUN yarn install \
20-
&& npm cache clean --force --loglevel=error
18+
# Install Yarn 4 globally
19+
RUN corepack enable && corepack prepare yarn@4.0.2 --activate && yarn config set nodeLinker node-modules
2120

2221
# Bring in the source of the Ziti BrowZer Bootstrapper to the working folder
2322
COPY --chown=node:node index.js .
2423
COPY --chown=node:node zha-docker-entrypoint .
2524
COPY --chown=node:node lib ./lib/
2625
COPY --chown=node:node assets ./assets/
2726

28-
FROM node:18-bookworm-slim
27+
# Install dependencies (ensuring node_modules remains)
28+
RUN yarn install
2929

30-
RUN apt-get update && apt-get install curl -y
30+
RUN ls -l
3131

32+
# Stage 2: Production-ready image
33+
FROM node:22-slim
34+
35+
WORKDIR /home/node/ziti-browzer-bootstrapper
36+
37+
# Copy installed node_modules from build stage
3238
COPY --from=build /home/node/ziti-browzer-bootstrapper /home/node/ziti-browzer-bootstrapper
3339

3440
RUN chown -R node:node /home/node/ziti-browzer-bootstrapper
3541
USER node
3642

37-
WORKDIR /home/node/ziti-browzer-bootstrapper
38-
3943
# Expose the Ziti BrowZer Bootstrapper for traffic to be proxied (8000) and the
4044
# REST API where it can be configured (8001)
4145
EXPOSE 8000

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ziti-browzer-bootstrapper",
3-
"version": "0.82.2",
3+
"version": "0.82.3",
44
"compatibleControllerVersion": ">=0.27.9",
55
"description": "Ziti BrowZer Bootstrapper -- providing Ziti network access into Dark web server",
66
"main": "index.js",
@@ -20,8 +20,8 @@
2020
"license": "Apache-2.0",
2121
"dependencies": {
2222
"@openziti/ziti-browzer-edge-client": "^0.6.2",
23-
"@openziti/ziti-browzer-runtime": "^0.98.0",
24-
"@openziti/ziti-browzer-sw": "^0.75.0",
23+
"@openziti/ziti-browzer-runtime": "^0.101.0",
24+
"@openziti/ziti-browzer-sw": "^0.78.0",
2525
"acme-http-01-standalone": "^3.0.5",
2626
"ajv": "^8.17.1",
2727
"ajv-formats": "^3.0.1",
@@ -65,7 +65,7 @@
6565
"serve-favicon": "^2.5.0",
6666
"trumpet": "^1.7.2",
6767
"urlon": "^3.1.0",
68-
"uuid": "^9.0.1",
68+
"uuid": "^11.1.0",
6969
"vhost": "^3.0.2",
7070
"winston": "~3.13.0"
7171
},
@@ -79,5 +79,6 @@
7979
"semver": "^7.3.7",
8080
"sse": "0.0.8",
8181
"xmlhttprequest-ssl": ">=1.6.2"
82-
}
82+
},
83+
"packageManager": "yarn@4.0.2+sha512.4e502bea682e7d8004561f916f1da2dfbe6f718024f6aa50bf8cd86f38ea3a94a7f1bf854a9ca666dd8eafcfb8d44baaa91bf5c7876e79a7aeac952c332f0e88"
8384
}

0 commit comments

Comments
 (0)