Skip to content

Commit 5d8f608

Browse files
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.
1 parent b474778 commit 5d8f608

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

release_pkgs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import logging
1414
import os
1515
import shutil
16-
from hashlib import sha256
1716
from pathlib import Path
1817
from subprocess import Popen, PIPE
1918

@@ -35,7 +34,6 @@ def __init__(self, account_id, bucket_name, client_id, client_secret):
3534

3635
def upload_pkg_to_r2(self, filename, upload_file_path):
3736
endpoint_url = f"https://{self.account_id}.r2.cloudflarestorage.com"
38-
token_secret_hash = sha256(self.client_secret.encode()).hexdigest()
3937

4038
config = Config(
4139
region_name='auto',
@@ -48,7 +46,7 @@ def upload_pkg_to_r2(self, filename, upload_file_path):
4846
"s3",
4947
endpoint_url=endpoint_url,
5048
aws_access_key_id=self.client_id,
51-
aws_secret_access_key=token_secret_hash,
49+
aws_secret_access_key=self.client_secret,
5250
config=config,
5351
)
5452

0 commit comments

Comments
 (0)