I have been testing out the snap store proxy on my internal network, and recently redid my network to use a different addresses. I’m hoping I can update my snap store rather than destroying it and creating a new one. I was able to update the config on the snap with:
sudo snap-proxy config proxy.domain=NEW_IP
However, that doesn’t seem to be sufficient for getting snapd to actually talk to the proxy. I’m guessing it is because my assertion still is:
$ curl -s http://NEWIP/v2/auth/store/assertions type: store authority-id: canonical ... timestamp: 2019-03-20T15:08:23.051646Z url: http://OLDIP ...
I’m guessing I need some way to tell the snap-proxy to regenerate its assertions.
sudo snap-proxy register doesn’t work because it has already been registered with the given identifier.
I was hoping that I could update the assertions, and then update the other devices on my network for their assertions. But do I need to just wipe the proxy (
snap remove --purge?) and then start from scratch again?