When a device changes networks
This configuration applies to network discovery.
When a machine changes its IP address or network, the SSH key becomes invalid and the network discovery process returns an error for that machine.
The quickest solution is to delete the file where these SSH keys are stored so that the network discovery process can regenerate them.
Here is an example of how to do this in various types of installations:
Installation
rm /opt/soffid/iam-sync/conf/known_hosts
sudo systemctl restart soffid-iamsync
Docker
docker ps
docker exec SYNCSERVER_NAME rm /opt/soffid/iam-sync/conf/known_hosts
docker restart SYNCSERVER_NAME
Docker compose
docker compose ps
docker compose exec SYNCSERVER_SERVICE rm /opt/soffid/iam-sync/conf/known_hosts
docker compose restart SYNCSERVER_SERVICE
Kubernetes
kubectl exec NAMESPACE/SYNCSERVER_NAME -- rm /opt/soffid/iam-sync/conf/known_hosts