Chapter 6. Post-installation integrations
6.1. (Optional) Integrating Quay deployed by RHADS - SSC Copy linkLink copied to clipboard!
If you’re using a new instance of Quay that the RHADS - SSC installer has deployed during the installation, you need to regenerate the Quay OAuth access token and update the Quay integration secret on an OpenShift cluster where RHADS - SSC is running.
This is necessary because the initial token, generated during the RHADS - SSC installation, expires within 2 hours. After its expiration, RHADS - SSC can’t access Quay and view the repositories under the rhtap organization. As a result, the Image Registry tab in the RHDH UI doesn’t display artifacts stored in your Quay repositories.
The following procedure ensures that RHADS - SSC has access to Quay.
Procedure
- Log in to the Quay instance that runs on the same cluster with RHADS - SSC.
-
Navigate to the
rhtaporganization. - Select Applications > OAuth Applications > Create New Application > Generate Token.
- Check the box for the View all visible repositories option.
- Click Generate Access Token.
- Copy and save the access token.
Update the
rhtap-quay-integrationsecret by running the following commands in the terminal:export ACCESS_TOKEN=<generated-Quay-token> oc patch secret rhtap-quay-integration \ -n rhtap \ --type='merge' \ -p="{\"data\":{\"token\":\"$(echo -n $ACCESS_TOKEN | base64)\"}}" tssc deploy chart/rhtap-dhThis step should automatically update the
developer-hub-rhtap-envsecret as well.
The changes take effect when the new backstage-developer-hub pod in the rhtap-dh project is up and running.
Verification
- Go to the Red Hat Developer Hub UI and reload the Image Registry tab. The tab should now list all the artifacts stored in your Quay repositories.
Additionally, to verify that the required secrets have been successfully updated, you can display the values of the
rhtap-quay-integrationanddeveloper-hub-rhtap-envsecrets:oc get secret rhtap-quay-integration -o json -n rhtap | jq -r .data.token | base64 -d oc get secrets developer-hub-rhtap-env -o json -n rhtap-dh | jq -r .data.QUAY__API_TOKEN | base64 -dThe output should show your newly generated Quay access token.
Additional resources
- For more information on Quay OAuth tokens, refer to OAuth 2 access tokens in the Red Hat Quay documentation.
Revised on 2025-08-20 05:37:06 UTC