diff --git a/.dockerignore b/.dockerignore
index ebd86a220..4b242c5bd 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -41,6 +41,8 @@ apps/email/client/build
apps/desktop/resources
apps/cli/.cli-payload
.dev-secrets.json
+# The sample mail environment contains generated credentials, keys and mail.
+apps/email/.dev-mail
data
# VCS + CI
diff --git a/.env.example b/.env.example
index e0073b4fb..fb8123bc7 100644
--- a/.env.example
+++ b/.env.example
@@ -251,7 +251,8 @@ GITHUB_APP_SLUG=openship-io
# Set these in the deployed API environment. Both Compose stacks load this
# root .env; they do NOT load apps/api/.env.saas (used by dev:saas).
# Use the production account's credentials for the production SaaS.
-# OBLIEN_API_URL=https://api.oblien.com
+# Optional complete API mount override. Unset uses the Oblien SDK default.
+# OBLIEN_API_URL=https://your-proxy.example/api/v1
# OBLIEN_CLIENT_ID=
# OBLIEN_CLIENT_SECRET=
# Optional public base-image pack for NEW managed Cloud spaces only.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6c3f05b42..be0ad9138 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,6 +28,10 @@ concurrency:
# unmergeable forever with no visible reason.
jobs:
+ website-image:
+ name: Website image
+ uses: ./.github/workflows/website-image.yml
+
actions-runner:
name: Actions execution
permissions:
@@ -173,6 +177,7 @@ jobs:
test/e2e/image-volume-persistence.e2e.test.ts
test/e2e/image-gc-concurrent-build.e2e.test.ts
test/e2e/image-refresh.e2e.test.ts
+ test/e2e/local-image-refresh.e2e.test.ts
- suite: Security advisories
command: >-
RUN_DOCKER_E2E=1 bun run --cwd apps/api test:e2e
@@ -187,6 +192,7 @@ jobs:
test/e2e/static-fallback.e2e.test.ts
test/e2e/route-protection.e2e.test.ts
test/e2e/edge-not-found-page.e2e.test.ts
+ test/e2e/edge-upstream-down-page.e2e.test.ts
- suite: Kubernetes manifests
command: >-
RUN_KUBERNETES_E2E=1 bun run --cwd packages/adapters test
@@ -211,6 +217,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v7
+ # Native engine fixtures run Node workers; keep their runtime explicit
+ # instead of inheriting whichever Node version the runner image adds.
+ - name: Setup native test runtime
+ uses: actions/setup-node@v6
+ with:
+ node-version: '22'
+
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
@@ -236,6 +249,14 @@ jobs:
working-directory: apps/email/client
run: bun install --frozen-lockfile --ignore-scripts
+ - name: Verify scoped agents against the released Mindwire daemon
+ if: matrix.suite == 'Other packages'
+ env:
+ OPENSHIP_ASSISTANT_E2E: "1"
+ run: >-
+ bun run --cwd packages/platform test
+ test/assistant-agents.e2e.test.ts test/assistant-remote.test.ts
+
# Run every workspace test, with the large API suite split across runners.
# Direct Vitest runs and Turbo's stream mode expose progress immediately.
# The complete API test/e2e/** suite also runs in release-gate.yml.
@@ -257,7 +278,7 @@ jobs:
# matrix must fail this check; no individual shard can make the PR green.
test:
name: Test
- needs: [test_suites, actions-runner]
+ needs: [test_suites, actions-runner, website-image]
if: ${{ always() }}
runs-on: ubuntu-latest
timeout-minutes: 2
@@ -266,9 +287,10 @@ jobs:
env:
TEST_SUITES_RESULT: ${{ needs.test_suites.result }}
ACTIONS_RESULT: ${{ needs.actions-runner.result }}
+ WEBSITE_RESULT: ${{ needs.website-image.result }}
run: |
- if [ "$TEST_SUITES_RESULT" != "success" ] || [ "$ACTIONS_RESULT" != "success" ]; then
- echo "::error::Test suites: $TEST_SUITES_RESULT; Actions execution: $ACTIONS_RESULT"
+ if [ "$TEST_SUITES_RESULT" != "success" ] || [ "$ACTIONS_RESULT" != "success" ] || [ "$WEBSITE_RESULT" != "success" ]; then
+ echo "::error::Test suites: $TEST_SUITES_RESULT; Actions execution: $ACTIONS_RESULT; Website image: $WEBSITE_RESULT"
exit 1
fi
@@ -380,3 +402,35 @@ jobs:
- name: Run webmail client tests
working-directory: apps/email/client
run: bun test
+
+ # Unit tests do not exercise the Docker dependency layout or the release
+ # bundle's dev-origin scan. Build the same artifact that ships to users.
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Build production webmail image
+ run: docker buildx build --load --file apps/email/Dockerfile.webmail --tag openship-webmail:ci .
+
+ - name: Verify production webmail startup
+ run: |
+ set -euo pipefail
+ container="webmail-readiness-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ trap 'docker logs "$container"; docker rm -fv "$container" >/dev/null' EXIT
+ docker run -d --name "$container" --network none \
+ -e SESSION_ENCRYPTION_KEY="$(openssl rand -hex 32)" \
+ -e BRANDING_ADMIN_TOKEN="$(openssl rand -hex 32)" \
+ openship-webmail:ci
+ for attempt in $(seq 1 30); do
+ if docker exec "$container" bun -e \
+ 'fetch("http://127.0.0.1:4080/health").then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))'; then
+ docker exec "$container" bun -e '
+ const response = await fetch("http://127.0.0.1:4080/");
+ const html = await response.text();
+ if (!response.ok || !html.includes("/assets/")) process.exit(1);
+ console.log("Production webmail serves its health endpoint and client assets.");
+ '
+ exit 0
+ fi
+ sleep 1
+ done
+ exit 1
diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.yml
index 0a225dfb5..7a34602bb 100644
--- a/.github/workflows/release-gate.yml
+++ b/.github/workflows/release-gate.yml
@@ -34,6 +34,10 @@ permissions:
actions: read
jobs:
+ website-image:
+ name: Website image
+ uses: ./.github/workflows/website-image.yml
+
geoip:
name: GeoIP freshness
uses: ./.github/workflows/geoip.yml
@@ -96,6 +100,12 @@ jobs:
# The API network tests spawn Bun directly. Test the runtime shipped by
# the API image and release bundle, including its TLS and WebSocket paths.
+ - name: Setup native test runtime
+ if: steps.resume.outputs.reused != 'true'
+ uses: actions/setup-node@v6
+ with:
+ node-version: '22'
+
- name: Setup Bun
if: steps.resume.outputs.reused != 'true'
uses: oven-sh/setup-bun@v2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e6dac58bb..78063d002 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -411,7 +411,9 @@ jobs:
label: Windows x64
find: "-name *.zip"
asset: Openship-win32-x64.zip
- - os: ubuntu-latest
+ # Keep the installer toolchain stable. Ubuntu 26.04's RPM 6 changes
+ # the build directory layout expected by electron-installer-redhat.
+ - os: ubuntu-24.04
label: Linux x64
find: "-name *.AppImage -o -name *.deb -o -name *.rpm"
asset: Openship.AppImage
diff --git a/.github/workflows/website-image.yml b/.github/workflows/website-image.yml
new file mode 100644
index 000000000..4be13e784
--- /dev/null
+++ b/.github/workflows/website-image.yml
@@ -0,0 +1,42 @@
+name: Website image
+
+on:
+ workflow_call: {}
+ workflow_dispatch: {}
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ name: Production website build and startup
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v7
+ - uses: docker/setup-buildx-action@v3
+ - name: Build the shipped website Dockerfile
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ run: >-
+ docker buildx build --load --progress=plain
+ --secret id=github_token,env=GITHUB_TOKEN
+ -f apps/web/Dockerfile -t openship-website:verify .
+ - name: Verify public pages from the production image
+ run: |
+ set -euo pipefail
+ container="openship-website-check-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ trap 'docker logs "$container" || true; docker rm -f "$container" >/dev/null 2>&1 || true' EXIT
+ docker run -d --name "$container" -e HOSTNAME=0.0.0.0 -e PORT=3000 -p 127.0.0.1::3000 openship-website:verify
+ binding="$(docker port "$container" 3000/tcp)"
+ base="http://${binding}"
+ for attempt in $(seq 1 30); do
+ if curl -fsS "$base/" -o /tmp/website-home.html; then break; fi
+ sleep 1
+ done
+ test -s /tmp/website-home.html
+ for path in / /ar /docs /docs/getting-started/installation /features /compare /mail /download /changelog /llms.txt; do
+ curl --fail --silent --show-error --location "$base$path" -o /tmp/website-response
+ test -s /tmp/website-response
+ echo "Verified $path"
+ done
diff --git a/.gitignore b/.gitignore
index 5c5f64566..e2a2ede04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ dist/
out/
# fumadocs generated content source (apps/web/.source) — compiled from source.config.ts
.source/
+apps/web/.share-feature-art.json
# Self-hosted server release bundle (apps/api/scripts/build-release.ts)
apps/api/release-dist/
# Desktop staged payload (apps/desktop/build/stage.ts)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77670a6ed..af00e1cf6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,12 +4,196 @@ All notable changes to OpenShip. Versions follow [semver](https://semver.org);
the in-app updater surfaces critical advisories from `release-advisories.json`.
Runtime security notices use the signed feed published from `security-advisories.json`.
-## Unreleased
+## 1.0.1
-### CLI
+**Recommended update** for self-hosted startup, application image updates, and
+private GitHub repository access. This patch also fixes postmaster password
+rotation metadata and preserves referral attribution through Cloud deploy links.
-- Run the container-to-host connectivity probe with Node.js, matching the API image,
- so `openship up` and `openship doctor` can diagnose the host channel without Bun.
+### Deployments and connections
+
+- **Application updates** — accept requests with an empty body when the action
+ takes no options. Continue validating malformed JSON and required payloads (#1817).
+- **Container image refresh** — pull the current image when refreshing a mutable
+ tag, and keep verified local images available for redeploys. Report failed
+ refreshes before replacing a running service (#1816, #1819).
+- **Registry credential checks** — record confirmed login rejections and preserve
+ the previous credential status when the registry response is inconclusive (#1816, #1819).
+- **Private GitHub repositories** — restore the connected-server token fallback
+ for authorized self-hosted repository reads on GitHub.com. A local server
+ without credentials no longer prevents selecting an eligible connected server
+ (#1821, #1822).
+- **Custom PHP base images** — run build-time dependency and setup steps as root
+ when the base image defaults to a non-root user. Keep the app running as
+ `www-data` (#1810).
+- **Swarm network setup** — wait for Docker to allocate a new overlay network
+ before checking its driver and encryption settings.
+
+### CLI and mail
+
+- **macOS service reinstall** — wait for launchd to unload the previous service
+ and verify the replacement is running before reporting success (#1808).
+- **CLI shutdown during startup** — stop the API process when the foreground
+ supervisor receives a stop signal, releasing the port and local database lock (#1809).
+- **Postmaster password rotation** — record the password change timestamp together
+ with the new hash when rotating through the CLI or API (#1825).
+
+### Cloud and website
+
+- **Cloud deploy referrals** — retain the referral code through the deploy link
+ and Cloud plan selection (#1806).
+- **Social previews** — use page-specific share cards across the website and
+ documentation (#1824).
+
+### Upgrade notes
+
+- **Component updates** — update the API, dashboard, Desktop and CLI for your
+ installation. This patch adds no control-plane database migrations.
+- **Image refreshes** — use Refresh images when you want a new image for a
+ mutable tag. A normal redeploy can reuse the local image.
+
+## 1.0.0
+
+OpenShip 1.0 brings a refreshed dashboard, edge maintenance and custom pages,
+deploy links, and scheduled mail workflows. Includes every change since 0.9.12,
+with more reliable builds, imports, billing and recovery.
+
+**Recommended update:** administrators should update all OpenShip components. This
+release closes an authorization flaw that allowed ordinary organization members
+to invoke administrative operations, including host command execution.
+
+### Security and access
+
+- **Administrative authorization** — Require administrative authority across HTTP, SDK,
+ native and MCP access. Scoped tokens remain bounded by their owner's current organization
+ role, including after demotion. Preserve explicitly delegated, resource-scoped
+ administration (#1783, #1784).
+- **Hostname sign-in** — Choose a sign-in page or the browser's native authentication prompt
+ for self-hosted hostnames. Customize sign-in HTML and session duration, revoke sessions,
+ and see enabled protection directly on domain cards.
+- **Actions tracing** — Update the Actions worker to OpenTelemetry 1.47.0, fixing bypassed
+ attribute-length limits in its tracing dependency.
+- **Release build isolation** — Keep generated local mail credentials and runtime caches out
+ of image build contexts. Bundle the shared assistant client and its dependency patch so
+ release builds do not depend on a sibling checkout or baked development URLs.
+- **Website image verification** — Include the website's client-message generator in its
+ Docker build, and verify the production website image and its public pages before release.
+
+### Edge pages and routing
+
+- **Edge maintenance** — Serve maintenance HTML directly from the edge while the application
+ keeps running. Restore normal routing when maintenance is disabled.
+- **Custom error pages** — Upload HTML pages and assign error statuses, with server defaults
+ and project or hostname overrides. Customize unmatched-host and direct-IP pages.
+- **Authentication header limits** — Accept larger authentication response headers and
+ returning cookies at the edge, with bounded defaults and preserved custom buffer settings
+ (#1763).
+- **Domains & Routes** — Organize Domains & Routes into routing, access, proxy, and page
+ controls, with inline protection settings, HTML previews, and visible loading and retry
+ states.
+- **CLI domain targeting** — Target the correct project service and port when adding domains
+ from the CLI. Keep primary domains, aliases and www redirects consistent when editing
+ routes.
+
+### Deployments, imports and recovery
+
+- **Shareable deploy links** — Add shareable deploy links and `openship launch`, carrying
+ the selected repository and deployment intent through sign-in and installation.
+- **Independent service copies** — Copy selected services to the same server or another
+ server as independent projects. Validate dependencies and port bindings, preserve separate
+ volumes, and improve restoration and rollback if a transfer fails. Keep application
+ instance scaling distinct from independent copies.
+- **Compose change review** — Review Compose changes in a shared before/after dialog and
+ apply the exact reviewed revision without repeating setup. Preserve deployment options and
+ saved overrides, mask credentials, and require a new review if source changes (#1796).
+- **Private registry guidance** — Explain private-image pull failures with the affected
+ image and a direct link to registry connections. Preserve public-image recovery and
+ distinguish registry credentials from GitHub repository access (#1798).
+- **Compose environment values** — Reveal and hide service environment values through the
+ shared Compose editor while retaining the existing permission checks (#1771).
+- **Multi-repository Railway imports** — Import Railway projects with multiple repositories
+ as native services and project connections, preserving source ownership and private
+ service wiring.
+- **Compose web ports** — Show container ports declared with Compose `expose`, explain how
+ to publish a TCP port for a web domain, and handle protocol suffixes and port ranges.
+- **Folder deployments** — Improve folder deployment names, scan errors and streamed
+ uploads. Resolve template placeholders consistently in service ports, and explain recovery
+ when duplicate containers block deployment.
+- **BuildKit cache retention** — Retain warm BuildKit caches and reduce remote cleanup
+ overhead without dropping build ownership, cancellation or capacity checks.
+- **Empty-volume backups** — Back up verified empty Docker volumes and bind directories
+ alongside populated sources. Refuse missing sources and preserve errors for unavailable
+ storage.
+- **Redis Sentinel readiness** — Verify every Redis Sentinel has discovered the writable
+ primary, its replicas and the full voting group before reporting replicated databases
+ ready.
+- **Controller relocation** — Fence event-stream admission while relocating the controller,
+ restore access when it resumes, and link server preparation to its deployment progress.
+- **Mail engine updates** — Preserve the mail host's configured ignored IP addresses when
+ updating its engine.
+
+### Mail and agents
+
+- **Scheduled mail and snoozing** — Schedule messages, cancel queued mail with Undo Send,
+ and snooze conversations. Recover interrupted or temporarily failed wake-ups, including
+ messages moved or deleted before their wake-up time.
+- **Mailbox agents and MCP** — Connect mailbox-scoped agents and MCP clients with encrypted
+ state, isolated runtimes, scoped permissions and explicit approval for sending mail.
+- **Assistant workspace** — Improve the agent workspace, shared conversation rendering,
+ connection setup, and empty and error states. Add the OpenShip plugin directory submission
+ metadata.
+
+### Cloud, billing and CLI
+
+- **Oblien provider API** — Move the Oblien integration to SDK 3.2.0 and the provider's
+ native versioned VM API. Preserve saved VM identities, customer metadata and purchased
+ offers; validate scoped credentials against the selected VM.
+- **Cloud checkout recovery** — Recover unfinished Cloud purchases instead of creating
+ duplicate unpaid spaces. Open checkout after its payment URL is ready and retain a
+ fallback action.
+- **Renewals and pricing** — Keep billing accessible during pending renewals and show
+ payment warnings in Plans & billing. Align monthly and yearly pricing across the website
+ and dashboard.
+- **Cloud setup recovery** — Recover repeated signup attempts during Cloud linking and
+ improve first-admin recovery and Compose managed-edge setup.
+- **CLI install and sign-in** — Keep the installed service's existing ports when `openship
+ up` runs again. Support CLI login through public instance URLs and use Node.js for the
+ container-to-host connectivity probe.
+- **Cloud update notices** — Limit the managed Cloud update banner to verified
+ workload-security notices.
+
+### Dashboard and website
+
+- **Dashboard refresh** — Refresh billing, monitoring, jobs, backups, connections, server
+ and agent screens with shared illustrations, compact controls and theme-aware surfaces.
+- **Service controls** — Improve service inspectors and copy/scale flows, put actions before
+ runtime details, and replace native disclosure markers with shared icon controls.
+- **Avatar and project icons** — Add avatar and project icon URL settings, with inline
+ editing, previews and reset.
+- **Marketing site and docs** — Refresh landing, Cloud, mail, download, migration and
+ app-catalog pages; improve Arabic headlines, language navigation and documentation
+ navigation.
+- **Comparisons and Cloud information** — Expand product comparisons, feature pages and
+ search discovery, and publish Cloud SLA, support and privacy information.
+
+### Upgrade notes
+
+- **Component updates** — Update the API and all its replicas, dashboard, Desktop, CLI and
+ mail components together. This release includes database migrations; retain a current
+ instance and database backup before updating.
+- **Organization roles** — Ordinary organization members no longer have implicit
+ administrative access. Review membership roles and scoped grants for integrations that
+ perform admin actions.
+- **Oblien provider rollout** — Cloud operators must coordinate this release with the
+ matching Oblien `/v1` API, database, gateway and scoped-credential rollout. Review old
+ unversioned `OBLIEN_API_URL` and gateway overrides, and verify existing-VM access before
+ directing customers to the upgraded provider.
+- **Edge requirements** — Maintenance, custom edge pages and hostname protection require the
+ updated self-hosted edge. These controls do not protect direct application ports or
+ hostnames outside their configured scope.
+- **Service copies and database scaling** — Independent service copies are separate
+ deployments. Managed database replicas and failover use their existing database scaling
+ flows.
## 0.9.12
diff --git a/SECURITY.md b/SECURITY.md
index 87c2474ab..29b19ad67 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -57,6 +57,12 @@ violation.
## Scope
+Organization owners and administrators can perform host administration. Ordinary
+members retain read/write access but cannot perform operations requiring `admin`,
+including server shell execution. Restricted users require explicit resource grants;
+scoped tokens also respect their user's current built-in role. Host commands execute
+as the server's configured account, so delegate server administration accordingly.
+
In scope — all Openship components:
- Managed Openship Cloud
diff --git a/apps/api/.env.saas.example b/apps/api/.env.saas.example
index a4f391f91..0c1556ce6 100644
--- a/apps/api/.env.saas.example
+++ b/apps/api/.env.saas.example
@@ -31,7 +31,8 @@ BETTER_AUTH_SECRET=change-me-in-production
INTERNAL_TOKEN=change-me-32-byte-random-hex
# Required for cloud deployments.
-OBLIEN_API_URL=https://api.oblien.com
+# Leave unset to use the installed SDK's default API version.
+# OBLIEN_API_URL=https://your-proxy.example/api/v1
OBLIEN_CLIENT_ID=
OBLIEN_CLIENT_SECRET=
# Optional: enable only after this software preset is published on your provider.
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index b65fca256..626d17807 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -15,11 +15,12 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
FROM oven/bun:1.4.4@sha256:1d22548f177f4ff38e0c15baa3c2c46c6c2060ba2d1bc573bb4720b407548f1d AS dependencies
WORKDIR /app
-COPY package.json bun.lock pnpm-workspace.yaml ./
+COPY package.json bun.lock bunfig.toml pnpm-workspace.yaml ./
# Preserve workspace paths without making installation depend on source edits.
# Email's postinstall also installs its two nested packages.
COPY --parents apps/*/package.json packages/*/package.json apps/email/*/package.json apps/email/*/bun.lock ./
COPY patches/ ./patches/
+COPY vendor/ ./vendor/
RUN --mount=type=cache,target=/root/.bun/install/cache \
bun install --frozen-lockfile
diff --git a/apps/api/assets/geoip/GeoLite2-Country.mmdb b/apps/api/assets/geoip/GeoLite2-Country.mmdb
index 50f78498c..261640591 100644
Binary files a/apps/api/assets/geoip/GeoLite2-Country.mmdb and b/apps/api/assets/geoip/GeoLite2-Country.mmdb differ
diff --git a/apps/api/package.json b/apps/api/package.json
index 80b6158d5..4aa0825c5 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -1,6 +1,6 @@
{
"name": "@repo/api",
- "version": "0.9.12",
+ "version": "1.0.1",
"license": "Apache-2.0",
"private": true,
"type": "module",
@@ -54,6 +54,7 @@
"zod": "^4.6.7"
},
"devDependencies": {
+ "@aws-sdk/client-s3": "^3.668.0",
"@repo/sdk": "workspace:*",
"@types/node": "^22.13.0",
"@types/ws": "^8.18.1",
diff --git a/apps/api/scripts/cloud-readiness.ts b/apps/api/scripts/cloud-readiness.ts
index 1c2330b94..0a483cae5 100644
--- a/apps/api/scripts/cloud-readiness.ts
+++ b/apps/api/scripts/cloud-readiness.ts
@@ -1,4 +1,5 @@
/** Read-only release checks. Does not create tokens, checkouts, or resources. */
+import { oblienApiBaseUrl, oblienApiUrl } from "@repo/adapters";
import { runtimeTarget } from "@repo/core";
import { assertOblienEntitlementMatchesSubscription, OblienBillingApi } from "@repo/platform/engine/lib/oblien-billing-api";
import { OBLIEN_WEBHOOK_EVENTS, oblienWebhookUrl } from "@repo/platform/engine/lib/oblien-webhook-config";
@@ -7,13 +8,13 @@ const results: Array<{ check: string; ok: boolean; skipped?: boolean; detail?: s
const record = (check: string, ok: boolean, detail?: string) => results.push({ check, ok, ...(detail ? { detail } : {}) });
const clientId = process.env.OBLIEN_CLIENT_ID;
const clientSecret = process.env.OBLIEN_CLIENT_SECRET;
-const apiBase = process.env.OBLIEN_API_URL ?? "https://api.oblien.com";
+const apiBase = oblienApiBaseUrl(process.env.OBLIEN_API_URL);
record("Cloud mode", process.env.CLOUD_MODE === "true");
record("Oblien credentials configured", Boolean(clientId && clientSecret));
record("Webhook secret configured", Boolean(process.env.OBLIEN_WEBHOOK_SECRET));
record("Subscription purchases enabled", process.env.BILLING_ENABLED === "true");
-const billing = new OblienBillingApi({ clientId, clientSecret, baseUrl: apiBase });
+const billing = new OblienBillingApi({ clientId, clientSecret, baseUrl: apiBase.toString() });
const checks = await Promise.allSettled([
(async () => {
await billing.assertResellerSupport();
@@ -35,13 +36,13 @@ const checks = await Promise.allSettled([
(async () => {
const callback = oblienWebhookUrl(process.env.OBLIEN_WEBHOOK_URL, runtimeTarget.api);
if (!clientId || !clientSecret) throw new Error("Oblien credentials are missing");
- const response = await fetch(`${apiBase.replace(/\/+$/, "")}/webhooks`, {
+ const response = await fetch(oblienApiUrl(apiBase, "/webhooks"), {
headers: { "X-Client-ID": clientId, "X-Client-Secret": clientSecret },
redirect: "error", signal: AbortSignal.timeout(15_000),
});
if (!response.ok) throw new Error(`Webhook registry HTTP ${response.status}`);
const body = await response.json() as { success: boolean; webhooks?: Array<{ url: string; active: boolean; namespace?: string | null; events: string[]; secret?: string | null }> };
- const webhook = body.success && body.webhooks?.find((item) => item.url === callback && !item.namespace && item.active);
+ const webhook = body.success ? body.webhooks?.find((item) => item.url === callback && !item.namespace && item.active) : undefined;
const missing = OBLIEN_WEBHOOK_EVENTS.filter((event) => !webhook || !webhook.events.includes(event));
const maskedSecret = typeof webhook?.secret === "string" && /^[*•*…]+$/u.test(webhook.secret);
const matchingSecret = Boolean(webhook?.secret && webhook.secret === process.env.OBLIEN_WEBHOOK_SECRET);
@@ -56,7 +57,7 @@ const checks = await Promise.allSettled([
})(),
(async () => {
if (!clientId || !clientSecret) throw new Error("Oblien credentials are missing");
- const response = await fetch(`${apiBase.replace(/\/+$/, "")}/namespaces?limit=1`, {
+ const response = await fetch(oblienApiUrl(apiBase, "/namespaces?limit=1"), {
headers: { "X-Client-ID": clientId, "X-Client-Secret": clientSecret },
redirect: "error", signal: AbortSignal.timeout(15_000),
});
diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts
index 264549493..0363ab976 100644
--- a/apps/api/src/app.ts
+++ b/apps/api/src/app.ts
@@ -23,6 +23,7 @@ import {
registerControllerLifecycle,
} from "./modules/system/instance/controller-state";
import { resumeControllerSockets } from "./lib/ws";
+import { resumeControllerStreams } from "./lib/sse";
import { trackBackgroundWork } from "@repo/platform/engine/lib/background-work";
import { instanceAuthorityGuard } from "./modules/system/instance/authority-guard";
import { quiesceController } from "./modules/system/instance/quiescence";
@@ -408,6 +409,7 @@ async function startControllerBackground(): Promise
+ {t.auth.register.hasAccount}{" "} - {t.auth.verifyEmail.backToSignIn} + {t.auth.register.signIn}
+ + {t.auth.forgotPassword.title} + ); diff --git a/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DnsConfiguration.tsx b/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DnsConfiguration.tsx index 280f2e0c9..f68b8ffb0 100644 --- a/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DnsConfiguration.tsx +++ b/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DnsConfiguration.tsx @@ -1,5 +1,6 @@ "use client"; +import { DisclosureSummary } from "@/components/ui/DisclosureSummary"; import React from "react"; import { useI18n } from "@/components/i18n-provider"; import DnsRecordCard from "@/components/domains/DnsRecordCard"; @@ -50,9 +51,9 @@ const DnsConfiguration: React.FC{copy.catalogNoResults}
)} diff --git a/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentCard.tsx b/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentCard.tsx index 105bd759e..92eaf168a 100644 --- a/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentCard.tsx +++ b/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentCard.tsx @@ -8,10 +8,8 @@ import { DeploymentMenu } from "./DeploymentMenu"; import { CommitDetailsModal } from "./CommitDetailsModal"; import type { Deployment } from "../types"; import { formatDistanceToNow, formatBuildTime, getStatusConfig } from "../utils"; -import { ProjectStackIcon } from "@/components/shared/ProjectStackIcon"; -import { AppLogo } from "@/components/AppLogo"; +import { ProjectIcon } from "@/components/shared/ProjectIcon"; import { useI18n, interpolate } from "@/components/i18n-provider"; -import { useImageFallback } from "@/hooks/useImageFallback"; type ServiceStatusLabels = { deployed: string; @@ -122,7 +120,6 @@ export const DeploymentCard: React.FC