Skip to content
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

Support PeerAuthentication.MutualTLS.Mode Strict for RMI connections #51658

Closed
2 tasks done
JessHolle opened this issue Jun 21, 2024 · 11 comments
Closed
2 tasks done

Support PeerAuthentication.MutualTLS.Mode Strict for RMI connections #51658

JessHolle opened this issue Jun 21, 2024 · 11 comments

Comments

@JessHolle
Copy link

JessHolle commented Jun 21, 2024

Is this the right place to submit this?

  • This is not a security vulnerability or a crashing bug
  • This is not a question about how to use Istio

Bug Description

Our RMI connections are blocked unless we use PeerAuthentication.MutualTLS.Mode Permissive/Disabled.

We want the service mesh to handle MTLS here, so we don't have to do so ourselves -- inclusive of RMI.

Version

kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.27.3
Kustomize Version: v5.0.1
Server Version: v1.29.2

istioctl version
client version: 1.19.0
control plane version: 1.19.0
data plane version: 1.19.0 (2 proxies)

Additional Information

No response

@JessHolle
Copy link
Author

Or perhaps put another way, Istio's Auto mTLS does not seem to be getting applied to RMI connections...

@keithmattix
Copy link
Contributor

IIUC RMI uses tcp and/or http so it should have auto mTLS applied. Are both Java applications in the mesh?

@JessHolle
Copy link
Author

Yes, RMI uses TCP and both Java applications are in the mesh.

@keithmattix
Copy link
Contributor

What address are you using for RMI: a pod ip or a service ip?

@JessHolle
Copy link
Author

Service IP.

@keithmattix
Copy link
Contributor

Hmmm I'm not super familiar with Java and RMI; does this issue help? #15293

@JessHolle
Copy link
Author

We can look at that issue again. But... RMI does work if we set PeerAuthentication.MutualTLS.Mode to Permissive/Disable.

@keithmattix
Copy link
Contributor

/cc @ramaraochavali @howardjohn any ideas here? Only thing I can thing of is that RMI doesn't like auto tls

@howardjohn
Copy link
Member

Not really, this needs more info on what it means to be "blocked". Access logs, etc

Probably it is sending to specific pod IPs instead of service VIPs

@JessHolle
Copy link
Author

So... sorry for the noise here, but it turns out there was a port misconfiguration underlying our issues.

Yes, RMI works fine with Istio mTLS -- as expected.

@JessHolle
Copy link
Author

Closing this issue as per my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants