Skip to content
Snippets Groups Projects
Commit c2d128a2 authored by James Page's avatar James Page
Browse files

#31 Fixing secret key name for S3 user secret

parent 26e623ae
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ type DatabaseCredentials struct { ...@@ -27,7 +27,7 @@ type DatabaseCredentials struct {
type S3UploadCredentials struct { type S3UploadCredentials struct {
AccessKeyID string `json:"accessKeyID"` AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey"` SecretKey string `json:"secretKey"`
} }
var ( var (
...@@ -52,7 +52,7 @@ func GetS3UploadCredentials(secretID string, isDebug bool) (*credentials2.Creden ...@@ -52,7 +52,7 @@ func GetS3UploadCredentials(secretID string, isDebug bool) (*credentials2.Creden
if err != nil { if err != nil {
return nil, err return nil, err
} }
return credentials2.NewStaticCredentials(credentials.AccessKeyID, credentials.SecretAccessKey, ""), nil return credentials2.NewStaticCredentials(credentials.AccessKeyID, credentials.SecretKey, ""), nil
} }
func GetSecret(secretID string, isDebug bool) (string, string) { func GetSecret(secretID string, isDebug bool) (string, string) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment