Repository navigation
feat(networks): add encryption option for Docker overlay networks - #6094
Open
SyncWithRaj wants to merge 2 commits into
Open
SyncWithRaj wants to merge 2 commits into
SyncWithRaj wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
Adds support for creating encrypted Docker overlay networks (
--opt encrypted/Options: { encrypted: "true" }) from the Networks UI.packages/server/src/db/schema/network.ts+ Drizzle migration): Added anencryptedboolean column (defaultfalse) to thenetworktable and includedencryptedincreateSchema/apiCreateNetwork.packages/server/src/services/network.ts): AddedbuildNetworkCreateOptionsto setOptions.encrypted = "true"only whendriver === "overlay"andencryptedis enabled (preserving existingMTUoptions), plusisNetworkEncryptedto detect both"true"and""from Docker inspect responses.handle-network.tsx,show-networks.tsx): Added an overlay-only Encrypted toggle in the Add Network modal (disabled and auto-reset when switching away fromoverlay, matchingAttachable), along with an Encrypted badge and table column in the Networks list.apps/dokploy/__test__/services/network-options.test.ts): Added 9 unit tests covering overlay encryption, MTU preservation, ignoring encryption onbridgenetworks,isNetworkEncrypteddetection, and Zod validation.Verified locally:
secure-overlaywith encryption enabled and verified in Docker/UI).pnpm --filter=dokploy test __test__/services/network-options.test.ts— 9 passed (9)pnpm biome checkon all modified files — 0 issuespnpm --filter=@dokploy/server typecheck && pnpm --filter=dokploy typecheck— 0 errorsChecklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
closes #6088
Screenshots (if applicable)


Confidence Score: 5/5
The PR appears safe to merge; the previous finding is fixed and no new actionable issues were found.Summary
Adds an overlay-only encryption option, saves it with each network, and shows it in the Networks UI.
Reviews (2) · Last reviewed commit: "fix(networks): sync stale encrypted flag..." · Reviewed by Greptile