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

fix!: change grpc deny to allow #6218

Merged
merged 3 commits into from Mar 20, 2024

Conversation

SWvheerden
Copy link
Collaborator

Description

Removes the antipattern of a deny list and puts in an allow list

Motivation and Context

A deny list is an antipattern because new methods are not automatically added to the list

Replaces: #6177

@SWvheerden SWvheerden mentioned this pull request Mar 14, 2024
4 tasks
Copy link

github-actions bot commented Mar 14, 2024

Test Results (CI)

    3 files    120 suites   49m 46s ⏱️
1 268 tests 1 268 ✅ 0 💤 0 ❌
3 796 runs  3 796 ✅ 0 💤 0 ❌

Results for commit e16e374.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Mar 14, 2024
Copy link

github-actions bot commented Mar 14, 2024

Test Results (Integration tests)

 2 files  11 suites   32m 49s ⏱️
32 tests 31 ✅ 0 💤 1 ❌
34 runs  32 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit e16e374.

♻️ This comment has been updated with latest results.

stringhandler and others added 2 commits March 19, 2024 10:12
Co-authored-by: Stan Bondi <sdbondi@users.noreply.github.com>
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

Some comments below, thnaks.

@@ -119,18 +119,18 @@ pub fn prompt_default_config() -> [&'static str; 12] {
/// Returns the default configuration file template in parts from the embedded presets. If use_mining_config is true,
/// the base node configuration that enables mining is returned, otherwise the non-mining configuration is returned.
pub fn get_default_config(use_mining_config: bool) -> [&'static str; 12] {
let base_node_deny_methods = if use_mining_config {
include_str!("../../config/presets/c_base_node_b_mining_deny_methods.toml")
let base_node_allow_methods = if use_mining_config {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about these methods second_layer_grpc_enabled ? I assume it should be set from initial startup.
A node could also double as mining node and second layer comms node.

Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

utACK

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Mar 19, 2024
@SWvheerden SWvheerden merged commit 7665067 into tari-project:development Mar 20, 2024
14 of 16 checks passed
@SWvheerden SWvheerden deleted the sw_allow_list branch April 15, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants