mirror of https://github.com/grpc/grpc.git
Remove grpc.internal. channel args at API sites (#27536)
* Remove grpc.internal. channel args at API sites gRPC uses channel args both as an API surface and as an internal implementation detail. The merits of this are debatable, but it's probably the best mechanism we have right now, and changing it would be an effort best not undertaken today. In order to focus hardening efforts to the highest payoff, this change introduces a filter to remove any internal channel args received from outside our public API, effectively guaranteeing that any usage of these arguments comes from within code that we maintain. There will likely be a whack-a-mole game over the following weeks to mark more channel arguments as internal - I have not done a thorough audit! * get api usage right * fix * fixes * rename internal -> test_only so it passes throughpull/27545/head^2
parent
fe260f9a35
commit
2f56cb3d87
12 changed files with 59 additions and 7 deletions
@ -0,0 +1,19 @@ |
||||
actions { |
||||
create_channel { |
||||
target: "\001\000\000\000\323\273`*" |
||||
channel_args { |
||||
key: "grpc.channelz_channel_node" |
||||
resource_quota { |
||||
} |
||||
} |
||||
channel_args { |
||||
resource_quota { |
||||
} |
||||
} |
||||
channel_args { |
||||
resource_quota { |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue