-
Notifications
You must be signed in to change notification settings - Fork 31
destination.ip not sent as []byte #112
Comments
It could not be. They are switched to use Bytes in the same PR. Here is the PR: istio/proxy@0561c1d#diff-01d13090008b70b5a4e706e9babc542a I need more evident. |
@qiwzhang Running from istio/istio HEAD.
I then just dumped logs. Maybe |
@qiwzhang which IP does your filter use? Service IP (external) or pod IP (internal)? |
Proxy is using upstreamHost->address()->ip(); I guess it is the service host ip in the cluster manager. Pilot set it. |
Definitely caused by https://github.com/istio/pilot/blob/master/proxy/envoy/mixer.go#L128 In the Tcp Check, Proxy extracts it from Envoy config, which is string. I guess, Proxy should not just blindly copy the string. It should check ".ip" suffix, and convert it to bytes when copying from Mixer config |
Ultimate solution is to allow Pilot to write attribute type for the mesh attributes. Now it only supports string type. Leave this as 0.3 feature. |
Are we sure? I haven't debugged fully. It might be related to issues with: |
Filed https://github.com/istio/proxy/issues/483 to fix this. |
@douglas-reid assigned it to you so you can debug it first. If it is caused by https://github.com/istio/pilot/blob/master/proxy/envoy/mixer.go#L128. I have another issue to cover it. so you can close it. |
It looks like it isn't coming from the mixer attribute derivation stuff:
Everything above the |
The issue |
Is this issue resolved, or is there a different issue to track the problem?
Otherwise, it shouldn't be closed right?
…On Sat, Sep 23, 2017 at 8:57 PM, Wayne Zhang ***@***.***> wrote:
The issue
Allow Pilot to pass any type of mesh attributes to Mixer #483
is not easy to fix. It requires both Pilot and Proxy code change. It will
be 0.2 after.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#112 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVucHa-XZIUSP_tpsxbZ5Ji0hRf-OyClks5sldM-gaJpZM4Pehqh>
.
|
It is covered by https://github.com/istio/proxy/issues/483 |
… istio ingress (#1349) Automatic merge from submit-queue Add flag to control source/origin lookups when destination.service is istio ingress As noted in istio/istio#879, the source information that the Mixer receives (`source.ip` values) are problematic for attempting to lookup (in-cluster). This PR addresses provides a workaround for compounding that issue within Mixer by preventing lookup of source/origin information in the kubernetes adapter when `destination.service == ingress.istio-system.svc.cluster.local`. This behavior is configurable, through options in the config params passed into the adapter builder. This PR also cleans up a related bit of the kubernetes adapter behavior related to handling and generation of IP_ADDRESS values. As noted in istio/old_mixerclient_repo#112 (and also in istio/proxy#483), handling of IP_ADDRESS values is completely inconsistent throughout Istio. The changes here remove any inconsistencies on the part of the kubernetes adapter. It also fixes the incorrect IP-related config in `testdata/configroot`. **Release note**: ```release-note-none NONE ```
… istio ingress (istio#1349) Automatic merge from submit-queue Add flag to control source/origin lookups when destination.service is istio ingress As noted in istio/istio#879, the source information that the Mixer receives (`source.ip` values) are problematic for attempting to lookup (in-cluster). This PR addresses provides a workaround for compounding that issue within Mixer by preventing lookup of source/origin information in the kubernetes adapter when `destination.service == ingress.istio-system.svc.cluster.local`. This behavior is configurable, through options in the config params passed into the adapter builder. This PR also cleans up a related bit of the kubernetes adapter behavior related to handling and generation of IP_ADDRESS values. As noted in istio/old_mixerclient_repo#112 (and also in istio/proxy#483), handling of IP_ADDRESS values is completely inconsistent throughout Istio. The changes here remove any inconsistencies on the part of the kubernetes adapter. It also fixes the incorrect IP-related config in `testdata/configroot`. **Release note**: ```release-note-none NONE ```
… istio ingress (#1349) Automatic merge from submit-queue Add flag to control source/origin lookups when destination.service is istio ingress As noted in istio/istio#879, the source information that the Mixer receives (`source.ip` values) are problematic for attempting to lookup (in-cluster). This PR addresses provides a workaround for compounding that issue within Mixer by preventing lookup of source/origin information in the kubernetes adapter when `destination.service == ingress.istio-system.svc.cluster.local`. This behavior is configurable, through options in the config params passed into the adapter builder. This PR also cleans up a related bit of the kubernetes adapter behavior related to handling and generation of IP_ADDRESS values. As noted in istio/old_mixerclient_repo#112 (and also in istio/proxy#483), handling of IP_ADDRESS values is completely inconsistent throughout Istio. The changes here remove any inconsistencies on the part of the kubernetes adapter. It also fixes the incorrect IP-related config in `testdata/configroot`. **Release note**: ```release-note-none NONE ``` Former-commit-id: 20fbea5bee6d00810d8c501d8de16d6a7d80e593
… istio ingress (istio#1349) Automatic merge from submit-queue Add flag to control source/origin lookups when destination.service is istio ingress As noted in istio#879, the source information that the Mixer receives (`source.ip` values) are problematic for attempting to lookup (in-cluster). This PR addresses provides a workaround for compounding that issue within Mixer by preventing lookup of source/origin information in the kubernetes adapter when `destination.service == ingress.istio-system.svc.cluster.local`. This behavior is configurable, through options in the config params passed into the adapter builder. This PR also cleans up a related bit of the kubernetes adapter behavior related to handling and generation of IP_ADDRESS values. As noted in istio/old_mixerclient_repo#112 (and also in istio/proxy#483), handling of IP_ADDRESS values is completely inconsistent throughout Istio. The changes here remove any inconsistencies on the part of the kubernetes adapter. It also fixes the incorrect IP-related config in `testdata/configroot`. **Release note**: ```release-note-none NONE ``` Former-commit-id: 5c82322e5377038b89897482e303bde0edf72765
Expected to receive attribute
destination.ip
as a []byte. Instead, received string.Example from attribute bag dump in latest Mixer:
Note the key difference between the way in which
source.ip
anddestination.ip
are received.The text was updated successfully, but these errors were encountered: