Skip to content

Commit 8e9411f

Browse files
authored
Fixed RD-15361: Added akka.license-key config that defaults to $AKKA_LICENSE_KEY (#23)
With no AKKA_LICENSE_KEY variable set, it goes to dev mode that stops after 15 minutes. (It doesn't pick the empty string as a key that is wrong.) ``` WARN akka.actor.ActorSystemImpl - Dev use only. Free keys at https://akka.io/key ``` With a proper AKKA_LICENSE_KEY value, it works. ``` INFO akka.actor.ActorSystemImpl - License check succeeded for Lightbend user (...). License is valid until (...). ``` With a wrong AKKA_LICENSE_KEY value, the error shows and the DAS immediately stops. ``` ERROR akka.actor.ActorSystemImpl - Invalid key. Free keys at https://akka.io/key INFO akka.actor.CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] Exception in thread "main" java.lang.RuntimeException: Invalid key: Error decoding license key: Invalid base62 length ```
1 parent 289d161 commit 8e9411f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/resources/reference.conf

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
akka.license-key=${?AKKA_LICENSE_KEY}
2+
13
das {
24
server {
35
port = 50051 # the port the server listens on

src/test/resources/application.conf

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
akka {
2-
license-key = ""
3-
}
41
raw.das.server {
52
builtin {
63
1 {

0 commit comments

Comments
 (0)