diff --git a/resolwe/flow/managers/workload_connectors/kubernetes.py b/resolwe/flow/managers/workload_connectors/kubernetes.py index e57337e3c..700d86057 100644 --- a/resolwe/flow/managers/workload_connectors/kubernetes.py +++ b/resolwe/flow/managers/workload_connectors/kubernetes.py @@ -495,9 +495,9 @@ def _secrets(self, data: Data, secrets_name: str) -> dict[str, Any]: "metadata": {"name": secrets_name}, "immutable": True, "data": { - "LISTENER_PUBLIC_KEY": b64encode(LISTENER_PUBLIC_KEY), - "CURVE_PUBLIC_KEY": b64encode(data.worker.public_key), - "CURVE_PRIVATE_KEY": b64encode(data.worker.private_key), + "LISTENER_PUBLIC_KEY": b64encode(LISTENER_PUBLIC_KEY).decode(), + "CURVE_PUBLIC_KEY": b64encode(data.worker.public_key).decode(), + "CURVE_PRIVATE_KEY": b64encode(data.worker.private_key).decode(), }, }