Hi folks,
In my setup I upgraded from AxonServer 4.6.11-dev-jdk11 to 2023.2.2-jdk11 (both SE). I have developer mode and access control enabled. After the upgrade the application (running Axon Framework 4.9.2) is not abbe to connect to the server.
The token has not changed (is still in the properties). During the upgrade I deleted the control db and the server created a new one and I re-created the admin user via cli giving it ADMIN@*
permissions.
If I deactivate access control the connection can be established, if I activate it - the connection is not possible with PERMISSION_DENIED: Invalid token for io.axoniq.axonserver.grpc.control.PlatformService/GetPlatformServer
Any ideas what I missed? How can I recover from this situation and activate access control again? Are there any special requirements for the token?
Here are the server settings:
axoniq.axonserver.name={{ hostname }}
axoniq.axonserver.hostname={{ fqdn_hostname }}
axoniq.axonserver.standalone=true
axoniq.axonserver.devmode.enabled=true
axoniq.axonserver.accesscontrol.enabled=true
axoniq.axonserver.accesscontrol.admin-token={{ axonserver_admin_token }}
axoniq.axonserver.accesscontrol.token={{ axonserver_token }}
axoniq.axonserver.default-command-timeout=600000
axoniq.axonserver.max-message-size=8MB
axoniq.axonserverkeep-alive-timeout=0
logging.file=/axonserver/data/axonserver.log
logging.file.max-history=10
logging.file.max-size=10MB
For the client settings I specified:
axon:
axonserver:
servers: {{ address }}:8124
max-message-size: 8388608
context: default
token: {{ axonserver_token }}
Is token only a secret using as a pasword or is it womehow used in the server itself? Could I just change the token to some better value?
Cheers,
Simon