-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add mode to PipeInstance #8423
Add mode to PipeInstance #8423
Conversation
@athampy could fix the formatting error? Thanks! |
@dio updated |
api/envoy/api/v2/core/address.proto
Outdated
@@ -20,6 +20,9 @@ message Pipe { | |||
// Paths starting with '@' will result in an error in environments other than | |||
// Linux. | |||
string path = 1 [(validate.rules).string = {min_bytes: 1}]; | |||
|
|||
// [#not-implemented-hide:] | |||
uint32 mode = 2 [(validate.rules).uint32 = {lte: 777}]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lte: 0777
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0777 != 777 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, protobuf doesn't accept octal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it does but proto_format
insists on decimal representation
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
/wait |
api/envoy/api/v2/core/address.proto
Outdated
@@ -20,6 +20,9 @@ message Pipe { | |||
// Paths starting with '@' will result in an error in environments other than | |||
// Linux. | |||
string path = 1 [(validate.rules).string = {min_bytes: 1}]; | |||
|
|||
// [#not-implemented-hide:] | |||
uint32 mode = 2 [(validate.rules).uint32 = {lte: 777}]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0777 != 777 :)
Signed-off-by: Akhil Thampy <[email protected]>
Signed-off-by: Akhil Thampy <[email protected]>
/retest |
🐴 hold your horses - no failures detected, yet. |
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with small comments, thanks.
/wait
docs/root/intro/version_history.rst
Outdated
* router: exposed DOWNSTREAM_REMOTE_ADDRESS as custom HTTP request/response headers. | ||
* api: added ability to specify `mode` for :ref:`Pipe <envoy_api_field_core.Pipe.mode>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge issue here, also please alpha short api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Akhil Thampy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a few small comments, thanks you!
/wait
docs/root/intro/version_history.rst
Outdated
@@ -32,6 +33,7 @@ Version history | |||
* thrift_proxy: added support for cluster header based routing. | |||
* thrift_proxy: added stats to the router filter. | |||
* tls: remove TLS 1.0 and 1.1 from client defaults | |||
* router: exposed DOWNSTREAM_REMOTE_ADDRESS as custom HTTP request/response headers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: Akhil Thampy <[email protected]>
/retest |
🙀 Error while processing event:
|
Signed-off-by: Akhil Thampy <[email protected]>
699486c
to
d0d9e00
Compare
Signed-off-by: Akhil Thampy <[email protected]>
Looks like a legit ASAN failure. PTAL. /wait |
Signed-off-by: Akhil Thampy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* master: (167 commits) stats: Avoid asserts in fuzz-tests by eliminating arbitrary length limits, using the new MemBlock wrapper for memcpy (envoyproxy#8779) Make %UPSTREAM_LOCAL_ADDRESS% access-log format work for HTTP requests. (envoyproxy#9362) tools: API boosting support for using decls and enum constants. (envoyproxy#9418) Fix incorrect cluster InitializePhase type (envoyproxy#9379) build: fix merge race between envoyproxy#9241 and envoyproxy#9413. (envoyproxy#9427) fuzz: fix incorrect evaluator test (envoyproxy#9402) server: fix bogus startup log message (envoyproxy#9404) tools: Add protoxform tests (envoyproxy#9241) api: options after import (envoyproxy#9413) misc: use std::move instead of constructing a copy (envoyproxy#9415) tools: API boosting support for rewriting elaborated types. (envoyproxy#9375) docs: fix invalid transport_socket value (envoyproxy#9403) fix typo in docs (envoyproxy#9394) srds: remove to-de-removed scopes first and then apply additions to avoid scope key conflict. (envoyproxy#9366) api: generate whole directory and sync (envoyproxy#9382) bazel: Add load statements for proto_library (envoyproxy#9367) Fix typo (envoyproxy#9388) Correct test of OptionsImpl argc type (Was: Correct type for std::array size() result) (envoyproxy#9290) http1 encode trailers in chunk encoding (envoyproxy#8667) Add mode to PipeInstance (envoyproxy#8423) ...
Signed-off-by: Akhil Thampy <[email protected]> Signed-off-by: Prakhar <[email protected]>
Description:
Allows fine-grained access control for
PipeInstance
s by specifying amode
parameterRisk Level: Low
Testing: Added unit test
Fixes #5808