From 5d8f60873d359cccc0224bff8d47911e6fd6083d Mon Sep 17 00:00:00 2001 From: Sudarsan Reddy Date: Wed, 23 Aug 2023 15:08:39 +0100 Subject: [PATCH] TUN-7718: Update R2 Token to no longer encode secret This is simply because we no longer use the legacy R2 secret that needed this encoding. --- release_pkgs.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/release_pkgs.py b/release_pkgs.py index e916e249..1f31e548 100644 --- a/release_pkgs.py +++ b/release_pkgs.py @@ -13,7 +13,6 @@ import base64 import logging import os import shutil -from hashlib import sha256 from pathlib import Path from subprocess import Popen, PIPE @@ -35,7 +34,6 @@ class PkgUploader: def upload_pkg_to_r2(self, filename, upload_file_path): endpoint_url = f"https://{self.account_id}.r2.cloudflarestorage.com" - token_secret_hash = sha256(self.client_secret.encode()).hexdigest() config = Config( region_name='auto', @@ -48,7 +46,7 @@ class PkgUploader: "s3", endpoint_url=endpoint_url, aws_access_key_id=self.client_id, - aws_secret_access_key=token_secret_hash, + aws_secret_access_key=self.client_secret, config=config, )