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

feat: add noise support #7365

Merged
merged 2 commits into from
May 26, 2020
Merged

feat: add noise support #7365

merged 2 commits into from
May 26, 2020

Conversation

Stebalien
Copy link
Member

We can add a proper configuration option in a followup patch after the RC.

We can add a proper configuration option in a followup patch after the RC.
@@ -21,7 +27,7 @@ func Transports(pnet struct {
return opts
}

func Security(enabled bool) interface{} {
func Security(enabled bool, securityTransportOverride []string) interface{} {

Choose a reason for hiding this comment

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

@Stebalien Why have we added the securityTransportOverride option ? Is there any use case for it right now ?

Copy link
Member Author

Choose a reason for hiding this comment

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

At the moment, go-ipfs prefers TLS, then SECIO, then Noise. That means the noise transport will never be used by default. The override option lets us actually use noise by:

  • Putting it before TLS.
  • Removing SECIO.
  • Etc...

See the tests and the new experimental-features documentation for details. If it doesn't make sense, I'll expand the documentation in a followup PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

(also provides a way to disable noise if it causes problems)

Copy link

@aarshkshah1992 aarshkshah1992 left a comment

Choose a reason for hiding this comment

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

Just one comment to understand when we would want to override security transports.

@Stebalien Stebalien merged commit 812d902 into master May 26, 2020
@Stebalien Stebalien mentioned this pull request May 26, 2020
77 tasks
@hacdias hacdias deleted the feat/noise branch May 9, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants