Bug 2229810
| Summary: | Container registries for Sat and Capsule set wrong token expiration field | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ian Ballou <iballou> |
| Component: | Container Management - Content | Assignee: | Quinn James <qjames> |
| Status: | CLOSED ERRATA | QA Contact: | Sam Bible <sbible> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.12.2 | CC: | bshephar, rlavi, sbible, vcojot |
| Target Milestone: | 6.15.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-smart_proxy_container_gateway-1.1.0-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-23 17:12:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ian Ballou
2023-08-07 19:07:52 UTC
Created redmine issue https://projects.theforeman.org/issues/36827 from this bug Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set. *** Bug 2138743 has been marked as a duplicate of this bug. *** Tested on 6.15 Snap 8
Steps to Verify:
1. Create and sync a container repo
2. Add this to a CV, publish it and promote it to an LCE
3. run podman pull <image> with the LCE set to allow unauthorized pull, with the --log-level set to trace
4. View the token that is returned as part of the verbose logging
5. Change the LCE to not allow unauthorized pulls, and run podman login
6. Then run podman pull <image> --log-level trace again
7. View the token that is returned in the logs.
8. Create and Sync a capsule, and add the LCE to the capsule
9. Try both unauthorized and authorized pulls of the repo from the capsule as well.
Expected Results:
Both tokens follow this format: {"token":"unauthenticated","expires_in":180,"issued_at":"2024-02-06T20:48:29-05:00","expires_at":"2024-02-06T19:51:29-06:00"} - specifically, the time format for the expires_at field, and the presence of the expires_in field
On the capsule, it looks like this {"token":"unauthorized","issued_at":"2024-02-06T22:31:01-05:00","expires_in":31556952} - note the presence of the expired_in here
Actual Results:
Both tokens follow this format: {"token":"unauthenticated","expires_in":180,"issued_at":"2024-02-06T20:48:29-05:00","expires_at":"2024-02-06T19:51:29-06:00"} - specifically, the time format for the expires_at field, and the presence of the expires_in field
On the capsule, it looks like this {"token":"unauthorized","issued_at":"2024-02-06T22:31:01-05:00","expires_in":31556952} - note the presence of the expired_in here
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2024:2010 |