We are facing an “issue” with the axon-spring-boot-starter to configure the token and servers properties.
All examples refer to set:
axon: axonserver: servers: context: token:
On our side we can’t set the servers and token keys because their values are unknown before the application deployment.
I will avoid to flood with unnecessary details but we are using a service catalog that will auto register the application in Axon and push some secret (servers and token) inside a kubernetes secret kind.
This secret is mounted in the application in a specific path.
So this is where we have the problem. Devs are not able to find a way to inject the servers and token configuration from another location during the Axon initialization with spring boot.
Servers values is accessible with a properties at
service-catalog.axon-binding.url and token at
service-catalog.axon-binding.token. (we have a library that permit to map kubernetes secrets to properties)
Do you know a way to explicitly set the token and servers properties during this initialization ?
Thanks a lot