envoy-mobile icon indicating copy to clipboard operation
envoy-mobile copied to clipboard

Add a filter for applying Android socket tags

Open RyanTheOptimist opened this issue 2 years ago • 5 comments

Add a filter for applying Android socket tags

Testing: Need help Docs Changes: Release Notes:

RyanTheOptimist avatar Jul 14 '22 21:07 RyanTheOptimist

@alyssawilk can you take a look? I know I need tests, but hopefully I can lean on whatever testing gets set up for the cleartext check.

RyanTheOptimist avatar Jul 19 '22 18:07 RyanTheOptimist

/retest

RyanTheOptimist avatar Jul 27 '22 21:07 RyanTheOptimist

@Augustyniak If you have time, I'd appreciate your full review now that I think this is sorted out.

RyanTheOptimist avatar Jul 28 '22 17:07 RyanTheOptimist

@Augustyniak If you have time, I'd appreciate your full review now that I think this is sorted out.

Sure. Sorry for a delays response - was OOO on Friday due to an org-wide recharge day.

Augustyniak avatar Aug 01 '22 13:08 Augustyniak

I'm really confused by GitHub. I see an email from 2:04 PM Pacific today (2022-08-11) with a few comments that were sent after I uploaded a few new commits. But github says the commits were yesterday, and some of my comments are missing from the conversation view, or at least hidden. And some seem completely lost. I'm not sure what happened.

In any case, @Augustyniak I tried to explain that I updated the sample app to set socket tags, but end up with a java class not found error for the class org.chromium.net.AndroidNetworkLibrary which implements the tagSocket() method. I'm not quite sure how to resolve this. Any advice?

RyanTheOptimist avatar Aug 12 '22 00:08 RyanTheOptimist

@RyanTheOptimist I modified the example app locally to enable socket tagging and run it to see whether I can repro the crashes that you mentioned locally. This is what I got:

Screen Shot 2022-08-17 at 10 56 24 PM

That's despite your BUILD file changes in here https://github.com/envoyproxy/envoy-mobile/pull/2423/files#diff-bee4aeb6cd03b6684900f7c2d8bd51dec467011c33929eb3b34008a2a44deb23R19. This issue seems to be exactly the same issue as the one that's related is_cleartext_permitted and which was detailed in https://github.com/envoyproxy/envoy-mobile/issues/2432.

Augustyniak avatar Aug 17 '22 21:08 Augustyniak

/retest

jpsim avatar Aug 18 '22 20:08 jpsim