commit f5a8ba9f22cc599a645e744d5ddbb56cbaed405d
Author: Joao Victor Portal <email address hidden>
Date: Tue Mar 7 17:53:54 2023 -0300
Support old Barbican registry secrets
Older versions of StarlingX created Barbican registry secrets as
"text/plain", that are retrieved as "string" in Python 3. This change
adds support to these secrets, that may be used in upgraded systems. In
non-upgraded newer systems, these secrets are created as
"application/octet-stream", being retrieved as "bytes" to be decoded
using UTF-8 in Python 3.
Test Plan:
PASS: Check that the system can retrive the registries usernames and
passwords when the secrets have the content type as "text/plain".
PASS: Check that the system can retrive the registries usernames and
passwords when the secrets have the content type as
"application/octet-stream".
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/876781 /opendev. org/starlingx/ config/ commit/ f5a8ba9f22cc599 a645e744d5ddbb5 6cbaed405d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f5a8ba9f22cc599 a645e744d5ddbb5 6cbaed405d
Author: Joao Victor Portal <email address hidden>
Date: Tue Mar 7 17:53:54 2023 -0300
Support old Barbican registry secrets
Older versions of StarlingX created Barbican registry secrets as n/octet- stream" , being retrieved as "bytes" to be decoded
"text/plain", that are retrieved as "string" in Python 3. This change
adds support to these secrets, that may be used in upgraded systems. In
non-upgraded newer systems, these secrets are created as
"applicatio
using UTF-8 in Python 3.
Test Plan:
PASS: Check that the system can retrive the registries usernames and
passwords when the secrets have the content type as "text/plain".
PASS: Check that the system can retrive the registries usernames and n/octet- stream" .
passwords when the secrets have the content type as
"applicatio
Closes-Bug: 2009631 24449dc66f86ef7 90e1f23222c
Signed-off-by: Joao Victor Portal <email address hidden>
Change-Id: I5a71239b09ef11