8df5c75446
Implement trust support for images api v2 when uploading images with registry. The algorithm is the following: 1. If 'registry' is set as data_api backend create a trust 2. Upload an image 3. Try to update the image status to 'active' in registry 4. If trust has been created succcessfully and 401 occured during updating the image status then renew the token and try to update the image record in registry again Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com> Co-Authored-By: Kairat Kushaev <kkushaev@mirantis.com> Implements bp trust-authentication Change-Id: Ia3b82782b14f5dfc93457620633c1039c38fc366
8 lines
386 B
YAML
8 lines
386 B
YAML
---
|
|
features:
|
|
- Implemented re-authentication with trusts when updating image status in
|
|
registry after image upload. When long-running image upload takes some a lot
|
|
of time (more than token expiration time) glance uses trusts to receive new
|
|
token and update image status in registry. It allows users to upload big
|
|
size images without increasing token expiration time.
|