Skip to content

fix: integrate verified bugs after the API and SDK migration - #891

Merged
Hydralerne merged 75 commits into
mainfrom
feat/bugfix-integration-2026-09-15
Sep 16, 2026
Merged

Hydralerne merged 75 commits into
mainfrom
feat/bugfix-integration-2026-09-15

Conversation

@Hydralerne

@Hydralerne Hydralerne commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Fixes deployment, backup, mail, GitHub integration, and dashboard bugs reviewed from the first 50 open issues on 15 September. HTTP, native SDK, and CLI paths use the shared platform implementation.

Supersedes #890. Its complete commit history is retained here; #891 is the single integration PR for this review.

  • Deployment/configuration: restore project environment editing for service projects, align project read/write scope, share Compose environment resolution across deployment and recovery, warn about service overrides, protect masked build-argument edits, encrypt service configuration and saved snapshots, repair Compose/self-app routing, and correct branch rescans, uploads, archive handling, and submodule checkout.
  • Reliability: fix SFTP setup/cleanup deadlines, durable backup outcomes and retention, job/backup notifications, GitHub redelivery that retains completed targets, rate-limit handling, branch pagination, update-cache deadlines, mail TLS/database setup, and Amavis restart recovery.
  • Existing workflows: restore the server modal, correct MCP/ingress guidance, reject silent empty-monorepo creation, and guard the unavailable server-cutover workflow while repairing packaged transfer commands.

The issue ledger records each report, comparison with main, integration commits, verification, and remaining limits. It covers 28 resolved or already-fixed reports, 14 deferred feature requests, and 8 other reports left open for remaining capabilities or missing diagnostics. Reports were closed pending integration; this PR was merged into main on 16 September 2026.

15 contributor PRs are preserved as GitHub merges into this branch, including #883. Original commits and authorship remain; suitable PRs were adapted before merging. Redundant or out-of-scope PRs have review reasons recorded in the ledger.

The issue audit accounts for all 50 outcomes and 44 resolution commits. The logic review corrected these inconsistencies and regressions:

  • Project env reads exclude service-scoped rows, preventing duplicate project keys and false override labels in the restored editor (69e47292).
  • Backup and restore use the deployment Compose resolver for credentials, including legacy/explicit empty values and names-only required-variable errors (9c61d7d9).
  • Rollback previews use the same resolver, so unchanged passthroughs and authored empty literals agree with deployment behavior (9c61d7d9).
  • Partial GitHub push retries retain completed projects even after a newer commit deploys (f4d1b38a).
  • Stalled SFTP control requests release retention work with explicit failed-key results (e1850f22).
  • Branch pagination preserves keyboard selection when newly loaded names sort earlier (2a78881f).

Each new regression failed before its fix and passed afterward. The changes reuse the existing Compose resolver, receipt, timeout and selector components. Rollback coverage now calls the real preview service with repository rows instead of reconstructing its implementation in a test. Contradictory self-hosted DNS/TLS guidance was also corrected.

Validation for the latest logic changes: 289 affected tests across 26 files passed, plus API and platform TypeScript checks. The scope, credential-resolution and preview regressions failed before their fixes.

Broader validation at 7b1c66cb, before this follow-up: 13,331 tests passed across 1,003 files and all 10 workspace tasks, with no skipped tests (5 unchanged task results reused). All 688 SDK/CLI tests passed again without caching. All 22 build/typecheck tasks and documentation checks passed: 160 pages, 367 SDK methods, 559 HTTP routes, 204 CLI paths, 224 CLI examples and 107 SDK examples. The actual npm tarball passed outside the workspace on Node 22.21.1 and 24.21.0, covering ESM/CommonJS, NodeNext types, passive imports, native deployment/persistence, tenant isolation/revocation, lifecycle teardown and CLI behavior. Earlier real Docker/PostgreSQL/HTTP checks for unchanged storage, rollback, routing and mail paths remain documented in the ledger.

All 9 CI jobs passed at 7b1c66cb: run 35036082737. The current revision is checked separately in PR checks.

Storage upgrade: existing service configuration is encrypted in guarded startup batches using the installation's existing key. Preserve BETTER_AUTH_SECRET with the database backup; downgrading to an older storage reader requires the matching pre-upgrade backup. Use Data Transfer with secrets included for moves between keys. The environment guide documents these requirements.

GitHub redelivery remains manual. The automatic whole-instance server migration is unavailable; the supported Data Transfer workflow is documented and the broader issue remains open. Merged into main at 4e66349c27b48df13697c1b6d4a95f7a6cf4a3d6; the completed integration branches and worktree have been removed.

lagmandu and others added 30 commits September 4, 2026 22:34
…fallback

Make the PostgreSQL sidecar host port configurable via OPENSHIP_MAIL_DB_PORT
to resolve port conflicts when port 5432 is already occupied by a host service.
Adds automatic free-port discovery (5433..5460) when the default port is
occupied, retains previously assigned ports for existing clusters, and
reconciles daemon SQL connection configs on non-default ports.

Closes #828
…aths on boot

Postfix and Dovecot inside the openship-mail container load certificates from /etc/ssl/certs/iRedMail.crt and /etc/ssl/private/iRedMail.key. Because /etc/ssl is ephemeral, container recreations and image updates revert to the baked self-signed certificates even when valid certificates are mounted at /etc/letsencrypt.

This reconciles /etc/letsencrypt certificates on every boot into the daemon paths if present, ensuring TLS clients never fail with self-signed certificate errors.

Fixes #837
- Check project and service domain rows in redeploy unreachable services check
- Support multi-route publicEndpoints on services
- Direct user to Domains tab in warning modal action and suggested fix copy
docker restart keeps /run, so Amavis's leftover pid can now belong to
Dovecot and Net::Server abort-loops instead of listening on 10026.

Co-authored-by: Cursor <[email protected]>
Load the first branch page during preparation and fetch later pages as the picker scrolls. Preserve current main behavior while keeping the selected branch available.
Reuse one explicit-key AES-GCM implementation in the shared repository layer.
Protect live env/build args, advanced configuration, drift baselines, and frozen
service snapshots; decode legacy rows and convert them in bounded, guarded
startup batches. Re-encrypt transfers for the receiving installation and redact
protected configuration from transfers that omit secrets.

Verify repository semantics, native/HTTP masking, cross-key HTTP transfers,
PostgreSQL update races, and real Docker rollback with the original secret.
@Hydralerne Hydralerne mentioned this pull request Sep 15, 2026
5 tasks
@Hydralerne
Hydralerne marked this pull request as ready for review September 15, 2026 22:14
@Hydralerne
Hydralerne marked this pull request as draft September 15, 2026 23:00
@Hydralerne
Hydralerne marked this pull request as ready for review September 15, 2026 23:41
Project reads now match project writes and exclude service-scoped rows. Verify native and HTTP reads with duplicate keys, preview values and masked secrets.

Refs #881, #844.
Use the deployment resolver for backup and restore credentials and rollback previews. Resolve stored Compose expressions, distinguish authored blanks from legacy passthroughs, and reject unresolved required backup variables without exposing values.

Replace the mirrored rollback unit case with real repository and preview coverage. Refs #844.
@Hydralerne
Hydralerne merged commit 4e66349 into main Sep 16, 2026
8 checks passed
@Hydralerne
Hydralerne deleted the feat/bugfix-integration-2026-09-15 branch September 16, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants