Comment 8 for bug 1799746

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'

It's possible this is an issue in barbican. Possibly this call:
  opaque_data.OpaqueData(secret_dto.secret)

needs to be changed to:
  opaque_data.OpaqueData(secret_dto.secret.encode('utf-8'))

https://github.com/openstack/barbican/blob/7.0.0/barbican/plugin/castellan_secret_store.py#L86