0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-16 06:57:12 +00:00
Commit graph

425 commits

Author SHA1 Message Date
Hydra
92d8ab8caa Fix first-admin recovery and Compose managed-edge provisioning 2026-11-14 01:39:01 +02:00
Hydra de lerne
60e22bf7e3
fix(cloud): limit the update banner to verified workload security (#1748)
* fix(cloud): suppress installation release notices in managed dashboards

* fix(cloud): use only verified security in the update banner
2026-11-13 19:39:32 +02:00
Hydra
a1089e12f3 fix: align monthly and yearly pricing across web and dashboard 2026-11-13 17:58:11 +02:00
Hydra de lerne
2454fe4509
fix(dashboard): keep destination selection consistent for one server (#1741) 2026-11-12 21:20:36 +02:00
Hydra de lerne
e19711e1c5
feat: add domain virtual responses with a compact editor (#1739)
* feat: add domain virtual responses with a compact editor and bounded edge matching

* fix: keep traffic working during rolling edge script updates

* refactor: centralize edge management transport
2026-11-12 21:20:24 +02:00
Hydra de lerne
739728ce11
fix(migration): preserve project services and reuse domain routing (#1740) 2026-11-12 21:06:52 +02:00
Hydra
c1341e9fc9 fix(migration): keep environment fields visible while editing 2026-11-12 18:34:47 +02:00
Hydra de lerne
f8e8829c3a
fix: unify project settings, refine web navigation, and restore CI (#1738)
* chore: keep generated review artifacts out of git

* fix(dashboard): keep single apps in the service settings flow

* fix(web): refine Arabic landing and navigation

* fix(core): align host channel branding with dashboard copy
2026-11-12 18:03:33 +02:00
Hydra de lerne
47431eb567
update (#1737) 2026-11-12 17:15:42 +02:00
Hydra de lerne
db8a5cf4f4
fix(mail): complete local backups and portable server restores (#1734)
* fix(mail): complete local backups and portable server restores

* test(mail): report engine diagnostics on round-trip failure

* fix(mail): stop Postfix writers before container snapshots

* fix(mail): apply Postfix shutdown in the daemon action renderer

* test(mail): install GNU tar on the remote fixture host
2026-11-12 17:03:11 +02:00
Hydra de lerne
367afdec91
fix: sync dashboard setup, instance imports, and migration pages (#1729)
* fix(import): restore workspace visibility and verified edge status

* fix: complete dashboard setup and migration website updates
2026-11-12 11:10:49 +02:00
Hydra de lerne
0976d9d082
fix(migration): improve platform import setup and cancellation (#1728) 2026-11-12 08:14:23 +02:00
Hydra de lerne
4ab89b9510
fix(build): keep environment values out of Dockerfiles and logs (#1674)
* fix(build): keep environment values out of Dockerfiles and logs

* test(build): exercise secret transport in deployment CI

* test(build): align cloud fixture file and command identities

* fix(build): validate secrets before allocating build resources
2026-11-11 16:54:35 +02:00
Saim Shafique
ea0d015b86
Preserve mail logs and ban history safely across engine updates (#1705)
* fix(mail): persist mail logs, fail2ban database and ignoreip across engine updates

Mail engine updates recreate the container (docker rm -f + docker run),
so anything not on a bind mount is lost: /var/log (mail.log, dovecot and
fail2ban logs), fail2ban's SQLite database, and operator ignoreip
customisations in /etc/fail2ban.

- Bind-mount /var/log and /var/lib/fail2ban from the host mail state dir.
  Deliberately not /etc/fail2ban: a seed-once mount would hide later image
  changes (same trap as #392's master.cf).
- Render operator ignoreip additions (OPENSHIP_MAIL_F2B_IGNOREIP, passed
  through engine.env) into a jail.d override on every boot, as baked
  jail.local value + operator value, so image defaults are never dropped.
- Run cron under supervisord so logrotate's daily job actually fires for
  the now-persisted logs; logrotate is installed explicitly (only a
  Recommends of rsyslog) and build-gated.

Fixes #1701

* Preserve existing mail state before replacement and repair supervised log rotation

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-11 16:54:11 +02:00
Hydra de lerne
5bf164283d
Check source-update PR access and guide GitHub permission recovery (#1721)
* Check source PR permissions and provide connection recovery

* Update assistant PR fixtures for permission preflight
2026-11-11 15:46:45 +02:00
Hydra de lerne
f537a4fdb3
Fix custom API setup state and reuse managed agent setup (#1722) 2026-11-11 15:11:18 +02:00
Hydra de lerne
a2384998ba
Propose source image updates through reviewed GitHub PRs (#1717)
* feat(updates): propose reviewed image changes in repository PRs

* Reuse deployment image validation and publish source-update API references

* Keep shared and inherited Compose image edits in the source editor

* Offer reviewed source updates for pinned advisory images
2026-11-11 13:55:46 +02:00
Hydra de lerne
01b9fbe739
Protect support intake and add mailbox sender blocking (#1715)
* Protect support intake and add mailbox sender blocking

* Regenerate support operator route reference

* Wire contact widget key into the website runtime

* Fix repeat contact challenges and classify private support blocks
2026-11-11 13:35:46 +02:00
Hydra de lerne
99904af0f8
Add platform imports and refresh dashboard and Cloud website (#1713)
* feat: add platform migrations and refresh the Cloud experience

* fix(ci): run MongoDB 8 imports on compatible runners

* docs(web): add Railway and Vercel migration pages

* feat(dashboard): add shared dotenv text editing and top add action

* fix(dashboard): wrap text editor actions on narrow screens
2026-11-11 11:58:09 +02:00
Hydra de lerne
cef84067c6
feat(ui): unify website and Cloud plan presentation (#1692)
* feat(ui): unify website and Cloud plan presentation

* fix(web): generate Next types before typechecking
2026-11-09 14:03:36 +02:00
Hydra de lerne
2aef5b840c
Improve deployment speed, verification, and cancellation emails (#1683)
* perf: reuse Docker builders and parallelize independent Compose work

* test: exercise declared dependency gates on the isolated Docker host

* fix: preserve dependency ownership and native cache maintenance

* fix: drain dependency readiness failures through the shared task barrier

* test: align server recovery expectations with source scan recovery

* fix: retain released dependency providers during publication recovery

* Keep route verification and bound parallel deployment work safely

* Send scoped cancellation confirmations through the customer email queue

* Offer help without treating one canceled subscription as account churn

* Invite cancellation feedback and offer direct support

* Preserve native Docker dependency cache across source changes

* Keep runtime dependencies ahead of changing API source

* Split independent Docker regression suites across CI jobs

* Use fresh connections for routing configuration probes

* Show published deployments while final startup verification runs

* Complete verification translations and align test types
2026-11-09 13:51:19 +02:00
Hydra de lerne
7d4aa0d886
fix(billing): keep overview, usage and payments inside each plan (#1681)
* fix(billing): keep overview usage and payments inside each plan

* test(deploy): align source recovery assertion with current main

* fix(billing): preserve Manage payment tab across organization switches

* fix(billing): match pending plans through existing Cloud references
2026-11-09 03:31:39 +02:00
Hydra de lerne
ac1e79fa24
feat: unify Plans & billing and standardize Referral (#1680)
* feat(billing): unify plan management and referral navigation

* docs(billing): describe plan management and align summary assertions

* test(billing): align named plan and accessible summary assertions
2026-11-08 22:30:29 +02:00
Hydra de lerne
ef893be5da
feat(cloud): use the BytesMap SDK for unified telemetry and remove PostHog (#1642)
* feat(cloud): unify telemetry through the BytesMap SDK and remove PostHog

* fix(telemetry): derive HTTP span failures from final responses
2026-11-08 00:55:06 +02:00
Hydra de lerne
d3436dbdac
fix(security): patch managed runtime versions instead of refreshing old images (#1657)
* fix(security): apply reviewed patches to managed runtimes

* fix(security): refuse Bun runtime patches that downgrade repository requirements

* fix(migration): parse coalesced Cloud rsync progress

* refactor(build): share package-manager version overrides

* fix(migration): read raw rsync byte counters across versions
2026-11-07 22:15:37 +02:00
Rudi
3d8ff5bbc7
feat(servers): configure build-cache budgets and fix migration progress (#1645)
* fix(build): scale the managed build-cache budget with the disk

The managed project-cache budget was min(5 GiB, 10% of the Docker
filesystem). A project whose BuildKit cache outgrew 5 GiB was evicted by
the post-build prune after every build, so every deploy started cold.

- buildCacheKeepBytes is now 20% of the Docker filesystem, so the budget
  follows the disk in both directions: disks under 50 GiB also move from
  10% to 20%. This also applies to managed Cloud workers, which share
  the collector.
- Below the 20% free-space GC target the idle budget shrinks to what
  still fits above it (never below the old min(5 GiB, 10%)), so idle
  caches give space back before rollback artifacts and running apps.
  BuildKit's own 20% minFreeSpace still bounds a running worker.
- pruneManagedBuildCaches defaults to that budget instead of 5 GiB.
- The daily sweep marks its call as automaticRetention, so managed caches
  use the same budget; keepStorageBytes still bounds native Docker cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(servers): configurable build-cache budget per server

Adds an optional managed build-cache budget for remote deployment
servers, edited from a Build cache card on the server Overview tab and
through the existing server update API, CLI and MCP tool. Empty keeps the
automatic share of the Docker filesystem.

- servers.build_cache_budget_bytes (migration 0224), bounded 1 GiB to
  64 TiB in the database and the API contract.
- Only remote deployment servers expose and accept it: the local row
  builds through the host daemon's native cache and migration sources
  never build, so updates there are refused; managed Cloud servers keep
  rejecting every field except name. Changing it requires server admin,
  since a large budget lets caches hold most of the disk.
- SSH Docker runtimes read the value through a new buildCacheBudgetBytes
  connection option on every collection, so a change applies to the next
  build without reconnecting. It sets the post-build prune budget,
  BuildKit's maxUsedSpace and the daily sweep's managed budget, capped at
  the filesystem minus the admission reserve and still reduced under
  storage pressure; a failed read falls back to automatic.
- Updates are audited like gpuOverride and do not drop retained SSH
  sessions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: regenerate the MCP and CLI references for the build-cache budget

The server update tool description and the `server configure` help now
mention the build-cache budget, so the generated references changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(migration): frame streamed rsync progress updates

* fix(migration): preserve exact progress with rsync byte units

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-07 20:23:30 +02:00
Rudi
12cefbca31
fix(build): scale the managed build-cache budget with the disk (#1644)
The managed project-cache budget was min(5 GiB, 10% of the Docker
filesystem). A project whose BuildKit cache outgrew 5 GiB was evicted by
the post-build prune after every build, so every deploy started cold.

- buildCacheKeepBytes is now 20% of the Docker filesystem, so the budget
  follows the disk in both directions: disks under 50 GiB also move from
  10% to 20%. This also applies to managed Cloud workers, which share
  the collector.
- Below the 20% free-space GC target the idle budget shrinks to what
  still fits above it (never below the old min(5 GiB, 10%)), so idle
  caches give space back before rollback artifacts and running apps.
  BuildKit's own 20% minFreeSpace still bounds a running worker.
- pruneManagedBuildCaches defaults to that budget instead of 5 GiB.
- The daily sweep marks its call as automaticRetention, so managed caches
  use the same budget; keepStorageBytes still bounds native Docker cache.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:45:00 +02:00
Hydra de lerne
1caff219ec
fix(updates): clarify conditional security advisories and actions (#1606)
* fix(updates): make manual security advisories actionable

* fix(updates): classify conditional advisories as unverified reviews

* fix(updates): retain service state in grouped advisory reviews
2026-11-06 20:05:08 +02:00
Hydra de lerne
d12bb9e2c0
fix(dashboard): keep assistant setup in the workspace (#1638) 2026-11-06 18:11:50 +02:00
Saim Shafique
a22de88cb5
fix(github): resolve server credentials safely for repository scans (#1632)
* fix(github): fall back to a writable connected server's stored credential when no local server exists

Repository preparation borrowed a server's stored GitHub credential only
from the organization's canonical local server. Self-hosted setups whose
deploy target is a connected SSH server with its own stored PAT could
deploy but not scan the same private repo: with no server selected, the
fallback found no local server and preparation failed with
GITHUB_TOKEN_REQUIRED.

When no server is selected and the organization has no local server, use
the oldest connected deployment server the caller has write access to
that holds a stored token credential, the same set a real deploy can use.
Repository access, same-organization, server write permission, and
read-only local-read limits are unchanged. Explicit server selection is
unchanged.

Fixes #1630

* fix(github): require server selection for ambiguous repository credentials

* fix(dashboard): keep repository recovery server selection manual

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-06 15:59:57 +02:00
Hydra de lerne
34ba48c9a1
Keep the latest messages button readable over the transcript (#1636) 2026-11-06 15:58:38 +02:00
Hydra de lerne
b0832e621a
Blur the conversation behind expanded agent questions (#1635) 2026-11-06 15:44:39 +02:00
Hydra de lerne
18aa735ae5
fix(dashboard): render saved theme before first paint (#1633) 2026-11-06 14:34:47 +02:00
Hydra de lerne
465554be25
Start AI investigations and answer questions in place (#1631)
* feat(assistant): start investigations from action buttons

* Answer agent questions inline and share auto-submit intent
2026-11-06 13:53:24 +02:00
Johannes Rueschel
61b428f44c
feat(mail): manage Fail2ban bans from Health, API and MCP (#1621)
* feat(mail): expose fail2ban status, ban and unban via API and MCP

* feat(mail): manage Fail2ban bans from the existing Health tab

* fix(mail): preserve exact IP display in RTL ban reviews

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-06 11:19:28 +02:00
fatih akyon
3e42fc6614
fix(routing): make static 404 responses opt-in (#1626)
* fix(edge): serve a static site's 404.html for missing paths

* fix(routing): make static SPA fallback explicit and preserve defaults

* test(routing): update static fallback checks and run HTTP coverage

* fix(i18n): complete inbound alias guidance across locales

* test(monitoring): isolate the session in stream fixtures

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-06 10:36:34 +02:00
Hydra de lerne
f24d89b7ab
fix(security): enforce Cloud host execution boundaries (#1615)
* fix(security): refuse workload execution on the Cloud API host

* fix(security): preserve safe Cloud transport probes and narrow hardening scope

* test(dashboard): isolate network editor session lifecycle
2026-11-05 18:20:43 +02:00
Hydra de lerne
8c76cf8f22
fix(migration): finish parked imports without touching originals (#1608) 2026-11-04 19:15:05 +02:00
Hydra de lerne
3adee04f38
fix(catalog): make RabbitMQ readiness safe during startup (#1603) 2026-11-04 14:28:47 +02:00
Hydra de lerne
ee6f86623e
fix: verify advisory remediation and complete Appwrite setup (#1601) 2026-11-04 14:11:56 +02:00
Hydra de lerne
2250f91684
fix(assistant): use Codex device login on remote hosts (#1600)
* fix(assistant): select Codex sign-in for the assistant host

* fix(assistant): consume released Mindwire 0.1.61
2026-11-04 13:20:37 +02:00
Hydra de lerne
7a5f2ec8fb
fix(routing): enable canonical redirects for Compose services (#1457)
* fix(routing): share canonical domain controls with Compose services

* test(backups): identify the mail size-history fixture correctly

* fix(routing): keep service redirect updates consistent

* test(routing): cover redirect validation at build admission
2026-11-04 05:15:51 +02:00
Hydra de lerne
ae6edd774c
feat(mail): add optional calendar and contact sync (#1596) 2026-11-04 04:56:28 +02:00
Hydra de lerne
c755d78dca
fix(backups): validate restore uploads before clearing the destination (#1456)
* fix(backups): validate restore uploads before mounting the target

* docs(backup): explain deferred restore error propagation

* test(backups): identify the mail size-history fixture correctly

* fix(backups): verify the daemon received the complete restore upload

* fix(backups): harden staged restore validation and timeouts
2026-11-04 04:27:04 +02:00
Hydra de lerne
d005eacc25
feat(catalog): add Appwrite and consolidate priority apps (#1594)
* Add OpenTelemetry Collector to the apps catalog

Adds otel-collector as a one-click app template (docker-compose kind,
category: analytics), alongside Grafana and the other observability
apps. Uses the upstream otel/opentelemetry-collector-contrib image
unmodified — its baked-in default config already stands up OTLP gRPC
(4317) and HTTP (4318) receivers plus a debug exporter, so no custom
command/config override is needed to get a usable collector running.

Also wires up brand-mark resolution:
- AppLogo.tsx: catalog logo "otel-collector" → simpleicons "opentelemetry"
- ServiceIcon.tsx: image name → same brand mark, for services created
  from a raw compose file rather than the catalog (both
  "opentelemetry-collector-contrib" and "otel-collector" match)

catalog.json regenerated from apps/catalog/*.json per the drift test in
apps/catalog.test.ts (gen-catalog.ts requires bun, unavailable in this
environment — reproduced its exact merge/sort logic with a plain node
script; verified the new entry lands alphabetically and the rest of the
file is a no-op diff).

* feat: add Beszel to app catalog

* feat(catalog): add Prometheus

One-click Prometheus (prom/prometheus:v3.15.1) for the monitoring stack
requested in #1432. Metrics and config live in named volumes, so scrape
targets added to /etc/prometheus/prometheus.yml survive restarts and
redeploys. Prometheus has no login, so the connection notes point users to
domain password protection.

Refs #1432

* fix(ui): add the Prometheus app logo

The dashboard's APP_LOGO map needs an entry for every catalog app
(app-logo.test.ts). Use the simpleicons prometheus mark, like Grafana.

Refs #1432

* feat(catalog): add Loki

One-click Loki (grafana/loki:3.7.9) for the monitoring stack requested in
#1432. Logs live in a named volume and are kept for 31 days through the
compactor's retention flags. The image is distroless, so there is no shell
healthcheck and the flags are passed with commandArgv. Loki has no login,
so the connection notes point users to password protection.

Refs #1432

* fix(web): ship the Loki logo on the website too

Vendored app logos must be byte-identical in the dashboard and website
public folders (scripts/app-marketplace.test.ts).

Refs #1432

* feat(catalog): add VictoriaMetrics

One-click VictoriaMetrics (victoriametrics/victoria-metrics:v1.154.1) for the
monitoring stack requested in #1432. It is protected by default: basic auth
with username admin and an auto-generated password, passed through
-envflag.enable so it never appears in the command line. Metrics are kept
for one year in a named volume; /health stays open for the healthcheck.

Refs #1432

* feat(catalog): add standalone pgAdmin4 app

Adds pgAdmin4 as its own one-click catalog app, separate from the existing
PostgreSQL + pgAdmin bundle (postgresql.json). This one ships with no
database of its own — it's for administering any reachable PostgreSQL
server, including another Openship-deployed database's private connection,
a managed cloud database, or anything else on the network.

Reuses the exact service shape already proven by postgresql.json's pgadmin
service (same image/version, port, healthcheck): dpage/pgadmin4:9.18,
PGADMIN_DEFAULT_EMAIL + PGADMIN_DEFAULT_PASSWORD (the officially documented,
fully deterministic setup — no random/log-only credential to work around),
surfaced directly in the connection card.

Also maps the pgAdmin4 brand mark in packages/ui/src/AppLogo.tsx: simpleicons
carries no pgAdmin glyph (cdn.simpleicons.org/pgadmin4 404s), so it resolves
to the project's GitHub org avatar, the same pattern already used for
Ollama, vLLM, and Miniflux.

Verified against the real image (dpage/pgadmin4:9.18): booted it standalone
with the same env vars, confirmed the /misc/ping healthcheck responds once
gunicorn finishes initializing (needs the ~60s startPeriod already used by
postgresql.json).

Verified: bun scripts/gen-catalog.ts + bunx vitest run src/apps/catalog.test.ts (46/46 passing),
bun run --cwd packages/ui lint (tsc clean).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* feat(catalog): add Listmonk app

Adds Listmonk (newsletter/mailing-list manager) as a one-click catalog app:
a private Postgres instance plus the Listmonk service, non-interactive
install + Super Admin creation on first boot via the officially documented
LISTMONK_ADMIN_USER/LISTMONK_ADMIN_PASSWORD env vars, surfaced directly in
the connection card.

commandArgv runs "./listmonk --install --idempotent --yes && exec
./listmonk" — install is a no-op on redeploy (idempotent flag), so the
same command is safe on every boot, no separate prepare step needed.

Verified against the real image (listmonk/listmonk:v6.2.0), not just docs:
- Ran the exact install+serve command against a live Postgres, confirmed
  the superadmin user is created non-interactively ("creating superadmin
  user 'admin'" in the log).
- The image's default app.address is localhost:9000 (unreachable from
  outside the container) — set LISTMONK_app__address=0.0.0.0:9000, confirmed
  it then actually listens and responds.
- Logged in via POST /admin/login with the exact generated password,
  confirmed an authenticated session (302 + session cookie, 200 on an
  authenticated /api/settings call).
- Confirmed /health returns 200 for the healthcheck.
- bun scripts/gen-catalog.ts + bunx vitest run src/apps/catalog.test.ts: 46/46 passing
  (added minEngine: 0.6.6, required by the schema whenever commandArgv is used).

Continues M3 (Tier B: app + one DB), first of this batch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(apps): declare a host port so the app can't collide with others

Without a ports entry the host port equals the container port, so a second
app on the same port fails with 'port is already allocated'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(apps): declare a host port so the app can't collide with others

Without a ports entry the host port equals the container port, so a second
app on the same port fails with 'port is already allocated'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(apps): use a unique host port, not the container port

In port mode the host port is taken from the ports entry, so 'N:N' still
collides with whatever already holds that port (80, 3000, ...). Match the
other catalog apps and publish on a distinct host port.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(apps): use a unique host port, not the container port

In port mode the host port is taken from the ports entry, so 'N:N' still
collides with whatever already holds that port (80, 3000, ...). Match the
other catalog apps and publish on a distinct host port.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(catalog): add Appwrite and Alertmanager with verified community recipes

---------

Co-authored-by: Giovanni Martins <giovannidealmeidamartins@gmail.com>
Co-authored-by: anshori <anshoriacc@gmail.com>
Co-authored-by: Asad Khan <55049186+AsadKhanAb17@users.noreply.github.com>
Co-authored-by: alkomy <alkomy@icloud.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-04 04:11:47 +02:00
fatih akyon
867e0fc7a3
fix: show referral prices on plan cards (#1592) 2026-11-04 04:11:17 +02:00
Hydra de lerne
8bcc6bcd05
fix(deploy): preserve routing during Compose source review (#1593)
* fix(deploy): preserve routing during Compose source review

* fix(deploy): report Compose fallback read failures
2026-11-04 04:10:31 +02:00
Hydra de lerne
0e6eb168bf
fix(mail): use configured senders for Cloud customer emails (#1580) 2026-11-04 02:13:29 +02:00
Hydra de lerne
5b16bdaae2
fix(assistant): keep routine tool lookups compact (#1579) 2026-11-03 20:12:49 +02:00
Hydra de lerne
e661bf924a
feat(mail): welcome Cloud customers and send invoice notices (#1578) 2026-11-03 20:09:42 +02:00