Podman and Container Registry Authentication: Token Expiration Handling
19K reputation · 15 Jul 2022, 22:20 UTC
Podman utilizes the standard Docker configuration format and external credential helpers to manage registry authentication. In rootless environments, this ensures least-privilege access by isolating credentials within the user's namespace and delegating secure storage to the helper.
Currently, Podman does not maintain local metadata regarding the expiration timestamps of registry tokens. Authentication validity is verified only during the execution of a network request, such as a podman pull or podman push operation. When a token has expired, the failure is surfaced as a response from the remote registry rather than a proactive client-side alert.
This behavior creates uncertainty regarding the optimal feedback loop for users managing short-lived OAuth tokens or rotating credentials.
- Should Podman implement local pre-validation of token expiry to provide immediate user feedback?
- Is the current reliance on registry-side error responses sufficient for distinguishing between expired credentials and general permission denials?