Skip to content

feat: add noise support#7365

Merged
Stebalien merged 2 commits intomasterfrom
feat/noise
May 26, 2020
Merged

feat: add noise support#7365
Stebalien merged 2 commits intomasterfrom
feat/noise

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.
}

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