Red Hat: How to request pull-secret rotation

How to request pull-secret rotation [1]

  1. Download ocm from https://developers.redhat.com/content-gateway/rest/browse/pub/cgw/ocm/latest (Mac – use brew install ocm)
  2. Grab the Token https://console.redhat.com/openshift/token/show (you must login using your Red Hat id)
  3. Use ocm login --use-device-code – navigate to the URL, and enter the device code.
  4. Get the userid ocm whoami | jq -r '.id'. I saved into the variable id.
  5. Request pull-secret rotation echo '{}' | ocm post /api/accounts_mgmt/v1/accounts/${id}/pull_secret_rotation
  6. 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
}
  1. Grab a new pull-secret after a couple hours https://console.redhat.com/openshift/install/pull-secret

[1] https://access.redhat.com/kb/6992996

[2] https://github.com/openshift-online/ocm-cli

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *