Hi, we ran into a pitfall when changing the baseURL with Atlassian Connect.
So, here our guide & including the pitfall:
- Make your app available under the new base URL. The old base url must stay valid during the transition period, because the roll out takes time.
- Update the baseURL in our atlassian-connect.json
- Allow the old URL in the
/install
endpoint :
Spring Connect: by adding it toatlassian.connect.allowed-base-urls' Node Express Connect: By adding it to
allowedBaseUrls` in the config.json - Double check that the app is available on the old and new baseURL
- Deploy the new version of the app
Because the baseURL changed, this update will be queued for a marketplace review.
So, it you have to wait for Atlassian. That is why you need to keep the old baseURL alive. - After the approval, you have to wait for the rollout. (Edit: Approval got in, rollout is happening)
- At least our instances got updated without admin approval.
- The healthcheck URL needs updating. The only way to do that is asking via support as far as I know. So, this will take a some time until support answers and then you can provide the required update.
- Create a new release manually with new descriptor location. We updated our descriptor with the new baseURL and that created a new version. However, the descriptor location that is polled is still the old location that is planned to go offline. Therefore, double check that the latest markeplace release has the new descriptor location and create a new version manually otherwise.
Pitfalls we noticed:
- Changing the baseURL requires a marketplace approval. This was not clear to us. It is documented here.
It surprised us, because a baseURL is a minor version change otherwise and doesn’t require customer admin approval. So, because of that we didn’t expect that there will be a Marketplace review. - healthcheck URL is somewhere deeply burried in the Cloud Fortified program. You have to ask support.
- Double check that the marketplace also scans the descriptor at the new location.
Generally: Take your time. Monitor the logs to see that no suprising traffic arrives at the old URLs.