0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-18 06:55:56 +00:00
Commit graph

178 commits

Author SHA1 Message Date
Saim Shafique
057d65de7a
fix(deploy): let webhook and CLI deploys approve reviewed Compose changes (#1675)
* fix(deploy): let webhooks and CLI accept reviewed Compose changes

Webhook and CLI deploys hit COMPOSE_REVIEW_REQUIRED with no way through the gate, and the refusal hid what changed. Accept the current Compose source explicitly per deploy (--accept-compose-changes, or acceptComposeChanges on the hook), and surface the added/changed/removed services in the CLI error and the webhook delivery record.

* test(contracts): include acceptComposeChanges in deployment schema flags

The Compose review gate added acceptComposeChanges to
CreateDeploymentSchema without updating the contract test that
enumerates the schema's public flags, so the contracts suite failed
on CI. Add the flag to the expected list.

* docs(cli): list --accept-compose-changes in the deploy reference

The new deploy flag was missing from the generated CLI reference,
so docs:check failed with a stale reference. Add the row in
declaration order.

* Retain explicit Compose approval through shared deployment admission

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-11 18:57:58 +02:00
Rohan Das
6565726c01
feat(dns): add DigitalOcean DNS provider (#1707)
* feat(dns): add DigitalOcean DNS provider support

- Add DigitalOcean DNS management for custom domains and DNS-verified HTTPS
- Preserve record ownership with paired TXT markers and update provider setup guidance

* fix(dns): parse DigitalOcean record IDs from formatted JSON

- Handle compact and pretty-printed API responses, with a fallback when Python is unavailable
- Cover record cleanup and API error responses in DNS hook tests

* fix(dns): harden DigitalOcean DNS provider after review

- Decode TXT input before writing so quoted values compare in-sync
- Treat zones not delegated to DigitalOcean nameservers as pending
- Resolve zones with one paginated domain list and strip wildcard labels
- Carry credential id and provider on unauthorized lookups so the
  reconnect modal targets the rejected credential
- Clean up ownership markers when the marked record is already gone
- Report read-only token verification accurately and surface missing
  write scope on 403
- Guard token redaction and requests against an empty token
- Share DNS name helpers and the DNS-01 cleanup hook template

* fix(dns): release owned records from inactive DigitalOcean zones

- Allow DNS cleanup to resolve inactive zones while keeping writes restricted to active zones
- Fetch DigitalOcean records and ownership markers concurrently

* fix(dns): resolve provider credentials oldest first

* Require strict JSON record IDs before DNS challenge cleanup

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-11-11 15:23:24 +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
a6275b8519
Support hosted Jobs on Manage-connected SSH servers (#1712) 2026-11-11 02:32:32 +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
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
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
Hydra de lerne
8c76cf8f22
fix(migration): finish parked imports without touching originals (#1608) 2026-11-04 19:15:05 +02:00
Hydra de lerne
9ab270c95c
feat(updates): add scoped host patches and observable advisory scans (#1566)
* feat(updates): allow workspace admins to pause runtime advisory checks

* fix(updates): repair upgrade fixture and reuse shared policy guards

* feat(updates): add scoped host patches and observable advisory scans

* fix(updates): report handled host maintenance failures

* fix(updates): load host advisory operations on demand

* refactor(updates): share server patch run lifecycle and logs

* test(cli): align compose sync with namespace isolation

* test(mail): exercise support delivery over verified TLS
2026-11-03 19:37:18 +02:00
Hydra de lerne
baae5bd29e
fix(billing): recover after removing a canceled checkout server (#1575)
* fix(billing): recover deleted workspace selections

* docs(api): refresh device authorization references
2026-11-03 18:58:45 +02:00
Hydra de lerne
6b35df474d
fix(referrals): unify program naming and move code entry below plans (#1565) 2026-11-03 11:11:09 +02:00
Hydra de lerne
46b14b85dc
fix: run agents on existing paid Cloud instances (#1560)
* fix: run agents on existing paid Cloud instances

* fix: serialize managed agent setup reconnection
2026-11-03 03:36:48 +02:00
Hydra de lerne
68c2cc6dba
fix(agents): discover connected models through MCP (#1556) 2026-11-03 01:58:42 +02:00
Hydra
c13195e099 release: finalize 0.9.7 with scoped agents and chat integrations 2026-11-01 21:16:13 +02:00
Hydra
887aaf5d9e Merge current feature tree with released 0.9.6 2026-11-01 20:30:42 +02:00
Hydra
1c726e6f1a feat: add scoped AI agents, automations and chat apps 2026-11-01 20:29:07 +02:00
Mohamed Farahat
4e8f4c627b
feat(auth): add generic OIDC login for self-hosted dashboards (#1489)
* feat(auth): add generic oidc login for self-hosted dashboards

Register a Better Auth generic-oauth provider (id oidc) when OIDC_ISSUER, OIDC_CLIENT_ID and OIDC_CLIENT_SECRET are all set, advertise it with its OIDC_DISPLAY_NAME label, and render it on login and registration. Existing users link only when the IdP sends email_verified true, the invite-only gate still applies, and zero-auth instances reject the OAuth2 routes. Refs #1469.

* fix(auth): verify oidc id tokens against the issuer jwks

Verify the ID token signature against the discovered JWKS with the configured issuer, client audience, time claims and authorized party, and fail closed instead of falling back to userinfo. Require discovery issuer equality, require https for production endpoints except loopback, and route the code exchange through the validated token endpoint. Addresses review on #1489.

* fix(auth): validate the oidc authorize endpoint and expire discovery

Refuse OIDC sign-in unless discovery validates, require and pin the authorization endpoint the redirect uses, expire cached discovery after one hour and fail closed on a failed refresh, and cover the production issuer boot check. Addresses review on #1489.

* refactor(auth): inject the oidc discovery loader into account security

Pass loadOidcDiscovery through the plugin options like getAuthMode instead of a lazy import, so the module keeps no runtime dependency on the env-loading provider code.

* fix: verify OIDC identities and bind tokens to sign-in state

* fix(auth): isolate OIDC identities and enforce self-hosted login boundaries

* test(auth): align SDK parity config mock with OIDC policy

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-10-27 07:27:51 +03:00
Hydra de lerne
9e2072761e
feat: add Cloud affiliates and reviewed shared environment edits (#1483)
* feat: add Cloud affiliates and reviewed shared environment edits

* test: verify affiliate identity through HTTP and native authorization

* test: resolve hoisted release dependencies without runtime downloads
2026-10-25 22:03:54 +03:00
Hydra de lerne
c9863267a5
feat: add runtime security advisories and annual Cloud billing (#1453)
* feat: add runtime security advisories and annual Cloud billing

* fix(updates): show runtime advisories in the global update center

* fix(updates): synchronize advisory consent across global views

* refactor(updates): reuse normal refresh and environment flow
2026-10-24 13:37:05 +03:00
Hydra de lerne
f3a55b7f49
fix(security): ship patched runtimes and add 0.9.4 changelog (#1430)
* fix(security): pin patched Node and Bun runtimes across releases

* fix(build): pass bootstrap selection independently of eval arguments

* test(build): expect the patched default Bun image in detection

* docs: prepare 0.9.4 changelog since 0.9.3
2026-10-23 20:31:37 +03:00
fatih akyon
abe55addc5
fix(deploy): queue latest pushes and optionally cancel obsolete builds (#1437)
* fix: queue pushes during a running deploy

A push that lands while its project is still deploying is now recorded as queued and deployed when that deployment finishes, instead of failing for good.

* fix(deploy): share durable admission for queued pushes

* fix(deploy): revalidate approvals before automatic cancellation

* test(deploy): align admission mocks and migration expectations

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
2026-10-23 20:13:52 +03:00
Hydra
671b8b7c13 fix(notifications): align controls and paginate delivery history 2026-10-23 19:04:16 +03:00
Hydra de lerne
ce22bdc810
feat(services): build services from repository folders (#1429)
* feat(services): add repository builds to the shared service picker

* fix(services): reset public routing when changing service sources
2026-10-23 17:41:10 +03:00
Hydra
52dc66b6b0 fix(edge): refresh route protection integration and private rollback 2026-10-22 18:54:00 +03:00
Hydra
6c1693d576 test(swarm): retain real cloud routing without circular partial mocks
Regenerate the combined MCP inventory and document unsupported swap controls.
2026-10-22 17:24:14 +03:00
Hydra
7753ed94cd Merge remote-tracking branch 'refs/remotes/origin/swarm-combined-main-20261022' into feat/swarm-combined-20261022
# Conflicts:
#	apps/api/src/modules/system/server-management.routes.ts
#	packages/adapters/src/index.ts
#	packages/db/drizzle/meta/_journal.json
2026-10-22 17:12:15 +03:00
Hydra
05125d334c Merge remote-tracking branch 'refs/remotes/origin/swarm-combined-discovery-20261022' into feat/swarm-combined-20261022
# Conflicts:
#	apps/api/src/modules/deployments/build-pipeline.prebuilt-image.test.ts
#	apps/web/content/docs/api/mcp-tools.mdx
#	packages/platform/src/engine/modules/deployments/build-pipeline.ts
2026-10-22 17:11:35 +03:00
Hydra
edcaa8cd1f fix(tokens): enforce capability scope across deployment operations 2026-10-22 13:57:13 +03:00
Hydra
b4499b90d9 fix(billing): integrate current main and tenant isolation guards 2026-10-22 07:42:32 +03:00
Hydra
d2b34f4fbd fix(routing): align wizard protection with controller support
Merge the updated Swarm discovery parent and regenerate MCP references. Match the wizard to the existing self-hosted controller gate so hosted BYOC cannot stage unsupported route passwords. Cover hosted BYOC, self-hosted servers, cloud targets, and cluster targets with the real editor.
2026-10-22 01:58:07 +03:00
Hydra
fa2ce8d300 Merge main and regenerate the Swarm MCP reference 2026-10-22 01:43:37 +03:00
Hydra
22eefc7d25 feat(deployments): retry completed Docker builds without rebuilding 2026-10-21 21:46:37 +03:00
Hydra
1814a86661 Merge main into Manage plans and refresh shared API documentation 2026-10-21 20:53:29 +03:00
Hydra
a87be9bb03 refactor: focus runtime updates on images and visible version settings 2026-10-21 20:14:23 +03:00
Hydra
8f921fb8ba feat: refresh runtime images through shared redeploy controls 2026-10-21 18:16:30 +03:00
Hydra
c2ed05c20e feat(billing): complete Manage clients and hosted certificate checks 2026-10-21 16:56:06 +03:00
Hydra
6f01f659a7 Merge remote-tracking branch 'origin/main' into feat/manage-and-cloud-plans 2026-10-21 16:29:23 +03:00
Hydra
8da757519f feat(billing): add hosted Manage plans and separate Cloud pricing 2026-10-21 16:29:23 +03:00
Hydra
1a6ebef7af chore(edge): stack route protection on Swarm inspection 2026-10-21 03:50:53 +03:00
Hydra
2fd3c09d65 feat(swarm): deploy projects through the shared cluster lifecycle 2026-10-21 03:26:33 +03:00
Hydra
b752089aee feat(swarm): inspect existing clusters and protect scheduler-owned workloads 2026-10-21 01:34:28 +03:00
Hydra
5ea9548ee3 fix(webhooks): isolate endpoint quotas behind shared IPs 2026-10-21 01:07:14 +03:00
Hydra
f245093011 feat(edge): add password-protected self-hosted routes 2026-10-20 15:03:41 +03:00
DrMxrcy
4c3de97298
docs: token capabilities for domains and deployments 2026-10-17 03:41:45 -04:00
Hydra
200cd8735a test: validate preview and role-configuration admission together 2026-10-17 03:46:27 +03:00
Hydra
a138cb7f25 feat: automate cross-stack deployment environments and output 2026-10-17 03:44:57 +03:00
Hydra
1dbcd2d7f6 fix(roles): honor shared startup verification settings 2026-10-17 02:25:43 +03:00