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

Read disperser allowlist from json file #505

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Instead of configuring allowlist from cli flag, read from json file.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim requested review from dmanc and mooselumph April 20, 2024 00:02
@ian-shim ian-shim force-pushed the allowlist-json-file branch from 861602b to 38e1915 Compare April 20, 2024 00:03
@ian-shim ian-shim marked this pull request as ready for review April 20, 2024 00:09
}
}

allowlist := parseAllowlistEntry(c)
Copy link
Contributor

Choose a reason for hiding this comment

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

This only reads the entries of the file once right? Don't you want to periodically check the file and update the parameters accordingly?

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'll add that in a separate PR

Copy link
Contributor

@dmanc dmanc left a comment

Choose a reason for hiding this comment

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

lgtm, we should make sure it can use both flags but will prioritize the json file so we can upgrade safely.

@ian-shim ian-shim merged commit 5635f6c into Layr-Labs:master Apr 20, 2024
5 checks passed
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