Skip to content

Commit

Permalink
Fixed RD-15361: Added akka.license-key config that defaults to $AKKA_…
Browse files Browse the repository at this point in the history
…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
```
  • Loading branch information
bgaidioz authored Feb 20, 2025
1 parent 289d161 commit 8e9411f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
akka.license-key=${?AKKA_LICENSE_KEY}

das {
server {
port = 50051 # the port the server listens on
Expand Down
3 changes: 0 additions & 3 deletions src/test/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
akka {
license-key = ""
}
raw.das.server {
builtin {
1 {
Expand Down

0 comments on commit 8e9411f

Please sign in to comment.