Andy Ning ccf9416b74 Added patch to store barbican data in ascii format in DB
Currently Barbican stores base64 encoded secret data (plugin_meta
and cypher_text) as hex bytes in database. But when these data
is retrieved from database for base64 decoding, it is not
converted back to ascii format, causing the decoding failed with
error:

binascii.Error: Invalid base64-encoded string: number of data
characters (273) cannot be 1 more than a multiple of 4.

This commit added a patch to Barbican to store these data in ascii
format in the database so they can be decoded when retrieved.

Test Plan for Debian:
PASS: trigger mtcAgent to store a password secret in Barbican by
      system host-update controller-0 bm_type=dynamic bm_ip=<bm IP>
      bm_username=root bm_password=root.
PASS: retrieve the secret with "--payload" option by
      openstack secret get <secret URL> --payload.
PASS: AIO-SX deployment and unlock.

Closes-Bug: 1975611
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Change-Id: I1c2fa112caa8700b1c21130aec041fd7d2a52a19
2022-05-24 14:02:26 -04:00
2018-09-25 14:43:18 -05:00
2019-04-19 19:52:35 +00:00
2021-10-14 12:50:16 +03:00
2020-04-03 08:19:18 +00:00
2020-04-03 08:19:18 +00:00
2021-11-29 13:10:06 +02:00
2018-05-31 07:37:19 -07:00

stx-upstream

StarlingX Upstream Packages

Description
StarlingX Upstream packaging
Readme 6.2 MiB
Languages
Python 52.9%
Shell 42.4%
BitBake 4.1%
POV-Ray SDL 0.6%