2025-12-15 06:24:37 +00:00
|
|
|
# Base Go builder with Go lang installation
|
|
|
|
|
# This stage is used to build both Caddy and the webapp server,
|
|
|
|
|
# preventing vulnerable packages on the dependency chain
|
2026-02-19 07:18:50 +00:00
|
|
|
FROM alpine:3.23.3 AS go_builder
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN apk add --no-cache curl git openssh-client
|
|
|
|
|
|
2026-02-19 07:18:50 +00:00
|
|
|
ARG TARGETARCH
|
2026-03-24 11:04:36 +00:00
|
|
|
ENV GOLANG_VERSION=1.26.1
|
2026-02-19 07:18:50 +00:00
|
|
|
# Download Go tarball
|
|
|
|
|
RUN case "${TARGETARCH}" in amd64) GOARCH=amd64 ;; arm64) GOARCH=arm64 ;; *) echo "Unsupported arch: ${TARGETARCH}" && exit 1 ;; esac && \
|
|
|
|
|
curl -fsSL "https://go.dev/dl/go${GOLANG_VERSION}.linux-${GOARCH}.tar.gz" -o go.tar.gz
|
|
|
|
|
# Checksum verification of Go tarball
|
|
|
|
|
RUN case "${TARGETARCH}" in \
|
2026-03-24 11:04:36 +00:00
|
|
|
amd64) expected="031f088e5d955bab8657ede27ad4e3bc5b7c1ba281f05f245bcc304f327c987a" ;; \
|
|
|
|
|
arm64) expected="a290581cfe4fe28ddd737dde3095f3dbeb7f2e4065cab4eae44dfc53b760c2f7" ;; \
|
2026-02-19 07:18:50 +00:00
|
|
|
esac && \
|
|
|
|
|
actual=$(sha256sum go.tar.gz | cut -d' ' -f1) && \
|
|
|
|
|
[ "$actual" = "$expected" ] && \
|
|
|
|
|
echo "✅ Go Tarball Checksum OK" || \
|
|
|
|
|
(echo "❌ Go Tarball Checksum failed! Expected: ${expected} Got: ${actual}" && exit 1)
|
|
|
|
|
# Install Go from verified tarball
|
|
|
|
|
RUN tar -C /usr/local -xzf go.tar.gz && rm go.tar.gz
|
|
|
|
|
# Set up Go environment variables
|
|
|
|
|
ENV PATH="/usr/local/go/bin:${PATH}" \
|
|
|
|
|
GOPATH="/go" \
|
|
|
|
|
GOBIN="/go/bin"
|
|
|
|
|
|
2025-12-15 06:24:37 +00:00
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
2026-02-19 07:18:50 +00:00
|
|
|
# Build Caddy from the Go base
|
|
|
|
|
FROM go_builder AS caddy_builder
|
|
|
|
|
RUN mkdir -p /tmp/caddy-build && \
|
2026-03-24 11:04:36 +00:00
|
|
|
curl -L -o /tmp/caddy-build/src.tar.gz https://github.com/caddyserver/caddy/releases/download/v2.11.2/caddy_2.11.2_src.tar.gz
|
2025-01-29 17:31:46 +00:00
|
|
|
# Checksum verification of caddy source
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN expected="40cb9dc5e0b005bba635e830ba2354450248831fca3b58f5c49892a4747d0e76" && \
|
2025-07-28 10:23:25 +00:00
|
|
|
actual=$(sha256sum /tmp/caddy-build/src.tar.gz | cut -d' ' -f1) && \
|
|
|
|
|
[ "$actual" = "$expected" ] && \
|
|
|
|
|
echo "✅ Caddy Source Checksum OK" || \
|
|
|
|
|
(echo "❌ Caddy Source Checksum failed!" && exit 1)
|
2025-01-29 17:31:46 +00:00
|
|
|
WORKDIR /tmp/caddy-build
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN tar -xzf /tmp/caddy-build/src.tar.gz && \
|
|
|
|
|
# Fix CVE: upgrade google.golang.org/grpc to 1.79.3 (CVSS 9.1)
|
|
|
|
|
go get google.golang.org/grpc@v1.79.3 && \
|
|
|
|
|
# Fix CVE: upgrade github.com/smallstep/certificates to 0.30.0 (CVSS 10)
|
|
|
|
|
go get github.com/smallstep/certificates@v0.30.0 && \
|
2025-07-28 10:23:25 +00:00
|
|
|
# Clean up any existing vendor directory and regenerate with updated deps
|
|
|
|
|
rm -rf vendor && \
|
|
|
|
|
go mod tidy && \
|
|
|
|
|
go mod vendor
|
2025-01-29 17:31:46 +00:00
|
|
|
WORKDIR /tmp/caddy-build/cmd/caddy
|
|
|
|
|
RUN go build
|
|
|
|
|
|
2026-02-19 07:18:50 +00:00
|
|
|
|
|
|
|
|
|
2025-12-15 06:24:37 +00:00
|
|
|
# Build webapp server from the Go base
|
|
|
|
|
# This reuses the Go installation from go_builder, avoiding a separate image pull
|
|
|
|
|
# and significantly reducing build time (especially on ARM64 in CI)
|
|
|
|
|
FROM go_builder AS webapp_server_builder
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
COPY . .
|
|
|
|
|
WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web/webapp-server
|
|
|
|
|
RUN go mod download
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o webapp-server .
|
|
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
# Shared Node.js base with optimized NPM installation
|
2026-02-19 07:18:50 +00:00
|
|
|
FROM alpine:3.23.3 AS node_base
|
2025-10-22 13:18:20 +00:00
|
|
|
# Install dependencies
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN apk upgrade --no-cache && \
|
2026-03-27 13:56:26 +00:00
|
|
|
apk add --no-cache nodejs curl bash tini ca-certificates
|
2025-10-22 13:18:20 +00:00
|
|
|
# Set working directory for NPM installation
|
2025-12-12 11:28:35 +00:00
|
|
|
RUN mkdir -p /tmp/npm-install
|
2025-10-22 13:18:20 +00:00
|
|
|
WORKDIR /tmp/npm-install
|
|
|
|
|
# Download NPM tarball
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN curl -fsSL https://registry.npmjs.org/npm/-/npm-11.11.1.tgz -o npm.tgz
|
2025-10-22 13:18:20 +00:00
|
|
|
# Verify checksum
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN expected="a3b2dbeb2544809a75f186cbae27adc5ceb5adc1ee696e17dfed689d7f46fcf2" \
|
2025-10-22 13:18:20 +00:00
|
|
|
&& actual=$(sha256sum npm.tgz | cut -d' ' -f1) \
|
|
|
|
|
&& [ "$actual" = "$expected" ] \
|
|
|
|
|
&& echo "✅ NPM Tarball Checksum OK" \
|
|
|
|
|
|| (echo "❌ NPM Tarball Checksum failed!" && exit 1)
|
|
|
|
|
# Install NPM from verified tarball and global packages
|
|
|
|
|
RUN tar -xzf npm.tgz && \
|
|
|
|
|
cd package && \
|
2026-03-24 11:04:36 +00:00
|
|
|
node bin/npm-cli.js install -g npm@11.11.1 && \
|
2025-10-22 13:18:20 +00:00
|
|
|
cd / && \
|
2025-12-12 11:28:35 +00:00
|
|
|
rm -rf /tmp/npm-install
|
2026-03-24 11:04:36 +00:00
|
|
|
RUN npm install -g pnpm@10.32.1 @import-meta-env/cli@0.7.4
|
|
|
|
|
|
|
|
|
|
# Fix CVE-2025-64756 by replacing vulnerable glob in @import-meta-env/cli (ships glob@11.0.2, fix requires >=11.1.0)
|
|
|
|
|
RUN mkdir -p /tmp/glob-fix && \
|
|
|
|
|
cd /tmp/glob-fix && \
|
|
|
|
|
npm install glob@11.1.0 && \
|
2025-11-24 08:51:29 +00:00
|
|
|
rm -rf /usr/lib/node_modules/@import-meta-env/cli/node_modules/glob && \
|
2026-03-24 11:04:36 +00:00
|
|
|
cp -r node_modules/glob /usr/lib/node_modules/@import-meta-env/cli/node_modules/ && \
|
|
|
|
|
rm -rf /tmp/glob-fix
|
|
|
|
|
|
|
|
|
|
# Fix CVE: upgrade serialize-javascript in @import-meta-env/cli (ships 6.0.2, fix requires >=7.0.3)
|
|
|
|
|
RUN mkdir -p /tmp/serialize-fix && \
|
|
|
|
|
cd /tmp/serialize-fix && \
|
|
|
|
|
npm install serialize-javascript@7.0.3 && \
|
|
|
|
|
rm -rf /usr/lib/node_modules/@import-meta-env/cli/node_modules/serialize-javascript && \
|
|
|
|
|
cp -r node_modules/serialize-javascript /usr/lib/node_modules/@import-meta-env/cli/node_modules/ && \
|
|
|
|
|
rm -rf /tmp/serialize-fix
|
2026-02-19 07:18:50 +00:00
|
|
|
|
2026-03-27 13:56:26 +00:00
|
|
|
# Fix CVE: upgrade picomatch in npm and pnpm (ships 4.0.3, fix requires >=4.0.4)
|
|
|
|
|
RUN mkdir -p /tmp/picomatch-fix && \
|
|
|
|
|
cd /tmp/picomatch-fix && \
|
|
|
|
|
npm install picomatch@4.0.4 && \
|
|
|
|
|
rm -rf /usr/lib/node_modules/npm/node_modules/tinyglobby/node_modules/picomatch && \
|
|
|
|
|
cp -r node_modules/picomatch /usr/lib/node_modules/npm/node_modules/tinyglobby/node_modules/ && \
|
|
|
|
|
rm -rf /usr/lib/node_modules/pnpm/dist/node_modules/picomatch && \
|
|
|
|
|
cp -r node_modules/picomatch /usr/lib/node_modules/pnpm/dist/node_modules/ && \
|
|
|
|
|
rm -rf /tmp/picomatch-fix
|
|
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
2023-08-23 18:31:28 +00:00
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
FROM node_base AS base_builder
|
2024-04-19 20:24:34 +00:00
|
|
|
# Required by @hoppscotch/js-sandbox to build `isolated-vm`
|
2026-03-27 13:56:26 +00:00
|
|
|
RUN apk add --no-cache python3 make g++ git openssh-client zlib-dev brotli-dev c-ares-dev nghttp2-dev openssl-dev icu-dev ada-dev simdjson-dev simdutf-dev sqlite-dev zstd-dev
|
2024-04-19 20:24:34 +00:00
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
ENV HOPP_ALLOW_RUNTIME_ENV=true
|
2025-11-24 13:55:08 +00:00
|
|
|
ENV DATABASE_URL="postgresql://placeholder:placeholder@localhost:5432/placeholder"
|
2025-07-28 10:23:25 +00:00
|
|
|
|
2023-08-23 18:31:28 +00:00
|
|
|
COPY pnpm-lock.yaml .
|
|
|
|
|
RUN pnpm fetch
|
|
|
|
|
|
|
|
|
|
COPY . .
|
feat: platform independent core and the new desktop app (#4684)
* feat(desktop): init
* feat(desktop): external app download and setup
* feat(desktop): offload app load to plugin system
* perf(desktop): add rdbms facade and caching layer
* feat: parallelize signing, shared trust, lru cache
* feat: webapp encoder + compressor + hasher server
* feat(desktop): app autoupdate with hashed loader
* feat(kernel): init `hoppscotch-kernel`
* feat(kernel): `io`
* feat(kernel): `network`
* feat(kernel): `network` - native interceptor
* feat(kernel): `network` - interceptor - rest
* feat(kernel): `network` - interceptor - graphql
* feat(kernel): `network` - interceptor - capabilities
* feat(kernel): `network` - interceptor - `FormData`
* feat(kernel): `network` - interceptor - `oauth2.0`
* feat(kernel): `store`
* feat(desktop): dragging, traffic light, plugin workspaces
* feat(kernel|wip): `store`
* feat(kernel): `network` - capabilities - with active
* feat(kernel|wip): `network` - interceptor - `proxy`
* feat(kernel|wip): `network` - relay ext
* feat(kernel): `network` - interceptor - `proxy`
* feat(kernel): `network` - interceptor - decoding
* feat(kernel): `network` - interceptor - Kernel Err
* feat(kernel): `network` - flow transformation
* feat(kernel): `network` - request status
* fix(desktop): repositioning traffic lights on fullscreen exit
* feat(kernel): `network` - interceptor - `agent`
* feat(kernel): `store` - track updates
* feat(kernel): `network` - interceptor - extension
* feat(kernel): `network` - updates as overrides
* feat(interceptor): pre-process request encoding
* fix(ui): mismatched extension button size/position
* feat(kernel): `network` - interceptor - `browser`
* feat(native): common certs componsable
* fix(kernel): interceptor selection store and json parse
* feat(kernel): `network` - consistent multipart encoding
* feat(kernel): `network` - interceptor - `OAuth2.0`
* feat(kernel): `network` - interceptor - cookie support
* feat(agent): registration list, log-sink, relay
* feat(kernel): `network` - interceptor subtitles
* feat(kernel): `store` - persist network settings
* fix(agent): encrypted ser/de certificate requests
* feat(kernel): `kernelInterceptor` spotlight service
* fix(kernel): gql introspection edge-case schema
* ref: conditionals for migrated components
* feat(kernel): `localaccess` capability via relay
* feat(kernel): `network` - explicit types and lint
* feat(kernel): `store` - isolate host and platform
* feat(kernel): `store` - persistence service
* fix(infra): whitelisted origins, non-std engines
* feat(desktop): impl deep-link callbacks
* feat(kernel): `auth`
* feat(kernel): `io` - event listeners
* feat(kernel): platform migration
* fix: dep `vue` import on Win 11
Fixes `error TS2305: Module '"vue"' has no exported member
'VueConstructor'.` arising from `splitpane` dependency.
* fix(webapp-server): platform independent res paths
* feat(desktop): auth and emit via embedded server
* feat(platform): host, csp and bundle compatibility
- Bundle name format for using as host
- Windows UI handler HWND casting and version detection
- CSP headers type handling in URI protocol
- Protocol whitelist in env config
* feat(desktop|wip): login flow with `auth-tokens`
feat(desktop|wip): typesafe auth
* feat(backend): `auth` token flow, gql/websocket
feat(desktop): working auth for gql
feat: gql client with refresh token
* feat(backend): `auth` token flow, authorization bearer
* fix(gen): qualifier clash when invalidating cache
* feat(common): coordinated initialization service
* fix(desktop): appload persistence in data json
* feat(desktop|wip): desktop icons and updater
* fix: typos in readme docs
* fix: docker ignore copying on windows
* fix: update `.lock` file after rebase
* fix: `persistenceService` setup in tests
* fix: remove old console logs
* fix: console error on invalid schema
Show console error if default value is used when loading invalid data from
local storage
* fix(test): `PersistenceService` methods
* fix(test): `PersistenceService` rest tab state
* fix(test): `PersistenceService` gql tab state
* fix(test): `PersistenceService` global env
* fix(test): `PersistenceService` mqtt request
* fix(test): `PersistenceService` sse request
* fix(test): `PersistenceService` socketio request
* fix(test): `PersistenceService` websocket request
* fix(test): `PersistenceService` secret environment
* fix(test): `PersistenceService` selected env
* fix(test): `PersistenceService` collections
* fix(test): `PersistenceService` environments
* fix(test): `PersistenceService` history
* fix(test): `PersistenceService` settings
* fix(test): `PersistenceService` migrations
* fix(test): `InspectionService` request inspector
* feat(desktop): button to clear bundle/key cache
This is useful when there are partial updates to the web app or bundle gen server
which haven't been correctly propagated when the app bundle was downloaded.
If the user were to change the self host instance without updating the
desktop app; which is possible albeit rarely under very certain circumstances,
desktop app will refuse to load the bundle, this is because the desktop app
cannot differentiate between partial updates vs incorrect bundle being hosted
since both will fail verification.
The button lets the user decide what should be the appropriate action,
clear the bundle and trust the hosted app
or make sure the app is built and hosted correctly.
* fix(desktop): enforce one version per instance
This was part of a leftover scaffolding from development.
* fix(desktop): bundle url not stored after download
* fix(desktop): stalling progress on updates
* fix(backend): helper to parse cookie into kv-pairs
* feat(desktop): launch session on working endpoints
* fix(common): preserve `auth` structure and default
* fix: loading native networking with kernel mode
* fix: fallback for unhandled response error
* fix: `urlencoded` content request processing
* feat: `interceptor` - error mapping for `browser`
* fix: backwards compatibility for `digest` auth
* fix: platform check for `initializationService`
* fix: `interceptor` - analytics `strategy` resolution
* fix: `interceptor` - check for `cookies` component
* fix: enable digest auth support for `native`
* test: `interceptor` - kernel interceptor
* fix(relay): `grantType` casing for OAuth2.0
* test(wip): kernel transformers
* fix(relay): auth headers discarding others
* fix(desktop): http version deserialization
* fix(common): `grantType` extractor, auth processor
* fix: `PersistenceService` - parsing edge cases
* fix(infra): post rebase fixup
* fix(web): component structure and lint
* fix(desktop): cohesive splash opener, scroll url section
* fix: explicit auto auth and docs on url auth
* fix(relay): special chars failing proxy auth
* fix: finer cert control setting option
* fix: post-rebase fixup
* feat(appload): ability to vendor pre-built bytes
* fix: avoid copying over `target` dir in containers
* fix: auth key missing in capability set
* fix(desktop): relax `refresh_token` requirement
This is to support Firebase token
* fix(desktop): normalization for Windows WebView
* feat(desktop): instance switcher and vendored app
* fix(desktop): merge artifacts and conflicts
* feat(desktop): instance switcher improvements
* fix: derive instance name from normalized name
* fix: pkg links, lints and UI edge cases
* feat(desktop): restore window state after relaunch
* fix(desktop): distinguish header for cloud/default
* fix: instance switcher in web mode
* fix: close dropdown on new instance modal
* fix: whitelist vendored app origin
* feat(desktop): platform parity - `collections`
* fix: history entries population desync
* fix(desktop): check for history storage status
* fix(desktop): safe parse `globalEnv`
* feat(desktop): platform parity - `environment`
* fix: use settings store for proxy url
* fix: lint, unused imports
* fix: proxy input enabled for other interceptors
* feat: reverse proxy for desktop app server
* fix: duplicate entries after connecting to sh
* fix: specify instance org qualified
* fix: remove debugging logs
* feat(desktop): enable `devtools` in release builds
* fix(desktop): prepend protocol validation edgecase
* feat(desktop): clear cache on removing instance
* fix: better response toast message
* fix: avoid reverse proxy for webapp server
* fix(desktop): ignore subpath in instance name
* feat: switcher ui/ux improvements
* feat: more switcher ui/ux improvements
* feat(server): specify bundle version at build time
* fix(desktop): missing migration as rebase artifact
* fix: minor switcher ui/ux improvement
* fix: rebase artifacts
* fix: consolidated toast on success
* fix: missing i18n strings
* fix(desktop): handle drag and drop fe side
* feat: confirmation modal on instance removal
* chore: minor UI update
* chore: minor UI changes
* fix: gql connection partial refactor
* fix: resolve merge artifacts
* chore: prod lint
* feat(desktop): better desktop app update ux
* fix: broken gql connection.ts
---------
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2025-02-27 18:31:25 +00:00
|
|
|
RUN pnpm install -f --prefer-offline
|
2023-08-23 18:31:28 +00:00
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
2023-08-23 18:31:28 +00:00
|
|
|
|
2024-08-08 06:01:13 +00:00
|
|
|
FROM base_builder AS backend_builder
|
2023-08-23 18:31:28 +00:00
|
|
|
WORKDIR /usr/src/app/packages/hoppscotch-backend
|
2025-11-24 13:55:08 +00:00
|
|
|
ENV DATABASE_URL="postgresql://placeholder:placeholder@localhost:5432/placeholder"
|
2023-08-23 18:31:28 +00:00
|
|
|
RUN pnpm exec prisma generate
|
|
|
|
|
RUN pnpm run build
|
2025-02-07 09:15:06 +00:00
|
|
|
RUN pnpm --filter=hoppscotch-backend deploy /dist/backend --prod --legacy
|
2024-08-08 06:01:13 +00:00
|
|
|
WORKDIR /dist/backend
|
|
|
|
|
RUN pnpm exec prisma generate
|
|
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
FROM node_base AS backend
|
2025-01-29 17:31:46 +00:00
|
|
|
# Install caddy
|
|
|
|
|
COPY --from=caddy_builder /tmp/caddy-build/cmd/caddy/caddy /usr/bin/caddy
|
2024-08-08 06:01:13 +00:00
|
|
|
COPY --from=base_builder /usr/src/app/packages/hoppscotch-backend/backend.Caddyfile /etc/caddy/backend.Caddyfile
|
2024-08-21 13:37:53 +00:00
|
|
|
COPY --from=backend_builder /dist/backend /dist/backend
|
|
|
|
|
COPY --from=base_builder /usr/src/app/packages/hoppscotch-backend/prod_run.mjs /dist/backend
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2023-08-25 15:33:00 +00:00
|
|
|
# Remove the env file to avoid backend copying it in and using it
|
2023-08-23 18:31:28 +00:00
|
|
|
ENV PRODUCTION="true"
|
2023-11-22 14:05:35 +00:00
|
|
|
ENV PORT=8080
|
2024-08-08 06:01:13 +00:00
|
|
|
|
|
|
|
|
WORKDIR /dist/backend
|
|
|
|
|
|
|
|
|
|
CMD ["node", "prod_run.mjs"]
|
2023-11-22 14:05:35 +00:00
|
|
|
EXPOSE 80
|
2023-08-23 18:31:28 +00:00
|
|
|
EXPOSE 3170
|
|
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
|
2024-08-08 06:01:13 +00:00
|
|
|
FROM base_builder AS fe_builder
|
2023-08-23 18:31:28 +00:00
|
|
|
WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web
|
|
|
|
|
RUN pnpm run generate
|
|
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
FROM node_base AS app
|
2025-01-29 17:31:46 +00:00
|
|
|
# Install caddy
|
|
|
|
|
COPY --from=caddy_builder /tmp/caddy-build/cmd/caddy/caddy /usr/bin/caddy
|
|
|
|
|
|
2025-03-06 10:32:42 +00:00
|
|
|
# Copy over webapp server bin
|
2025-12-15 06:24:37 +00:00
|
|
|
COPY --from=webapp_server_builder /usr/src/app/packages/hoppscotch-selfhost-web/webapp-server/webapp-server /usr/local/bin/
|
2025-03-06 10:32:42 +00:00
|
|
|
|
2024-08-21 13:37:53 +00:00
|
|
|
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/prod_run.mjs /site/prod_run.mjs
|
|
|
|
|
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/selfhost-web.Caddyfile /etc/caddy/selfhost-web.Caddyfile
|
|
|
|
|
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/dist/ /site/selfhost-web
|
2024-08-08 06:01:13 +00:00
|
|
|
|
|
|
|
|
WORKDIR /site
|
2025-03-06 10:32:42 +00:00
|
|
|
# Run both webapp-server and Caddy after env processing (NOTE: env processing is required by both)
|
|
|
|
|
CMD ["/bin/sh", "-c", "node /site/prod_run.mjs && (webapp-server & caddy run --config /etc/caddy/selfhost-web.Caddyfile --adapter caddyfile)"]
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
EXPOSE 80
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
EXPOSE 3200
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-08 06:01:13 +00:00
|
|
|
FROM base_builder AS sh_admin_builder
|
2023-08-23 18:31:28 +00:00
|
|
|
WORKDIR /usr/src/app/packages/hoppscotch-sh-admin
|
2023-11-22 14:05:35 +00:00
|
|
|
# Generate two builds for `sh-admin`, one based on subpath-access and the regular build
|
|
|
|
|
RUN pnpm run build --outDir dist-multiport-setup
|
|
|
|
|
RUN pnpm run build --outDir dist-subpath-access --base /admin/
|
2023-08-23 18:31:28 +00:00
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
FROM node_base AS sh_admin
|
2025-01-29 17:31:46 +00:00
|
|
|
# Install caddy
|
|
|
|
|
COPY --from=caddy_builder /tmp/caddy-build/cmd/caddy/caddy /usr/bin/caddy
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2024-08-21 13:37:53 +00:00
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/prod_run.mjs /site/prod_run.mjs
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/sh-admin-multiport-setup.Caddyfile /etc/caddy/sh-admin-multiport-setup.Caddyfile
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/sh-admin-subpath-access.Caddyfile /etc/caddy/sh-admin-subpath-access.Caddyfile
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/dist-multiport-setup /site/sh-admin-multiport-setup
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/dist-subpath-access /site/sh-admin-subpath-access
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
WORKDIR /site
|
|
|
|
|
CMD ["node","/site/prod_run.mjs"]
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2023-11-22 14:05:35 +00:00
|
|
|
EXPOSE 80
|
|
|
|
|
EXPOSE 3100
|
2023-08-23 18:31:28 +00:00
|
|
|
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
|
2025-07-28 10:23:25 +00:00
|
|
|
FROM node_base AS aio
|
2025-01-29 17:31:46 +00:00
|
|
|
|
|
|
|
|
# Caddy install
|
|
|
|
|
COPY --from=caddy_builder /tmp/caddy-build/cmd/caddy/caddy /usr/bin/caddy
|
2024-08-08 06:01:13 +00:00
|
|
|
|
|
|
|
|
ENV PRODUCTION="true"
|
|
|
|
|
ENV PORT=8080
|
|
|
|
|
|
2024-08-29 08:34:00 +00:00
|
|
|
# Open Containers Initiative (OCI) labels - useful for bots like Renovate
|
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/hoppscotch/hoppscotch" \
|
|
|
|
|
org.opencontainers.image.url="https://docs.hoppscotch.io" \
|
|
|
|
|
org.opencontainers.image.licenses="MIT"
|
|
|
|
|
|
2024-08-08 06:01:13 +00:00
|
|
|
# Copy necessary files
|
|
|
|
|
# Backend files
|
2024-08-21 13:37:53 +00:00
|
|
|
COPY --from=base_builder /usr/src/app/packages/hoppscotch-backend/backend.Caddyfile /etc/caddy/backend.Caddyfile
|
|
|
|
|
COPY --from=backend_builder /dist/backend /dist/backend
|
|
|
|
|
COPY --from=base_builder /usr/src/app/packages/hoppscotch-backend/prod_run.mjs /dist/backend
|
2024-08-08 06:01:13 +00:00
|
|
|
|
feat: platform independent core and the new desktop app (#4684)
* feat(desktop): init
* feat(desktop): external app download and setup
* feat(desktop): offload app load to plugin system
* perf(desktop): add rdbms facade and caching layer
* feat: parallelize signing, shared trust, lru cache
* feat: webapp encoder + compressor + hasher server
* feat(desktop): app autoupdate with hashed loader
* feat(kernel): init `hoppscotch-kernel`
* feat(kernel): `io`
* feat(kernel): `network`
* feat(kernel): `network` - native interceptor
* feat(kernel): `network` - interceptor - rest
* feat(kernel): `network` - interceptor - graphql
* feat(kernel): `network` - interceptor - capabilities
* feat(kernel): `network` - interceptor - `FormData`
* feat(kernel): `network` - interceptor - `oauth2.0`
* feat(kernel): `store`
* feat(desktop): dragging, traffic light, plugin workspaces
* feat(kernel|wip): `store`
* feat(kernel): `network` - capabilities - with active
* feat(kernel|wip): `network` - interceptor - `proxy`
* feat(kernel|wip): `network` - relay ext
* feat(kernel): `network` - interceptor - `proxy`
* feat(kernel): `network` - interceptor - decoding
* feat(kernel): `network` - interceptor - Kernel Err
* feat(kernel): `network` - flow transformation
* feat(kernel): `network` - request status
* fix(desktop): repositioning traffic lights on fullscreen exit
* feat(kernel): `network` - interceptor - `agent`
* feat(kernel): `store` - track updates
* feat(kernel): `network` - interceptor - extension
* feat(kernel): `network` - updates as overrides
* feat(interceptor): pre-process request encoding
* fix(ui): mismatched extension button size/position
* feat(kernel): `network` - interceptor - `browser`
* feat(native): common certs componsable
* fix(kernel): interceptor selection store and json parse
* feat(kernel): `network` - consistent multipart encoding
* feat(kernel): `network` - interceptor - `OAuth2.0`
* feat(kernel): `network` - interceptor - cookie support
* feat(agent): registration list, log-sink, relay
* feat(kernel): `network` - interceptor subtitles
* feat(kernel): `store` - persist network settings
* fix(agent): encrypted ser/de certificate requests
* feat(kernel): `kernelInterceptor` spotlight service
* fix(kernel): gql introspection edge-case schema
* ref: conditionals for migrated components
* feat(kernel): `localaccess` capability via relay
* feat(kernel): `network` - explicit types and lint
* feat(kernel): `store` - isolate host and platform
* feat(kernel): `store` - persistence service
* fix(infra): whitelisted origins, non-std engines
* feat(desktop): impl deep-link callbacks
* feat(kernel): `auth`
* feat(kernel): `io` - event listeners
* feat(kernel): platform migration
* fix: dep `vue` import on Win 11
Fixes `error TS2305: Module '"vue"' has no exported member
'VueConstructor'.` arising from `splitpane` dependency.
* fix(webapp-server): platform independent res paths
* feat(desktop): auth and emit via embedded server
* feat(platform): host, csp and bundle compatibility
- Bundle name format for using as host
- Windows UI handler HWND casting and version detection
- CSP headers type handling in URI protocol
- Protocol whitelist in env config
* feat(desktop|wip): login flow with `auth-tokens`
feat(desktop|wip): typesafe auth
* feat(backend): `auth` token flow, gql/websocket
feat(desktop): working auth for gql
feat: gql client with refresh token
* feat(backend): `auth` token flow, authorization bearer
* fix(gen): qualifier clash when invalidating cache
* feat(common): coordinated initialization service
* fix(desktop): appload persistence in data json
* feat(desktop|wip): desktop icons and updater
* fix: typos in readme docs
* fix: docker ignore copying on windows
* fix: update `.lock` file after rebase
* fix: `persistenceService` setup in tests
* fix: remove old console logs
* fix: console error on invalid schema
Show console error if default value is used when loading invalid data from
local storage
* fix(test): `PersistenceService` methods
* fix(test): `PersistenceService` rest tab state
* fix(test): `PersistenceService` gql tab state
* fix(test): `PersistenceService` global env
* fix(test): `PersistenceService` mqtt request
* fix(test): `PersistenceService` sse request
* fix(test): `PersistenceService` socketio request
* fix(test): `PersistenceService` websocket request
* fix(test): `PersistenceService` secret environment
* fix(test): `PersistenceService` selected env
* fix(test): `PersistenceService` collections
* fix(test): `PersistenceService` environments
* fix(test): `PersistenceService` history
* fix(test): `PersistenceService` settings
* fix(test): `PersistenceService` migrations
* fix(test): `InspectionService` request inspector
* feat(desktop): button to clear bundle/key cache
This is useful when there are partial updates to the web app or bundle gen server
which haven't been correctly propagated when the app bundle was downloaded.
If the user were to change the self host instance without updating the
desktop app; which is possible albeit rarely under very certain circumstances,
desktop app will refuse to load the bundle, this is because the desktop app
cannot differentiate between partial updates vs incorrect bundle being hosted
since both will fail verification.
The button lets the user decide what should be the appropriate action,
clear the bundle and trust the hosted app
or make sure the app is built and hosted correctly.
* fix(desktop): enforce one version per instance
This was part of a leftover scaffolding from development.
* fix(desktop): bundle url not stored after download
* fix(desktop): stalling progress on updates
* fix(backend): helper to parse cookie into kv-pairs
* feat(desktop): launch session on working endpoints
* fix(common): preserve `auth` structure and default
* fix: loading native networking with kernel mode
* fix: fallback for unhandled response error
* fix: `urlencoded` content request processing
* feat: `interceptor` - error mapping for `browser`
* fix: backwards compatibility for `digest` auth
* fix: platform check for `initializationService`
* fix: `interceptor` - analytics `strategy` resolution
* fix: `interceptor` - check for `cookies` component
* fix: enable digest auth support for `native`
* test: `interceptor` - kernel interceptor
* fix(relay): `grantType` casing for OAuth2.0
* test(wip): kernel transformers
* fix(relay): auth headers discarding others
* fix(desktop): http version deserialization
* fix(common): `grantType` extractor, auth processor
* fix: `PersistenceService` - parsing edge cases
* fix(infra): post rebase fixup
* fix(web): component structure and lint
* fix(desktop): cohesive splash opener, scroll url section
* fix: explicit auto auth and docs on url auth
* fix(relay): special chars failing proxy auth
* fix: finer cert control setting option
* fix: post-rebase fixup
* feat(appload): ability to vendor pre-built bytes
* fix: avoid copying over `target` dir in containers
* fix: auth key missing in capability set
* fix(desktop): relax `refresh_token` requirement
This is to support Firebase token
* fix(desktop): normalization for Windows WebView
* feat(desktop): instance switcher and vendored app
* fix(desktop): merge artifacts and conflicts
* feat(desktop): instance switcher improvements
* fix: derive instance name from normalized name
* fix: pkg links, lints and UI edge cases
* feat(desktop): restore window state after relaunch
* fix(desktop): distinguish header for cloud/default
* fix: instance switcher in web mode
* fix: close dropdown on new instance modal
* fix: whitelist vendored app origin
* feat(desktop): platform parity - `collections`
* fix: history entries population desync
* fix(desktop): check for history storage status
* fix(desktop): safe parse `globalEnv`
* feat(desktop): platform parity - `environment`
* fix: use settings store for proxy url
* fix: lint, unused imports
* fix: proxy input enabled for other interceptors
* feat: reverse proxy for desktop app server
* fix: duplicate entries after connecting to sh
* fix: specify instance org qualified
* fix: remove debugging logs
* feat(desktop): enable `devtools` in release builds
* fix(desktop): prepend protocol validation edgecase
* feat(desktop): clear cache on removing instance
* fix: better response toast message
* fix: avoid reverse proxy for webapp server
* fix(desktop): ignore subpath in instance name
* feat: switcher ui/ux improvements
* feat: more switcher ui/ux improvements
* feat(server): specify bundle version at build time
* fix(desktop): missing migration as rebase artifact
* fix: minor switcher ui/ux improvement
* fix: rebase artifacts
* fix: consolidated toast on success
* fix: missing i18n strings
* fix(desktop): handle drag and drop fe side
* feat: confirmation modal on instance removal
* chore: minor UI update
* chore: minor UI changes
* fix: gql connection partial refactor
* fix: resolve merge artifacts
* chore: prod lint
* feat(desktop): better desktop app update ux
* fix: broken gql connection.ts
---------
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2025-02-27 18:31:25 +00:00
|
|
|
# Static Server
|
2025-12-15 06:24:37 +00:00
|
|
|
COPY --from=webapp_server_builder /usr/src/app/packages/hoppscotch-selfhost-web/webapp-server/webapp-server /usr/local/bin/
|
feat: platform independent core and the new desktop app (#4684)
* feat(desktop): init
* feat(desktop): external app download and setup
* feat(desktop): offload app load to plugin system
* perf(desktop): add rdbms facade and caching layer
* feat: parallelize signing, shared trust, lru cache
* feat: webapp encoder + compressor + hasher server
* feat(desktop): app autoupdate with hashed loader
* feat(kernel): init `hoppscotch-kernel`
* feat(kernel): `io`
* feat(kernel): `network`
* feat(kernel): `network` - native interceptor
* feat(kernel): `network` - interceptor - rest
* feat(kernel): `network` - interceptor - graphql
* feat(kernel): `network` - interceptor - capabilities
* feat(kernel): `network` - interceptor - `FormData`
* feat(kernel): `network` - interceptor - `oauth2.0`
* feat(kernel): `store`
* feat(desktop): dragging, traffic light, plugin workspaces
* feat(kernel|wip): `store`
* feat(kernel): `network` - capabilities - with active
* feat(kernel|wip): `network` - interceptor - `proxy`
* feat(kernel|wip): `network` - relay ext
* feat(kernel): `network` - interceptor - `proxy`
* feat(kernel): `network` - interceptor - decoding
* feat(kernel): `network` - interceptor - Kernel Err
* feat(kernel): `network` - flow transformation
* feat(kernel): `network` - request status
* fix(desktop): repositioning traffic lights on fullscreen exit
* feat(kernel): `network` - interceptor - `agent`
* feat(kernel): `store` - track updates
* feat(kernel): `network` - interceptor - extension
* feat(kernel): `network` - updates as overrides
* feat(interceptor): pre-process request encoding
* fix(ui): mismatched extension button size/position
* feat(kernel): `network` - interceptor - `browser`
* feat(native): common certs componsable
* fix(kernel): interceptor selection store and json parse
* feat(kernel): `network` - consistent multipart encoding
* feat(kernel): `network` - interceptor - `OAuth2.0`
* feat(kernel): `network` - interceptor - cookie support
* feat(agent): registration list, log-sink, relay
* feat(kernel): `network` - interceptor subtitles
* feat(kernel): `store` - persist network settings
* fix(agent): encrypted ser/de certificate requests
* feat(kernel): `kernelInterceptor` spotlight service
* fix(kernel): gql introspection edge-case schema
* ref: conditionals for migrated components
* feat(kernel): `localaccess` capability via relay
* feat(kernel): `network` - explicit types and lint
* feat(kernel): `store` - isolate host and platform
* feat(kernel): `store` - persistence service
* fix(infra): whitelisted origins, non-std engines
* feat(desktop): impl deep-link callbacks
* feat(kernel): `auth`
* feat(kernel): `io` - event listeners
* feat(kernel): platform migration
* fix: dep `vue` import on Win 11
Fixes `error TS2305: Module '"vue"' has no exported member
'VueConstructor'.` arising from `splitpane` dependency.
* fix(webapp-server): platform independent res paths
* feat(desktop): auth and emit via embedded server
* feat(platform): host, csp and bundle compatibility
- Bundle name format for using as host
- Windows UI handler HWND casting and version detection
- CSP headers type handling in URI protocol
- Protocol whitelist in env config
* feat(desktop|wip): login flow with `auth-tokens`
feat(desktop|wip): typesafe auth
* feat(backend): `auth` token flow, gql/websocket
feat(desktop): working auth for gql
feat: gql client with refresh token
* feat(backend): `auth` token flow, authorization bearer
* fix(gen): qualifier clash when invalidating cache
* feat(common): coordinated initialization service
* fix(desktop): appload persistence in data json
* feat(desktop|wip): desktop icons and updater
* fix: typos in readme docs
* fix: docker ignore copying on windows
* fix: update `.lock` file after rebase
* fix: `persistenceService` setup in tests
* fix: remove old console logs
* fix: console error on invalid schema
Show console error if default value is used when loading invalid data from
local storage
* fix(test): `PersistenceService` methods
* fix(test): `PersistenceService` rest tab state
* fix(test): `PersistenceService` gql tab state
* fix(test): `PersistenceService` global env
* fix(test): `PersistenceService` mqtt request
* fix(test): `PersistenceService` sse request
* fix(test): `PersistenceService` socketio request
* fix(test): `PersistenceService` websocket request
* fix(test): `PersistenceService` secret environment
* fix(test): `PersistenceService` selected env
* fix(test): `PersistenceService` collections
* fix(test): `PersistenceService` environments
* fix(test): `PersistenceService` history
* fix(test): `PersistenceService` settings
* fix(test): `PersistenceService` migrations
* fix(test): `InspectionService` request inspector
* feat(desktop): button to clear bundle/key cache
This is useful when there are partial updates to the web app or bundle gen server
which haven't been correctly propagated when the app bundle was downloaded.
If the user were to change the self host instance without updating the
desktop app; which is possible albeit rarely under very certain circumstances,
desktop app will refuse to load the bundle, this is because the desktop app
cannot differentiate between partial updates vs incorrect bundle being hosted
since both will fail verification.
The button lets the user decide what should be the appropriate action,
clear the bundle and trust the hosted app
or make sure the app is built and hosted correctly.
* fix(desktop): enforce one version per instance
This was part of a leftover scaffolding from development.
* fix(desktop): bundle url not stored after download
* fix(desktop): stalling progress on updates
* fix(backend): helper to parse cookie into kv-pairs
* feat(desktop): launch session on working endpoints
* fix(common): preserve `auth` structure and default
* fix: loading native networking with kernel mode
* fix: fallback for unhandled response error
* fix: `urlencoded` content request processing
* feat: `interceptor` - error mapping for `browser`
* fix: backwards compatibility for `digest` auth
* fix: platform check for `initializationService`
* fix: `interceptor` - analytics `strategy` resolution
* fix: `interceptor` - check for `cookies` component
* fix: enable digest auth support for `native`
* test: `interceptor` - kernel interceptor
* fix(relay): `grantType` casing for OAuth2.0
* test(wip): kernel transformers
* fix(relay): auth headers discarding others
* fix(desktop): http version deserialization
* fix(common): `grantType` extractor, auth processor
* fix: `PersistenceService` - parsing edge cases
* fix(infra): post rebase fixup
* fix(web): component structure and lint
* fix(desktop): cohesive splash opener, scroll url section
* fix: explicit auto auth and docs on url auth
* fix(relay): special chars failing proxy auth
* fix: finer cert control setting option
* fix: post-rebase fixup
* feat(appload): ability to vendor pre-built bytes
* fix: avoid copying over `target` dir in containers
* fix: auth key missing in capability set
* fix(desktop): relax `refresh_token` requirement
This is to support Firebase token
* fix(desktop): normalization for Windows WebView
* feat(desktop): instance switcher and vendored app
* fix(desktop): merge artifacts and conflicts
* feat(desktop): instance switcher improvements
* fix: derive instance name from normalized name
* fix: pkg links, lints and UI edge cases
* feat(desktop): restore window state after relaunch
* fix(desktop): distinguish header for cloud/default
* fix: instance switcher in web mode
* fix: close dropdown on new instance modal
* fix: whitelist vendored app origin
* feat(desktop): platform parity - `collections`
* fix: history entries population desync
* fix(desktop): check for history storage status
* fix(desktop): safe parse `globalEnv`
* feat(desktop): platform parity - `environment`
* fix: use settings store for proxy url
* fix: lint, unused imports
* fix: proxy input enabled for other interceptors
* feat: reverse proxy for desktop app server
* fix: duplicate entries after connecting to sh
* fix: specify instance org qualified
* fix: remove debugging logs
* feat(desktop): enable `devtools` in release builds
* fix(desktop): prepend protocol validation edgecase
* feat(desktop): clear cache on removing instance
* fix: better response toast message
* fix: avoid reverse proxy for webapp server
* fix(desktop): ignore subpath in instance name
* feat: switcher ui/ux improvements
* feat: more switcher ui/ux improvements
* feat(server): specify bundle version at build time
* fix(desktop): missing migration as rebase artifact
* fix: minor switcher ui/ux improvement
* fix: rebase artifacts
* fix: consolidated toast on success
* fix: missing i18n strings
* fix(desktop): handle drag and drop fe side
* feat: confirmation modal on instance removal
* chore: minor UI update
* chore: minor UI changes
* fix: gql connection partial refactor
* fix: resolve merge artifacts
* chore: prod lint
* feat(desktop): better desktop app update ux
* fix: broken gql connection.ts
---------
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2025-02-27 18:31:25 +00:00
|
|
|
RUN mkdir -p /site/selfhost-web
|
|
|
|
|
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/dist /site/selfhost-web
|
|
|
|
|
|
2024-08-08 06:01:13 +00:00
|
|
|
# FE Files
|
2024-08-21 13:37:53 +00:00
|
|
|
COPY --from=base_builder /usr/src/app/aio_run.mjs /usr/src/app/aio_run.mjs
|
|
|
|
|
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/dist /site/selfhost-web
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/dist-multiport-setup /site/sh-admin-multiport-setup
|
|
|
|
|
COPY --from=sh_admin_builder /usr/src/app/packages/hoppscotch-sh-admin/dist-subpath-access /site/sh-admin-subpath-access
|
2023-11-22 14:05:35 +00:00
|
|
|
COPY aio-multiport-setup.Caddyfile /etc/caddy/aio-multiport-setup.Caddyfile
|
|
|
|
|
COPY aio-subpath-access.Caddyfile /etc/caddy/aio-subpath-access.Caddyfile
|
2024-08-08 06:01:13 +00:00
|
|
|
|
2023-08-23 18:31:28 +00:00
|
|
|
ENTRYPOINT [ "tini", "--" ]
|
2024-08-29 08:23:59 +00:00
|
|
|
COPY --chmod=755 healthcheck.sh /
|
2025-10-21 13:39:39 +00:00
|
|
|
HEALTHCHECK --interval=2s --start-period=15s CMD /bin/sh /healthcheck.sh
|
2024-08-08 06:01:13 +00:00
|
|
|
|
|
|
|
|
WORKDIR /dist/backend
|
2023-08-23 18:31:28 +00:00
|
|
|
CMD ["node", "/usr/src/app/aio_run.mjs"]
|
2024-10-28 18:35:52 +00:00
|
|
|
|
|
|
|
|
# NOTE: Although these ports are exposed, the HOPP_ALTERNATE_AIO_PORT variable can be used to assign a user-specified port
|
2023-08-23 18:31:28 +00:00
|
|
|
EXPOSE 3170
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
EXPOSE 3100
|
feat: platform independent core and the new desktop app (#4684)
* feat(desktop): init
* feat(desktop): external app download and setup
* feat(desktop): offload app load to plugin system
* perf(desktop): add rdbms facade and caching layer
* feat: parallelize signing, shared trust, lru cache
* feat: webapp encoder + compressor + hasher server
* feat(desktop): app autoupdate with hashed loader
* feat(kernel): init `hoppscotch-kernel`
* feat(kernel): `io`
* feat(kernel): `network`
* feat(kernel): `network` - native interceptor
* feat(kernel): `network` - interceptor - rest
* feat(kernel): `network` - interceptor - graphql
* feat(kernel): `network` - interceptor - capabilities
* feat(kernel): `network` - interceptor - `FormData`
* feat(kernel): `network` - interceptor - `oauth2.0`
* feat(kernel): `store`
* feat(desktop): dragging, traffic light, plugin workspaces
* feat(kernel|wip): `store`
* feat(kernel): `network` - capabilities - with active
* feat(kernel|wip): `network` - interceptor - `proxy`
* feat(kernel|wip): `network` - relay ext
* feat(kernel): `network` - interceptor - `proxy`
* feat(kernel): `network` - interceptor - decoding
* feat(kernel): `network` - interceptor - Kernel Err
* feat(kernel): `network` - flow transformation
* feat(kernel): `network` - request status
* fix(desktop): repositioning traffic lights on fullscreen exit
* feat(kernel): `network` - interceptor - `agent`
* feat(kernel): `store` - track updates
* feat(kernel): `network` - interceptor - extension
* feat(kernel): `network` - updates as overrides
* feat(interceptor): pre-process request encoding
* fix(ui): mismatched extension button size/position
* feat(kernel): `network` - interceptor - `browser`
* feat(native): common certs componsable
* fix(kernel): interceptor selection store and json parse
* feat(kernel): `network` - consistent multipart encoding
* feat(kernel): `network` - interceptor - `OAuth2.0`
* feat(kernel): `network` - interceptor - cookie support
* feat(agent): registration list, log-sink, relay
* feat(kernel): `network` - interceptor subtitles
* feat(kernel): `store` - persist network settings
* fix(agent): encrypted ser/de certificate requests
* feat(kernel): `kernelInterceptor` spotlight service
* fix(kernel): gql introspection edge-case schema
* ref: conditionals for migrated components
* feat(kernel): `localaccess` capability via relay
* feat(kernel): `network` - explicit types and lint
* feat(kernel): `store` - isolate host and platform
* feat(kernel): `store` - persistence service
* fix(infra): whitelisted origins, non-std engines
* feat(desktop): impl deep-link callbacks
* feat(kernel): `auth`
* feat(kernel): `io` - event listeners
* feat(kernel): platform migration
* fix: dep `vue` import on Win 11
Fixes `error TS2305: Module '"vue"' has no exported member
'VueConstructor'.` arising from `splitpane` dependency.
* fix(webapp-server): platform independent res paths
* feat(desktop): auth and emit via embedded server
* feat(platform): host, csp and bundle compatibility
- Bundle name format for using as host
- Windows UI handler HWND casting and version detection
- CSP headers type handling in URI protocol
- Protocol whitelist in env config
* feat(desktop|wip): login flow with `auth-tokens`
feat(desktop|wip): typesafe auth
* feat(backend): `auth` token flow, gql/websocket
feat(desktop): working auth for gql
feat: gql client with refresh token
* feat(backend): `auth` token flow, authorization bearer
* fix(gen): qualifier clash when invalidating cache
* feat(common): coordinated initialization service
* fix(desktop): appload persistence in data json
* feat(desktop|wip): desktop icons and updater
* fix: typos in readme docs
* fix: docker ignore copying on windows
* fix: update `.lock` file after rebase
* fix: `persistenceService` setup in tests
* fix: remove old console logs
* fix: console error on invalid schema
Show console error if default value is used when loading invalid data from
local storage
* fix(test): `PersistenceService` methods
* fix(test): `PersistenceService` rest tab state
* fix(test): `PersistenceService` gql tab state
* fix(test): `PersistenceService` global env
* fix(test): `PersistenceService` mqtt request
* fix(test): `PersistenceService` sse request
* fix(test): `PersistenceService` socketio request
* fix(test): `PersistenceService` websocket request
* fix(test): `PersistenceService` secret environment
* fix(test): `PersistenceService` selected env
* fix(test): `PersistenceService` collections
* fix(test): `PersistenceService` environments
* fix(test): `PersistenceService` history
* fix(test): `PersistenceService` settings
* fix(test): `PersistenceService` migrations
* fix(test): `InspectionService` request inspector
* feat(desktop): button to clear bundle/key cache
This is useful when there are partial updates to the web app or bundle gen server
which haven't been correctly propagated when the app bundle was downloaded.
If the user were to change the self host instance without updating the
desktop app; which is possible albeit rarely under very certain circumstances,
desktop app will refuse to load the bundle, this is because the desktop app
cannot differentiate between partial updates vs incorrect bundle being hosted
since both will fail verification.
The button lets the user decide what should be the appropriate action,
clear the bundle and trust the hosted app
or make sure the app is built and hosted correctly.
* fix(desktop): enforce one version per instance
This was part of a leftover scaffolding from development.
* fix(desktop): bundle url not stored after download
* fix(desktop): stalling progress on updates
* fix(backend): helper to parse cookie into kv-pairs
* feat(desktop): launch session on working endpoints
* fix(common): preserve `auth` structure and default
* fix: loading native networking with kernel mode
* fix: fallback for unhandled response error
* fix: `urlencoded` content request processing
* feat: `interceptor` - error mapping for `browser`
* fix: backwards compatibility for `digest` auth
* fix: platform check for `initializationService`
* fix: `interceptor` - analytics `strategy` resolution
* fix: `interceptor` - check for `cookies` component
* fix: enable digest auth support for `native`
* test: `interceptor` - kernel interceptor
* fix(relay): `grantType` casing for OAuth2.0
* test(wip): kernel transformers
* fix(relay): auth headers discarding others
* fix(desktop): http version deserialization
* fix(common): `grantType` extractor, auth processor
* fix: `PersistenceService` - parsing edge cases
* fix(infra): post rebase fixup
* fix(web): component structure and lint
* fix(desktop): cohesive splash opener, scroll url section
* fix: explicit auto auth and docs on url auth
* fix(relay): special chars failing proxy auth
* fix: finer cert control setting option
* fix: post-rebase fixup
* feat(appload): ability to vendor pre-built bytes
* fix: avoid copying over `target` dir in containers
* fix: auth key missing in capability set
* fix(desktop): relax `refresh_token` requirement
This is to support Firebase token
* fix(desktop): normalization for Windows WebView
* feat(desktop): instance switcher and vendored app
* fix(desktop): merge artifacts and conflicts
* feat(desktop): instance switcher improvements
* fix: derive instance name from normalized name
* fix: pkg links, lints and UI edge cases
* feat(desktop): restore window state after relaunch
* fix(desktop): distinguish header for cloud/default
* fix: instance switcher in web mode
* fix: close dropdown on new instance modal
* fix: whitelist vendored app origin
* feat(desktop): platform parity - `collections`
* fix: history entries population desync
* fix(desktop): check for history storage status
* fix(desktop): safe parse `globalEnv`
* feat(desktop): platform parity - `environment`
* fix: use settings store for proxy url
* fix: lint, unused imports
* fix: proxy input enabled for other interceptors
* feat: reverse proxy for desktop app server
* fix: duplicate entries after connecting to sh
* fix: specify instance org qualified
* fix: remove debugging logs
* feat(desktop): enable `devtools` in release builds
* fix(desktop): prepend protocol validation edgecase
* feat(desktop): clear cache on removing instance
* fix: better response toast message
* fix: avoid reverse proxy for webapp server
* fix(desktop): ignore subpath in instance name
* feat: switcher ui/ux improvements
* feat: more switcher ui/ux improvements
* feat(server): specify bundle version at build time
* fix(desktop): missing migration as rebase artifact
* fix: minor switcher ui/ux improvement
* fix: rebase artifacts
* fix: consolidated toast on success
* fix: missing i18n strings
* fix(desktop): handle drag and drop fe side
* feat: confirmation modal on instance removal
* chore: minor UI update
* chore: minor UI changes
* fix: gql connection partial refactor
* fix: resolve merge artifacts
* chore: prod lint
* feat(desktop): better desktop app update ux
* fix: broken gql connection.ts
---------
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2025-02-27 18:31:25 +00:00
|
|
|
EXPOSE 3200
|
2023-11-22 14:05:35 +00:00
|
|
|
EXPOSE 80
|