action #167266
closedopenQA log reports "Failed to login" with no details in logs size:S
0%
Description
Observation¶
OpenQA logreport for ariel.suse-dmz.opensuse.org tells us this from time to time:
[2024-09-24T11:49:23.471863Z] [error] OpenID: Failed to login: OpenID provider returned invalid data. Please retry again
Suggestions¶
- Consider improving the log message with more details but not revealing potentially sensitive information
- Consider to reduce the severity of the log message if we can ensure there is a retry or know it is temporary
Updated by okurz 3 months ago
- Copied from action #167263: OpenQA logreport regularly reports Failed to login in email size:M added
Updated by ybonatakis 3 months ago
- Status changed from Workable to In Progress
- Assignee set to ybonatakis
Updated by openqa_review 3 months ago
- Due date set to 2024-10-10
Setting due date based on mean cycle time of SUSE QE Tools
Updated by ybonatakis 3 months ago
I tried to reproduce it in a couple of ways. Changing the provider URI or passing random consumer_secret
but our code looks solid and catch all of those issues.
I checked the upstream code and it seems that the not_openqa
is considered invalid when the args in https://github.com/gugu/net-openid-consumer/blob/master/lib/Net/OpenID/IndirectMessage.pm object does not have the openqa.mode
properly assigned. (All the requests should have it apparently.
Then I thought to manipulate the params
of the auth_response
. The one that worked of all was the one with missing mode value.
To reproduce: add $params{'openid.mode'} = ''
and try to authenticate.
i will provide a small PR changing the sting in the logs
Updated by ybonatakis 3 months ago
- Status changed from In Progress to Feedback
Updated by ybonatakis 3 months ago
PR updated as per the discussion from the unblocked meeting this morning and following the suggestion crafted https://github.com/os-autoinst/openQA/pull/5952#discussion_r1784102963
Updated by okurz 3 months ago
Follow-up based on demo feedback: https://github.com/os-autoinst/openQA/pull/5975