Skip to content
This repository was archived by the owner on May 28, 2020. It is now read-only.

Commit 9e29f65

Browse files
Merge pull request #27 from tianxiaoliang/master
remove hard code
2 parents 3e6cd81 + 8e0b0e8 commit 9e29f65

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

adaptor/gochassis/cse.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const (
2727
paasProjectNameEnv = "PAAS_PROJECT_NAME"
2828
cipherRootEnv = "CIPHER_ROOT"
2929
keytoolAkskFile = "certificate.yaml"
30-
keytoolCipher = "security"
3130

3231
keyAK = "cse.credentials.accessKey"
3332
keySK = "cse.credentials.secretKey"
@@ -161,15 +160,10 @@ func loadAkskAuth() error {
161160
if err != nil {
162161
return err
163162
}
164-
openlogging.GetLogger().Infof("Huawei cloud auth AK: %s, project: %s", c.AccessKey, c.Project)
165-
163+
openlogging.GetLogger().Infof("huawei cloud auth AK: %s, project: %s", c.AccessKey, c.Project)
166164
plainSk := c.SecretKey
167165
cipher := c.AkskCustomCipher
168166
if cipher != "" {
169-
if cipher == keytoolCipher {
170-
openlogging.GetLogger().Infof("Use cipher plugin [aes] as plugin [%s]", cipher)
171-
cipher = "aes"
172-
}
173167
cipherPlugin, err := getAkskCustomCipher(cipher)
174168
if err != nil {
175169
return err

0 commit comments

Comments
 (0)