From 2f08b33931e37677a36633f6e7772501f44cabd4 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 11 May 2026 13:12:08 -0600 Subject: [PATCH 1/2] feat(sync): add job to sync OpenAPI specification to SDK repository - Implemented a new workflow step to clone the SDK repository and update the OpenAPI specification. - Configured Git user details for the sync operation and added a commit message format that includes source and update timestamp. - Ensured successful synchronization of OpenAPI documentation to the SDK repository. --- .github/workflows/sync-openapi-docs.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/sync-openapi-docs.yml b/.github/workflows/sync-openapi-docs.yml index 1a6b1e87b..147d8d97e 100644 --- a/.github/workflows/sync-openapi-docs.yml +++ b/.github/workflows/sync-openapi-docs.yml @@ -110,3 +110,24 @@ jobs: echo "✅ OpenAPI synced to CLI repository successfully" + - name: Sync to SDK repository + run: | + git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/sdk.git sdk-repo + + cd sdk-repo + + cp -f ../openapi.json openapi.json + + git config user.name "Dokploy Bot" + git config user.email "bot@dokploy.com" + + git add openapi.json + git commit -m "chore: sync OpenAPI specification [skip ci]" \ + -m "Source: ${{ github.repository }}@${{ github.sha }}" \ + -m "Updated: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" \ + --allow-empty + + git push + + echo "✅ OpenAPI synced to SDK repository successfully" + From 282d358d048cef0ef648e872bab5418b819e10fc Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 11 May 2026 13:34:13 -0600 Subject: [PATCH 2/2] fix(validation): update regex for directory validation in WebSocket utility - Modified the regex pattern in the `readValidDirectory` function to allow for a wider range of characters, including colons, improving the validation of directory names. - This change enhances input integrity by ensuring valid directory formats are accepted. --- apps/dokploy/package.json | 2 +- packages/server/src/wss/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index 69975cbc6..cc9f79f9e 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -1,6 +1,6 @@ { "name": "dokploy", - "version": "v0.29.3", + "version": "v0.29.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/server/src/wss/utils.ts b/packages/server/src/wss/utils.ts index 0ea7485f9..bce5aa245 100644 --- a/packages/server/src/wss/utils.ts +++ b/packages/server/src/wss/utils.ts @@ -40,7 +40,7 @@ export const readValidDirectory = ( directory: string, serverId?: string | null, ) => { - if (!/^[\w/. -]{1,500}$/.test(directory)) { + if (!/^[\w/. :-]{1,500}$/.test(directory)) { return false; }