.Multiple container registries can now be defined in registry credentials
Previously, only a single container registry credential could be configured. However, users may have different registries for different service containers.
With this enhancement, registry credentials can now define multiple container registries. To store multiple registry credentials, use the following command:
----
cephadm -v registry-login --registry-json registry.json
cat registry.json
{
"registry_credentials": [
{
"url": "registry1",
"username": "user1",
"password": "xxx"
},
{
"url": "registry2",
"username": "user2",
"password": "xxx"
}
]
}
----
Description of problem:
The registry.json file currently supports credentials for a single registry. This can be a problem if images are needed from staging or 3rd party registries. This RFE requests that registry.json is extended to support multiple registries, and podman auth updated to use the relevant credentials for a given registry.
Version-Release number of selected component (if applicable):
Ceph 19.x
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
From this
{
"url": "cp.icr.io/cp",
"username": "wee",
"password": "wah"
}
to this
{
"cp.icr.io": {
"username": "foo",
"password": "bar"
},
"stg.stg.icr.io": {
"username": "wee",
"password": "wah"
}
}
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 (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), 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-2026:1536
Description of problem: The registry.json file currently supports credentials for a single registry. This can be a problem if images are needed from staging or 3rd party registries. This RFE requests that registry.json is extended to support multiple registries, and podman auth updated to use the relevant credentials for a given registry. Version-Release number of selected component (if applicable): Ceph 19.x How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: From this { "url": "cp.icr.io/cp", "username": "wee", "password": "wah" } to this { "cp.icr.io": { "username": "foo", "password": "bar" }, "stg.stg.icr.io": { "username": "wee", "password": "wah" } }