From 9590d5a55bd8fbfb7a004c1762db8eb295ce5bb4 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Thu, 11 May 2023 15:07:57 -0700 Subject: [PATCH] conf: Handle app_key correctly for GitHub connections app_key is expected to be a file path, not a value in the configuration file. Change-Id: Ibf0641cd31148749477003ced574410178cace7c --- zuul_operator/zuul.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zuul_operator/zuul.py b/zuul_operator/zuul.py index bec645f..b2622c6 100644 --- a/zuul_operator/zuul.py +++ b/zuul_operator/zuul.py @@ -215,8 +215,8 @@ class Zuul: filter(namespace=self.namespace).\ get(name=connection['secretName']) for k, v in obj.obj['data'].items(): - if k == 'sshkey': - v = f'/etc/zuul/connections/{connection_name}/sshkey' + if k in ('sshkey', 'app_key'): + v = f'/etc/zuul/connections/{connection_name}/{k}' else: v = base64.b64decode(v).decode('utf-8') connection[k] = v