Bug #38349
opencontainer_gateway on capsules returns success for login attempts with no username/password informed
Description
Cloned from https://issues.redhat.com/browse/SAT-25333
Description of problem:
Trying to login into a capsule registry (handled by smart-proxy containter_gateway), a user gets a "Login Succeeded!" when no username/password are informed.
Providing any bad username/password user gets the expected authentication error.
Success message is is misleading, since no actual authentication happened and no protected content can be pulled.
Version-Release number of selected component (if applicable):
Observed on 6.14 and 6.15
How reproducible:
Always
Steps to Reproduce:
1. Try running "podman login mycapsule.example.com" and don't inform username or password:
~~~
podman login mycapsule.example.com
Username:
Password:
Login Succeeded!
~~~
Actual results:
user gets a login succeeded message
Expected results:
authentication should fail if no username/password was informed
Updated by The Foreman Bot 5 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/smart_proxy_container_gateway/pull/50 added