From 84591759546d07d15c7ab56c328e9d30c3b49034 Mon Sep 17 00:00:00 2001 From: ericyyyang2 Date: Wed, 6 Mar 2024 16:01:13 +0800 Subject: [PATCH] Support_tencent_cam_international_station It needs to be compatible with Tencent CAM International Station. The SecretID starts with IK. Signed-off-by: ericyyyang2 --- src/pkg/reg/adapter/tencentcr/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pkg/reg/adapter/tencentcr/auth.go b/src/pkg/reg/adapter/tencentcr/auth.go index b905628c6..9a7d64771 100644 --- a/src/pkg/reg/adapter/tencentcr/auth.go +++ b/src/pkg/reg/adapter/tencentcr/auth.go @@ -96,5 +96,6 @@ func (q *qcloudAuthCredential) getTempInstanceToken() (err error) { } func isSecretID(key string) (ok bool) { - return strings.Index(key, "AKID") == 0 + return strings.Index(key, "AKID") == 0 || strings.Index(key, "IK") == 0 + }