-
Notifications
You must be signed in to change notification settings - Fork 886
feat: add flag to disable all direct connections instance-wide #7936
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
Conversation
codersdk/deployment.go
Outdated
{ | ||
Name: "Disable Direct Connections", | ||
Description: "Disable peer-to-peer (aka. direct) workspace connections. All workspace connections from the CLI will be proxied through Coder (or custom configured DERP servers) and will never be peer-to-peer when enabled. Workspaces may still reach out to STUN servers to get their address until they are restarted after this change has been made, but new connections will still be proxied regardless.", | ||
Flag: "disable-direct", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think disable-direct-connections would be a bit easier to understand in isolation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable-direct-connections
is going to be used as a global flag in the CLI in another PR, so I'm changing this to block-direct-connections
.
Adds
coder server
flag--disable-direct
which does the following:-1
and fully removes any STUNOnly nodesTODO:
Closes #7422