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 eaa8f7546..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:
@@ -150,6 +154,7 @@ jobs:
command: >-
RUN_DOCKER_E2E=1 bun run --cwd apps/api test:e2e
test/e2e/platform-import-data.e2e.test.ts
+ test/e2e/platform-import-project.e2e.test.ts
# Separate independent daemons keep real-Docker coverage within the job
# budget. Tests remain serial inside each daemon to preserve isolation.
- suite: Compose cutover and rollback
@@ -172,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
@@ -186,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
@@ -210,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:
@@ -235,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.
@@ -256,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
@@ -265,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
@@ -379,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 fee238c02..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
@@ -226,18 +236,24 @@ jobs:
# https://github.com/actions/runner-images/issues/15005
runs-on: ${{ matrix.scope == 'fast' && 'ubuntu-22.04' || 'ubuntu-latest' }}
# Files remain serial within each disposable daemon. Split the growing
- # ordinary suite across two hosts so it fits the gate without relaxing tests.
+ # ordinary suite across four hosts so it fits the gate without relaxing tests.
timeout-minutes: ${{ matrix.scope == 'fast' && 45 || 30 }}
strategy:
fail-fast: false
matrix:
include:
- scope: fast
- label: fast 1/2
- shard: 1/2
+ label: fast 1/4
+ shard: 1/4
- scope: fast
- label: fast 2/2
- shard: 2/2
+ label: fast 2/4
+ shard: 2/4
+ - scope: fast
+ label: fast 3/4
+ shard: 3/4
+ - scope: fast
+ label: fast 4/4
+ shard: 4/4
- scope: heavy
label: heavy
shard: ""
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c6f37c80c..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
@@ -1076,7 +1078,7 @@ jobs:
fi
else
gh release create "${TAG}" \
- --title "Openship ${TAG}" \
+ --title "OpenShip ${TAG}" \
--notes-file "${NOTES_FILE}" \
${PRERELEASE_FLAG} \
"${CORE_ASSETS[@]}"
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 691f3db59..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)
@@ -65,3 +66,6 @@ pnpm-debug.log*
.react-router
.wrangler
next-env.d.ts
+
+# Local review screenshots and generated previews (not product assets)
+/artifacts/
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8e5ee0e3..af00e1cf6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,206 @@
# Changelog
-All notable changes to Openship. Versions follow [semver](https://semver.org);
+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
+
+**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.
+
+### 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
+
+**Critical update** for build-secret protection, database upgrade repairs and
+backup/restore reliability. Includes all changes since 0.9.11, with reviewed
+source-image update PRs, platform imports, mail improvements and a translated
+website.
### Build security
@@ -12,23 +208,129 @@ Runtime security notices use the signed feed published from `security-advisories
embedding values in Dockerfiles or image history. Mask configured values in streamed
logs, error summaries and failure notifications, including split and multiline output.
Preserve Cloud worker limits, parallel server builds and cleanup after cancellation.
+- Attribute REST audit events to the personal access token used, and audit token
+ reads through the existing authorization path.
+- Preserve private edge-vhost permissions and verify access with unprivileged
+ workers. Keep tunnel hostnames out of unsupported password-protection flows.
-### Image updates
+### Runtime and source updates
- Keep image services with missing deployment digests visible as unverified. Inspect the
running image through the existing deployment runtime to detect moved tags, with bounded
reads and no deployment-row writes. Show unavailable update status without an update badge.
+- Propose Dockerfile and Compose image changes through reviewed GitHub pull
+ requests. Check repository access first and guide users to reconnect or update
+ their GitHub installation when the required permissions are missing.
+- Apply security fixes to managed runtime versions instead of repeatedly refreshing
+ an unchanged image. Distinguish a runtime that is absent from a failed probe.
+
+### Deployments and infrastructure
+
+- Allow webhook and CLI deployments to approve reviewed Compose source changes
+ through the shared approval flow.
+- Keep branch and Compose-path controls available after an unsuccessful first
+ scan, reject blank required build commands, and offer Static Site for folder uploads.
+- Keep token-authenticated repository clones on HTTPS even when a server's global
+ Git configuration rewrites GitHub URLs to SSH.
+- Recover orphaned builds through shared worker ownership, preserve application
+ runtime/log access when adding services, and scope shared image-export paths.
+- Scale managed build-cache budgets with available disk and expose server cache
+ settings. Improve local image exports without sharing another build's output.
+- Let edge upgrades finish safely after an SSH disconnect. Preserve owned mounts
+ in imported Cloud workloads and explain host paths that cannot be imported safely.
+- Support hosted Jobs on Manage-connected SSH servers. Match BullMQ repeatable
+ jobs by name so changing a cron schedule removes the previous schedule.
+- Accept bounded YAML aliases in imported GitHub workflows, show the latest run
+ for every workflow, and avoid duplicate GitHub-owned workflow webhook payloads.
+- Recover failed installed-CLI updates and verify release installation and updates
+ on disposable VPS instances before publishing images and packages.
### Domains
+- Configure static HTML, JSON or text responses on a domain through its normal
+ route editor, including maintenance and verification responses without an app container.
- Avoid rewriting unchanged edge route files and repeating remote reads during a
registration. Preserve exact file contents and permissions while retaining route
validation, reloads, certificate activation and transactional rollback.
- **DigitalOcean DNS** — connect a DigitalOcean token in Settings → Connections to preview
and apply a custom domain's records and issue DNS-verified HTTPS automatically, as with
- Cloudflare. Each record Openship creates is paired with an `_openship-owner` TXT marker,
- so removing a domain deletes only Openship's own records.
+ Cloudflare. Each record OpenShip creates is paired with an `_openship-owner` TXT marker,
+ so removing a domain deletes only OpenShip's own records.
+
+### Imports, backups and database upgrades
+
+- Improve platform imports, including Railway and Vercel setup, source and
+ destination review, progress reporting and cancellation.
+- Keep migration environment fields visible while entering missing secrets, with
+ a plain section heading instead of a nested disclosure that collapses during editing.
+- Preserve source project boundaries during platform imports: one project contains
+ its native services, private DNS, encrypted service environments and separate volumes.
+ Keep service environment values scoped correctly during source builds too.
+- Carry imported custom domains and aliases through the existing migration routing
+ flow, pending normal verification. Show DNS cutover guidance and replacement
+ notices for Railway and Vercel URLs in review and saved migration progress.
+- Restore portable instance exports with their server credentials and workspace
+ ownership. Normalize restored data for the destination schema and keep the
+ instance import and server selection views consistent.
+- Repair missing workspace and security-advisory fields on upgrades, including
+ databases whose earlier migrations were already marked as applied.
+- Serialize backup execution per destination to prevent connection exhaustion.
+ Recover orphaned Cloud backup activities through the existing ownership checks.
+- Complete local mail backups and portable restores through the shared backup
+ orchestration, including target-server mail configuration and real mail round trips.
+- Prevent browser autofill of backup destination credentials and keep destination
+ menus visible outside their cards.
+
+### Mail
+
+- Preserve mail logs and Fail2ban ban history across engine updates, and remove
+ Dovecot's stale PID file before startup.
+- List all signed-in mailboxes and keep account menus usable when they overflow.
+- Correct webmail message colors in light/dark themes and when printing, and
+ refresh security dependencies.
+- Protect support intake and add mailbox sender blocking.
+
+### Assistants
+
+- Reuse managed agent setup for custom API connections and report the actual
+ runtime setup state.
+- Find agent CLIs installed outside the macOS GUI PATH, restore public BuildKit
+ pulls, and correct scoped Claude startup.
+- Allow reviewed repository patches to delete regular files through the existing
+ review and validation flow.
+- Add OpenShip plugins for Codex and Claude Code.
+
+### Dashboard, billing and website
+
+- Keep the shared destination dropdown available with one server or Cloud plan,
+ with Add server in its menu across deployment and migration flows.
+- Refresh deployment state after navigation and browser resume. Unify project
+ settings and shared environment controls with the existing service views.
+- Keep plan overview, usage and payments together under Plans & billing, align
+ Cloud plan presentation across the website and dashboard, and retain payment
+ recovery for expired renewals.
+- Improve deployment, verification and cancellation emails, and standardize the
+ Referral experience.
+- Translate website content into the existing supported languages, with localized
+ URLs, navigation and product screenshots. Correct Arabic layout and preserve
+ English framework names. Documentation remains in English.
+- Add migration guidance for teams moving an existing app, group website
+ navigation, and provide a direct Start on Cloud action.
+- Use the BytesMap SDK for unified Cloud telemetry and remove PostHog.
+
+### Upgrade notes
+
+- Update the API (including all replicas), dashboard and Desktop app together.
+ This release includes control-plane database migrations; keep a current
+ instance/database backup before upgrading.
+- Build-secret protection applies to new builds. Rebuild older application images
+ to use the updated build flow; upgrading does not rewrite existing images.
+- Dockerfile and Compose image pins remain controlled by the repository. Review
+ and merge a source-update PR when the fix requires a source change, then deploy
+ that revision. Refreshing an unchanged pin does not change its runtime version.
+- Update the mail engine as well to receive mail startup, log persistence and
+ restore fixes.
## 0.9.11
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 53584f011..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 6c8dfc4ef..4aa0825c5 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -1,6 +1,6 @@
{
"name": "@repo/api",
- "version": "0.9.11",
+ "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{t.widgets.routing.pages.accessHint}
++ {t.widgets.routing.protection.chooseHostname} +
+ )} +{t.projectSettings.domains.editRoute.disabledWarning} @@ -3104,6 +3098,7 @@ function DiagnosablePill({ function DomainOverviewCard({ domain, + responseRoutes, protectionControl, menuActions = [], sslActionBusy = false, @@ -3123,6 +3118,7 @@ function DomainOverviewCard({ ingressSettings, }: { domain: DomainSummaryItem; + responseRoutes?: React.ReactNode; protectionControl?: React.ReactNode; /** Secondary actions (edit, renew, …) collapsed into a ⋯ menu. Visit is a * plain icon; Verify is a direct inline button below, not a menu item. */ @@ -3496,6 +3492,7 @@ function DomainOverviewCard({
{w.description}
+{section === "proxy" ? t.widgets.routing.pages.proxyHint : w.description}
{labels.recoveryHint}
{message}
diff --git a/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/server-tabs.ts b/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/server-tabs.ts
index 5d525d90e..8ff311a4a 100644
--- a/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/server-tabs.ts
+++ b/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/server-tabs.ts
@@ -5,6 +5,7 @@ export type ServerTab =
| "migrations"
| "components"
| "github"
+ | "pages"
| "security"
| "ports"
| "terminal";
@@ -16,6 +17,7 @@ export const SERVER_TABS: { key: ServerTab; icon: IconName; desktopOnly?: boolea
{ key: "components", icon: "server-settings" },
{ key: "github", icon: "git-branch" },
{ key: "security", icon: "shield" },
+ { key: "pages", icon: "code" },
{ key: "ports", icon: "port-forwarding", desktopOnly: true },
{ key: "terminal", icon: "terminal" },
];
diff --git a/apps/dashboard/src/app/(dashboard)/servers/[serverId]/page.tsx b/apps/dashboard/src/app/(dashboard)/servers/[serverId]/page.tsx
index dd93e45cc..2c9733eeb 100644
--- a/apps/dashboard/src/app/(dashboard)/servers/[serverId]/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/servers/[serverId]/page.tsx
@@ -36,6 +36,7 @@ import {
type ConnectionErrorKind,
} from "./_components/connection-banner";
+import { EdgePagesPanel } from "@/components/routing/EdgePagesPanel";
import { RateLimitSettings } from "./_components/rate-limit-settings";
import { GpuCard } from "./_components/gpu-card";
import { BuildCacheCard } from "./_components/build-cache-card";
@@ -774,6 +775,7 @@ function ServerDetail({ serverId }: { serverId: string }) {
+ {interpolate(copy.lastVerified, { + date: new Date(row.lastVerifiedAt).toLocaleString(locale, { + dateStyle: "medium", + timeStyle: "short", + }), + })} +
+ )} {row.status === "invalid" && row.lastError && ({row.lastError}
)} diff --git a/apps/dashboard/src/app/(dashboard)/settings/_components/GitHubSources.tsx b/apps/dashboard/src/app/(dashboard)/settings/_components/GitHubSources.tsx index 487320fd1..371f6b6a5 100644 --- a/apps/dashboard/src/app/(dashboard)/settings/_components/GitHubSources.tsx +++ b/apps/dashboard/src/app/(dashboard)/settings/_components/GitHubSources.tsx @@ -1,5 +1,6 @@ "use client"; +import { DisclosureSummary } from "@/components/ui/DisclosureSummary"; import { reportCaughtError as observeCaughtError } from "@repo/core/diagnostics"; import { Icon as UiIcon } from "@repo/ui/icons"; @@ -644,9 +645,9 @@ function SourceForm({ />{a.integration.tokenHint}
diff --git a/apps/dashboard/src/components/assistant/AgentConnections.tsx b/apps/dashboard/src/components/assistant/AgentConnections.tsx index eca5c4138..4fbeed26b 100644 --- a/apps/dashboard/src/components/assistant/AgentConnections.tsx +++ b/apps/dashboard/src/components/assistant/AgentConnections.tsx @@ -1,4 +1,5 @@ "use client"; +import { DisclosureSummary } from "@/components/ui/DisclosureSummary"; import { useEffect, useId, useState } from "react"; import { ASSISTANT_PROVIDER_LABELS, @@ -328,9 +329,9 @@ function AgentConnection({ )} {info.fields.length > 0 && ({ASSISTANT_PROVIDER_LABELS[flow.provider]} · {flow.model || "Default model"} {flow.readRepository ? " · Repository read access" : ""} diff --git a/apps/dashboard/src/components/assistant/AssistantComposer.tsx b/apps/dashboard/src/components/assistant/AssistantComposer.tsx index 52d1100b8..e5359ef52 100644 --- a/apps/dashboard/src/components/assistant/AssistantComposer.tsx +++ b/apps/dashboard/src/components/assistant/AssistantComposer.tsx @@ -1,6 +1,7 @@ "use client"; -import { useLayoutEffect, useRef, useState, type ReactNode, type RefObject } from "react"; +import { useRef, useState, type ReactNode, type RefObject } from "react"; +import { useChatComposer } from "@mindwire-ai/client"; import { Icon } from "@repo/ui/icons"; import { Button } from "@/components/ui/button"; import { ASSISTANT_IMAGE_TYPES } from "@repo/contracts"; @@ -62,38 +63,18 @@ export function AssistantComposer({ !imagesPending && (!!value.trim() || !!images.length) && (!images.length || imagesSupported); - useLayoutEffect(() => { - const field = input.current; - if (!field) return; - const resize = () => { - // Empty inputs use their two-row baseline, not a previous draft's - // measured height or the height of a wrapped placeholder. - if (!value) { - field.style.height = "auto"; - field.scrollTop = 0; - return; - } - field.style.height = "0px"; - field.style.height = `${field.scrollHeight}px`; - }; - resize(); - // Sidebar and viewport changes can wrap an unchanged draft onto more lines. - let width = field.clientWidth; - const observer = new ResizeObserver(() => { - if (field.clientWidth === width) return; - width = field.clientWidth; - resize(); - }); - observer.observe(field); - return () => observer.disconnect(); - }, [value, input, compact]); + const composer = useChatComposer({ + value, + onChange, + onSend, + canSend: sendable, + inputRef: input, + hasAttachments: images.length > 0, + }); return (