-
Notifications
You must be signed in to change notification settings - Fork 2
Add license scan report and status #16
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| # Istio Proxy | ||
| [](https://app.fossa.io/projects/git%2Bgithub.com%2Frshriram%2Fproxy?ref=badge_shield) | ||
|
|
||
|
|
||
| The Istio Proxy is a microservice proxy that can be used on the client and server side, and forms a microservice mesh. The Proxy supports a large number of features. | ||
|
|
||
|
|
@@ -26,3 +28,7 @@ Please see [istio.io](https://istio.io) | |
| to learn about the overall Istio project and how to get in touch with us. To learn how you can | ||
| contribute to any of the Istio components, including the proxy, please | ||
| see the Istio [contribution guidelines](https://github.com/istio/istio/blob/master/CONTRIBUTING.md). | ||
|
|
||
|
|
||
| ## License | ||
| [](https://app.fossa.io/projects/git%2Bgithub.com%2Frshriram%2Fproxy?ref=badge_large) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,8 +64,8 @@ bind( | |
|
|
||
| git_repository( | ||
| name = "envoy", | ||
| remote = "https://github.com/lyft/envoy.git", | ||
| commit = "060cb67f0772a425a8ceaf30d28421967d69c0c6", | ||
| remote = "https://github.com/amalgam8/envoy.git", | ||
| commit = "c89a99e893b633e97419d306e0072f07bd2200fa", | ||
|
Comment on lines
+67
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change switches the |
||
| ) | ||
|
|
||
| load("@envoy//bazel:repositories.bzl", "envoy_dependencies") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| b2540808efaaa9e2c45c21be882b19b95003b41c8af8c9a740e67ee3d82fcfec envoy-alpha-ac4ef3f77692453dad2d04a6417bc6a1f3457e07.tar.gz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 21ddf0e73e14059836f597577ff6f0baa45204eceea65790f3958ac98a211801 envoy-debug-ac4ef3f77692453dad2d04a6417bc6a1f3457e07.tar.gz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,13 +17,16 @@ | |
| #include "common/common/logger.h" | ||
| #include "common/http/headers.h" | ||
| #include "common/http/utility.h" | ||
| #include "common/tracing/zipkin_tracer_impl.h" | ||
| #include "envoy/server/instance.h" | ||
| #include "envoy/ssl/connection.h" | ||
| #include "envoy/tracing/http_tracer.h" | ||
| #include "server/config/network/http_connection_manager.h" | ||
| #include "src/envoy/mixer/config.h" | ||
| #include "src/envoy/mixer/http_control.h" | ||
| #include "src/envoy/mixer/utils.h" | ||
|
|
||
|
|
||
| using ::google::protobuf::util::Status; | ||
| using StatusCode = ::google::protobuf::util::error::Code; | ||
| using ::istio::mixer_client::DoneFunc; | ||
|
|
@@ -223,6 +226,7 @@ class Instance : public Http::StreamDecoderFilter, | |
| initiating_call_ = false; | ||
|
|
||
| if (state_ == Complete) { | ||
| updateSpan(); | ||
| return FilterHeadersStatus::Continue; | ||
| } | ||
| Log().debug("Called Mixer::Instance : {} Stop", __func__); | ||
|
|
@@ -280,10 +284,23 @@ class Instance : public Http::StreamDecoderFilter, | |
|
|
||
| state_ = Complete; | ||
| if (!initiating_call_) { | ||
| updateSpan(); | ||
| decoder_callbacks_->continueDecoding(); | ||
| } | ||
| } | ||
|
|
||
| // After the check call, obtain the service name from the Mixer's | ||
| // response and update all the Zipkin annotations with the service | ||
| // name corresponding to the source ip. | ||
| void updateSpan() const { | ||
| Tracing::Span& activeSpan = decoder_callbacks_->activeSpan(); | ||
| if (Tracing::ZipkinSpan *zipkinSpan = dynamic_cast<Tracing::ZipkinSpan*>(&activeSpan)) { | ||
| Zipkin::Span& span = zipkinSpan->span(); | ||
| span.setSourceService(); //need source service name. | ||
| span.setDestinationService(); //need destination service name. | ||
| } | ||
| } | ||
|
Comment on lines
+295
to
+302
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The implementation of
This is a critical issue that needs to be addressed before merging. |
||
|
|
||
| virtual void log(const HeaderMap* request_headers, | ||
| const HeaderMap* response_headers, | ||
| const AccessLog::RequestInfo& request_info) override { | ||
|
|
||
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.
This extra blank line is unnecessary. A single blank line is sufficient to separate sections in Markdown.