Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add swarm mode overlay networking security model #25135

Merged
merged 1 commit into from Aug 12, 2016

Conversation

sfsmithcha
Copy link
Contributor

@sfsmithcha sfsmithcha commented Jul 27, 2016

Describes the overlay network security model for swarm mode. Also updates the networking user guide to use the new menu.md/index.md model

Signed-off-by: Charles Smith charles.smith@docker.com

to five nodes that particpate in an overlay network called
`payment-card-net`.

In this case, only the five nodes on the `payment-card-net` exchange overlay
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgoelzer , please verify this behavior. Wouldn't at least one manager need to be in that group. Meaning managers know about overlay in addition to any participating nodes?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're correct. All managers know about all overlay networks. What I meant (but phrased poorly) is that of the worker nodes, only those five would know about payment-card-net.

Managers are like superusers -- they know everything and can do everything. It's very bad if one gets compromised. Maybe we should say that explicitly here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgoelzer I think this is clearer now. PTAL

@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 4 times, most recently from d009df5 to f67ea38 Compare July 27, 2016 18:20
@@ -1,538 +0,0 @@
<!--[metadata]>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you git mv this file, or "copy" and remove? currently it doesn't show that is was renamed from dockernetworks.md to index.md, and the git history is more difficult to find because of that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i should have done a git mv. i did a FS rename. is that fixable? rename it back and then git mv?


Two key architectural components provide the enhanced security of swarm mode:

* **Unidirectional manager to worker communication model.** Swarm mode worker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't introduce the existence of Workers and Managers. Maybe an image first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add a link for more info on workers mgrs.

@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 3 times, most recently from 2f16c37 to f171ed4 Compare July 27, 2016 21:55
@sanimej
Copy link

sanimej commented Jul 27, 2016

@sfsmithcha get-started-overlay.md is still referring to the non-swarm mode of overlay network creation with the KV store. I think we should mention the swarm mode first here and move the current content into a section for legacy or non-swarm mode.

@sfsmithcha
Copy link
Contributor Author

@sanimej that was out of scope of this original PR, but now I have opened it up in the index.md, so I will try to rework it.

@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 3 times, most recently from 1c06795 to 296753d Compare July 27, 2016 22:21
@sfsmithcha
Copy link
Contributor Author

@diogomonica , @sanimej , @mavenugo , @nathanleclaire PTAL.

Still have an outstanding question about how to resolve the issue with the strongly worded bit about network access.


# Encryption and overlay networks

Overlay networks do not enable encryption between nodes by default. To enable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be Overlay driver does not encrypt the vxlan traffic between the nodes by default

@sfsmithcha
Copy link
Contributor Author

updated @diogomonica @thaJeztah PTAL. Only looking at overlay-security-model.md, and overlay sections of index.md and get-started-overlay.md.

@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 3 times, most recently from 980d9b5 to 997cc9b Compare August 4, 2016 20:14
@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 3 times, most recently from 16f1835 to cabee9b Compare August 5, 2016 23:30
dt0zvqn0saezzinc8a5g4worx
```

When you enable overlay encryption, Docker creates IPSEC tunnels between all the
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrjana PTAL at this paragraph

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfsmithcha this isnt correct. The IPsec tunnels are established between the nodes only on-demand. i.e, only between the nodes where the tasks are scheduled on that particular network.

@thaJeztah
Copy link
Member

thanks @sfsmithcha, two minor nits/suggestions, but LGTM otherwise,

would like to have @mrjana have a quick peek at #25135 (comment) though

@SvenDowideit SvenDowideit modified the milestones: 1.12.1, 1.12.0 Aug 9, 2016
@sfsmithcha sfsmithcha changed the title add overlay networking security model node add swarm mode overlay networking security model Aug 10, 2016
Overlay networks for a swarm are not available to unmanaged containers. For more information refer to [Docker swarm mode overlay network security model](overlay-security-model.md).


## Overlay networking with an external key-value store
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we mention the fact that these 2 modes of operations are not compatible with one another ?
Meaning, external key-value store option wont work with swarm-mode.

@sfsmithcha sfsmithcha force-pushed the add_overlay_networking_note branch 2 times, most recently from 45a12c4 to b6b615d Compare August 12, 2016 20:15
Signed-off-by: Charles Smith <charles.smith@docker.com>
@sfsmithcha
Copy link
Contributor Author

CI errors not related to this PR.

@sfsmithcha sfsmithcha merged commit ccf3dd8 into moby:master Aug 12, 2016
@sfsmithcha sfsmithcha deleted the add_overlay_networking_note branch August 12, 2016 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants