OAuth repair button not visible on Geo Nodes as per instructions
Summary
On occasions, there are OAuth authorization failures at instance-wide level like when integrating Geo with OAuth. When that happens GitLab will display the message.
There are no OAuth application defined for this Geo node. Please ask your administrator to visit "Geo Nodes" on admin screen and click on "Repair Authentication"
Steps to reproduce
- Setup GEO on two nodes (In this example the customer is on GitLab
15.11.13
). - Setup OAuth (In this example the customer used PingIdentity).
- Break the OAuth integration (In the customer's case it happened while upgrading from the previous version to this version).
- Navigate to secondary from the
Admin > Geo Sites
Panel.
Example Project
What is the current bug behavior?
The error message that OAuth has been broken appears and states that you can repair by clicking the repair button but the button does not exist.
What is the expected correct behavior?
The error message that OAuth has been broken appears, and when you go to navigate to Geo Nodes
there is a repair button to fix OAuth.
Relevant logs and/or screenshots
Results of GitLab environment info
gitlab-ee 15.11.13
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Possible fixes
Workaround
Execute the repair function from the rails console.
GeoNode.find(X).repair
Edited by Mario Mora