How to roll back the change
Read this first: once Salesforce retires the old sign-in, rolling back may not fix anything.
Rolling back puts your old code back, and the old code signs in the way Salesforce is retiring. Salesforce's notice says login() "retires in Summer '27". Your exposure report quotes the date with a link to the vendor's page.
- Until then, a rollback returns you to code that still works, as long as the user it signs in as has Salesforce's Use Any API Auth permission. Without it, login() fails with INSUFFICIENT_ACCESS. Your Salesforce admin can check this.
- After Salesforce retires login(), fix forward (fix the new code instead of going back to the old), or talk to us.
You merged the change yourself, so you roll it back yourself, the same way you undo any change. Portwell doesn't deploy or roll back anything in your systems.
1. Decide whether to roll back
Roll back if the change breaks something your team can't fix quickly. Check the evidence report first:
- Its Not checked section lists what nobody tested, which is often where a problem comes from.
- Its Next step section lists anything specific to rolling back this change, if there is anything, on lines starting "Rollback:".
2. Undo the change
Revert it in your repository, and deploy that the way you always deploy:
- If it went in as a merge commit:
git revert -m 1 <merge commit> - If it went in as a single or squashed commit:
git revert <commit>
If you added the CI check below in the same commit, the revert removes it too, which is what you want when rolling back. If you added the CI check in a separate commit, read step 3 before you deploy the revert.
3. The CI check that blocks the old sign-in
For a pilot, we send this check with the change as two files: .portwell/soap_guard.py and .github/workflows/soap-guard.yml. In the evidence report it's "CI guard blocks SOAP login()". If you added it, it fails any change that brings the old sign-in back, including a rollback. That's the check doing its job. It has no setting to pause it. To roll back anyway, either:
- remove or turn off the
soap-guardworkflow, or - add an entry with an end date to
.portwell/soap-guard-allow.json, so the check lets that file through until then. Create the file if it isn't there. The file holds one list in square brackets, with one entry in curly braces for each file you allow. Each entry names the file, the rule it breaks (each failure line reads path:line: rule: message, so the rule is the third part), an end date no more than 90 days from today, and a reason. Replace each value with your own: the path to your file, the rule from the guard's failure message, your end date (written YYYY-MM-DD), and your reason. Example only:[ {"path": "scripts/legacy_export.py", "rule": "password-login", "until": "2027-02-15", "reason": "Rolled back while we fix the OAuth change"} ]Allowed findings are still printed, marked as allowed, so nothing is hidden. When the end date passes, the check says so and fails again. If the file has a mistake, such as a missing field or a date too far out, the check fails rather than ignoring it.
Put the check back once you've fixed forward, so the old sign-in can't slip back in.
4. Tell us
Tell us what broke and when, so we can fix the proposal and send you a new one with new evidence.
If something looks wrong
- The revert has conflicts: other changes have landed on top of this one. Resolve it like any revert, or fix forward.
- The rollback deployed but the integration still fails: check the date your exposure report quotes. If Salesforce has already retired the old sign-in, the old code can't work any more, and fixing forward is the only way.
Checked against Portwell 0.2.1 on 23 November 2026.