Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lensapp/bored
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ec3831b3afd19c79ed01f12e96a6e8b72617de6e
Choose a base ref
..
head repository: lensapp/bored
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9df760b7d9fbbbfc2840f0f48112405cbbaf4e71
Choose a head ref
Showing with 226 additions and 69 deletions.
  1. +1 −1 .github/workflows/test.yml
  2. +2 −2 Dockerfile
  3. +1 −1 Dockerfile.dev
  4. +1 −1 package.json
  5. +3 −1 src/request-handlers/client-public-key.ts
  6. +218 −63 yarn.lock
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release
uses: actions/checkout@v2
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine as build
FROM node:18-alpine as build

RUN mkdir /app
WORKDIR /app
@@ -9,7 +9,7 @@ RUN apk add --update python3 gcc g++ make && \
yarn dist && \
yarn install --frozen-lockfile --prod

FROM node:16-alpine
FROM node:20-alpine

RUN mkdir /app \
&& addgroup -S bored && adduser -S bored -G bored
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

RUN mkdir /app
WORKDIR /app
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
},
"dependencies": {
"@sentry/node": "^6.15.0",
"bored-mplex": "^0.0.20",
"bored-mplex": "^0.1.3",
"jsonwebtoken": "^9.0.1",
"ws": "^7.5.6"
}
4 changes: 3 additions & 1 deletion src/request-handlers/client-public-key.ts
Original file line number Diff line number Diff line change
@@ -19,11 +19,13 @@ export function handleClientPublicKey(req: IncomingMessage, res: ServerResponse,

try {
const tokenData = verifyClientToken(authorization?.token, server);

clusterId = tokenData.clusterId;
} catch(error) {
res.writeHead(403);
res.end();

return;
}
}

Loading