How to request pull-secret rotation [1]
- Download
ocmfrom https://developers.redhat.com/content-gateway/rest/browse/pub/cgw/ocm/latest (Mac – usebrew install ocm) - Grab the Token https://console.redhat.com/openshift/token/show (you must login using your Red Hat id)
- Use
ocm login --use-device-code– navigate to the URL, and enter the device code. - Get the userid
ocm whoami | jq -r '.id'. I saved into the variableid. - Request pull-secret rotation
echo '{}' | ocm post /api/accounts_mgmt/v1/accounts/${id}/pull_secret_rotation - Check the pull-secret rotation
watch -n5 ocm get /api/accounts_mgmt/v1/accounts/${id}/pull_secret_rotation
- wait until you see it no longer in Pending… it took a long time for me and it will say
completed
{
"items": [
{
"account_id": "zzzz",
"created_at": "2026-12-02T20:05:50.767627Z",
"href": "/api/accounts_mgmt/v1/accounts/iiiiiiiii/pull_secret_rotation/xxxxxxx",
"id": "yyyyy",
"kind": "PullSecretRotation",
"status": "completed",
"updated_at": "2026-12-03T00:00:02.816599Z"
}
],
"kind": "PullSecretRotationList",
"page": 1,
"size": 1,
"total": 1
}
- Grab a new pull-secret after a couple hours https://console.redhat.com/openshift/install/pull-secret

Leave a Reply