-
Notifications
You must be signed in to change notification settings - Fork 66
GitHub account unlinked from OSIO account #4754
Comments
@sbryzak could be this issue caused by fabric8-services/fabric8-auth@0afb1b2 ? |
Removing UI and adding Auth. Not sure how this is a UI bug. |
No it can't. That change is taking care of OSIO user tokens. Not GitHub tokens. |
Why is this a SEV1? |
I guess it's SEV1 because it's cumming from e2e failures. |
UI sending request to this https://forge.api.prod-preview.openshift.io/api/services/git/user endpoint. Its response is 404 not found when GitHub account is not connected. If connected its return 200 Ok with all user details and the array of user repositories and organizations. |
I'm trying to find something useful in the logs but I don't think it's really a Sev-1 issue. As stated above it happened four times in two months for the e2e tests and we can't reproduce it manually. |
@alexeykazakov I found the first job with unlinked account
|
Hm.. I don't see anything in our prod logs with |
@ppitonak for some reason I can't find anything in the prod logs with the req_id from the e2e logs. So, it's hard to say what's going on. |
Changed from Sev-1 to Sev-2. |
@alexeykazakov these are request ID numbers used internally by Chrome, not something OSIO-specific so you need to manually match it to errors in Kibana using timestamp. Lucia will add logging response headers and body content in the case of 4xx or 5xx response. |
I looked into it and we already log the status code + status message. I do not think that there will be additional useful information. This is example of such an output (it is an example of output, the error has nothing to do with this issue).
|
I’m more interested in 401 response from Auth. |
Pavol modified the logging so that also response headers are logged for 401 responses. However, I do not see anything interesting there.
|
I found another disconnected account with this log message:
|
This means that the token is present in auth but it's not accepted by GitHub as a valid token. |
Can you find the reason why it is not accepted? |
I have an idea. We share the same github account among many test accounts, right? Every time one account authorizes in git (via osio) git generates a new token. Which automatically invalidates some old tokens for that git account (which might still be used by other osio test accounts). |
There is nothing we can do in auth service side. It's a problem between e2e tests (the fact that they share the same github account) and GitHub limitations. |
yes, we do
When does this happen in OSIO? Is it enough to open settings page? |
No, it’s not enough to open settings. Have to click on refresh icon there. Or authorize github for another test account (which uses the same GitHub account). Or just generate a token in GitHub directly. |
If two OSIO accounts are linked to the same GitHub account, they use two distinct GitHub tokens, don't they? |
They do. But when GitHub generates a new token it invalidates some previously generated. |
Issue Overview
User's GitHub account get disconnected from his OpenShift.io account without explicitly clicking on disconnect account
Expected Behaviour
GitHub account stays connected to OSIO account as long as the user clicks on disconnect button or calls the API to remove the token
Current Behaviour
account disconnected four times in two months in our low-touch testing account
Steps To Reproduce
Additional Information
All of these account are conneced to @osiotestmachine. Notice that on disconnected in December but not in February, another one in February but not December, another in both Dec and Feb and the last one in Dec and twice in Feb. I don't see any pattern there.
related to #4743
The text was updated successfully, but these errors were encountered: