I have set up Workbench and execution server to run using separate Docker containers in AWS EKS. I also connect to AWS CodeArtifact for storing and retrieving maven builds using temporary auth. tokens.
AWS CodeArtifact requires you to refresh your auth. token every 12 hours to access your repo in it. I have set up a cron job within the Docker container to do the same and update the settings.xml file with a new auth token for remote access to the CodeArtifact repo in each Docker container.
However, this new settings.xml update is not recognized by both the workbench and the Kie execution servers. I get the 401 unauthorized error during a workbench project build/deploy or while adding a deployment unit directly to the execution server.
It seems like the settings.xml configuration is cached and the new updated values are not recognized by both the servers (unless I restart the containers!).
Can anyone please advise on any alternatives or ways to address the above challenge?
Thanks,
Vivek.