Broker & Tokens - Expired broker token
Last updated
This scenario applies only to on-premises deployments that use the Mobb Broker to connect to a self-hosted SCM (GitLab, GitHub, or Azure DevOps).
Symptoms
Fix analysis or pull-request creation that used to work suddenly fails.
The failure starts roughly 90 days after the broker was last set up or rotated.
Likely cause
By default, a Mobb broker token expires 92 days (about three months) after it is created. When it expires, the encrypted tunnel between your SCM and Mobb can no longer be established, so Mobb loses access to your repositories.
Resolution
Check when your current token was created (and therefore when it expires) using GET /api/rest/getbrokerconfigurations.
Generate a new token with POST /api/rest/createbrokerapitoken.
Set the new value in the FRP_BROKER_AUTH_TOKEN environment variable of your broker container.
Full steps are in Mobb Broker Token Rotation.
Set a calendar reminder to rotate tokens a few days before the 92-day expiry so fixes are never interrupted. Still stuck? Contact support@mobb.ai.
Last updated