Comments (10)
or have a utility for setting up dummy test certificates on both sides.
Akka could ship fake certs on the testkit, or there could be a tool to crete a CA and a server cert on the fly.
For Lagom we spiked the second alternative and built a FakeKeyStoreGenerator.scala
based on Play's FakeKeyStore
.
from akka-grpc.
I think @richdougherty has been working on that, seeing if it is reasonable to use ssl-config here or we can make it convenient some other way.
from akka-grpc.
Right, I think our approach here should be "whichever style play already does it for dev" :)
If ssl config helps then good, but if not then don't force it in I think. It may be nice to use just to declare from where to load certs, but not expose it in any APIs unless needed perhaps for example.
from akka-grpc.
Remember to remove the certs from Quickstarts also, e.g. akka/akka-grpc-quickstart-scala.g8#1 (comment)
from akka-grpc.
The comment to do what play does still stands, but they what play does does not work very well now: playframework/playframework#8562 would need to be implemented and based on.
There's some weird cycles about generating and needing the cert
from akka-grpc.
For plain Akka to generate the certs we'd need to "steal" code that play has for these things I suppose:
from here
from akka-grpc.
We discussed this some more and concluded that the plain vanilla samples can be without TLS.
We can run without SSL, but then we cannot serve 'regular' HTTP requests on that port anymore. We also have to add documentation of how to enable TLS (if that doesn't exist).
from akka-grpc.
Now that TLS is not required for akka-gRPC I think we'd better close this issue.
I would ship the .g8 templates with some sample certificates/keys and maybe some very vague instructions on how to recreate them (with a disclaimer wrt key size, state of art, etc etc) but detailed instructions on relevant details (e.g. subject, authority, ...).
Lagom provides in both DevMode and TestKit tools to create fake certificates on the fly. In the case of testkit, there's also an SSLContext baked for the client in tests so it trusts the server in the testkit. I don't think such mechanisms should be part of akka-grpc
.
from akka-grpc.
raised akka/akka-grpc-quickstart-java.g8#39
from akka-grpc.
(sorry, pressed the wrong buttons)
from akka-grpc.
Related Issues (20)
- Release 2.3.0-M1
- Server reflection calls should return transitive dependencies HOT 1
- Release 2.2.1
- Client using netty backend cannot work with TLS and a custom SslContext HOT 8
- akka dns service discovery not refreshing after ttl HOT 1
- Play gRPC docs are not published anymore HOT 2
- akka grpc server stream cannot return every result in real time HOT 2
- Release 2.3.0-M2
- Include more error details in RuntimeStatusException
- Release 2.3.0
- Failed: ServerReflectionImplSpec HOT 3
- Request retry config per service from DNS HOT 1
- Should TelemetrySpi be internal class? HOT 1
- Quickstart TLS cert broken HOT 2
- Testing HTTP gateway to GRPC service leads to timeout
- Release 2.3.1
- GrpcServiceException: INTERNAL: RST_STREAM closed stream
- Release 2.3.2
- Optionally generate Client Stubs HOT 3
- Failed: OutOfMemoryError while compiling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akka-grpc.