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

Commit

Permalink
Merge pull request #27 from tianxiaoliang/master
Browse files Browse the repository at this point in the history
remove hard code
  • Loading branch information
tianxiaoliang authored Aug 6, 2019
2 parents 3e6cd81 + 8e0b0e8 commit 9e29f65
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions adaptor/gochassis/cse.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const (
paasProjectNameEnv = "PAAS_PROJECT_NAME"
cipherRootEnv = "CIPHER_ROOT"
keytoolAkskFile = "certificate.yaml"
keytoolCipher = "security"

keyAK = "cse.credentials.accessKey"
keySK = "cse.credentials.secretKey"
Expand Down Expand Up @@ -161,15 +160,10 @@ func loadAkskAuth() error {
if err != nil {
return err
}
openlogging.GetLogger().Infof("Huawei cloud auth AK: %s, project: %s", c.AccessKey, c.Project)

openlogging.GetLogger().Infof("huawei cloud auth AK: %s, project: %s", c.AccessKey, c.Project)
plainSk := c.SecretKey
cipher := c.AkskCustomCipher
if cipher != "" {
if cipher == keytoolCipher {
openlogging.GetLogger().Infof("Use cipher plugin [aes] as plugin [%s]", cipher)
cipher = "aes"
}
cipherPlugin, err := getAkskCustomCipher(cipher)
if err != nil {
return err
Expand Down

0 comments on commit 9e29f65

Please sign in to comment.