From 3b47ea4f7b9c69fc4864b0f2f896339d6625036e Mon Sep 17 00:00:00 2001 From: Silas Strawn Date: Thu, 12 May 2022 11:35:45 -0700 Subject: [PATCH] only encrypt on windows --- src/containerapp/azext_containerapp/_github_oauth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/containerapp/azext_containerapp/_github_oauth.py b/src/containerapp/azext_containerapp/_github_oauth.py index 1f5bf31d59f..ce1ac41d337 100644 --- a/src/containerapp/azext_containerapp/_github_oauth.py +++ b/src/containerapp/azext_containerapp/_github_oauth.py @@ -5,6 +5,7 @@ # pylint: disable=consider-using-f-string import os +import sys from datetime import datetime from knack.log import get_logger @@ -33,7 +34,9 @@ def _get_github_token_secret_store(cmd): location = os.path.join(cmd.cli_ctx.config.config_dir, "github_token_cache") - file_persistence = build_persistence(location, encrypt=True) + # TODO use core CLI util to take care of this once it's merged and released + encrypt = sys.platform.startswith('win32') # encryption not supported on non-windows platforms + file_persistence = build_persistence(location, encrypt) return SecretStore(file_persistence)