Project

General

Profile

Actions

Bug #38493

open

Podman login output should render error specific to "too many login attempts"

Added by Quinn James 7 days ago. Updated 7 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Container
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When attempting to log in to Katello using podman, the user may be rejected for too many failed login attempts in a row (determined by the "Failed login attempts limit" setting). The server returns the following body: {"error": {"message":"Too many tries, please try again in a few minutes."}}. Podman does not render this error message and instead prints the standard Error: logging into "centos9-katello-devel.redhat.example.com": invalid username/password. This can be confusing for users.

According to https://www.rfc-editor.org/rfc/rfc6749#section-4.1.2. and https://www.rfc-editor.org/rfc/rfc6749#section-5.2, we may be able to add an 'error_description' field to our output to show an error beyond the standard podman output. This is a maybe; it's surprisingly difficult to find information about these auth specs.

Actions

Also available in: Atom PDF