Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Add docs around WithAllowlistedMultiaddrs. Expose allowlist #63

Merged
merged 2 commits into from
Jul 3, 2022

Conversation

MarcoPolo
Copy link
Contributor

  • Adds an example on how to use the with allowlisted multiaddr option.
  • Adds a function that lets you get the allowlist object from the resource manager. Maybe this should be part of the core api, or maybe NewResourceManager should return a concrete type. I think it'll be easier to change this in a monorepo, but this should be work for now. It should be a small number of users using this right now.

@MarcoPolo MarcoPolo linked an issue Jul 3, 2022 that may be closed by this pull request
@MarcoPolo MarcoPolo mentioned this pull request Jul 3, 2022
Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

Will this be automatically rendered in the go doc for WithAllowlistedMultiaddrs?

allowlist_test.go Outdated Show resolved Hide resolved
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
@MarcoPolo
Copy link
Contributor Author

Will this be automatically rendered in the go doc for WithAllowlistedMultiaddrs?

Yup! And they get executed during tests: https://go.dev/blog/examples
Screen Shot 2022-07-03 at 9 28 13 AM

@MarcoPolo MarcoPolo merged commit fd40cdb into master Jul 3, 2022
@MarcoPolo MarcoPolo deleted the marco/docs-and-expose-allowlist branch July 3, 2022 16:30
@MarcoPolo MarcoPolo mentioned this pull request Jul 7, 2022
41 tasks
@ajnavarro ajnavarro mentioned this pull request Aug 24, 2022
72 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defend against eclipse attacks with ALLOW-list support
2 participants