Skip to content

Commit

Permalink
Fix the SIA secret json for parameter store (#2797)
Browse files Browse the repository at this point in the history
Signed-off-by: rajeshal <[email protected]>
Co-authored-by: rajeshal <[email protected]>
  • Loading branch information
rajeshal and rajeshal authored Nov 14, 2024
1 parent c2c242d commit 8354605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/go/sia/aws/lambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func StoreAthenzIdentityInSecretManagerCustomFormat(athenzDomain, athenzService,
// The parameter specified by the name must be pre-created
func StoreAthenzIdentityInParameterStore(athenzDomain, athenzService, parameterName, kmsId string, siaCertData *util.SiaCertData) error {
jsonFieldMapper := make(map[string]string)
jsonFieldMapper[util.SiaYieldMapperCertSignerPemKey] = fmt.Sprintf("%s.%s.cert.pem", athenzDomain, athenzService)
jsonFieldMapper[util.SiaYieldMapperCertSignerPemKey] = fmt.Sprintf("%s.%s.key.pem", athenzDomain, athenzService)
jsonFieldMapper[util.SiaYieldMapperX509CertPemKey] = fmt.Sprintf("%s.%s.cert.pem", athenzDomain, athenzService)
jsonFieldMapper[util.SiaYieldMapperPvtPemKey] = fmt.Sprintf("%s.%s.key.pem", athenzDomain, athenzService)
//do not set CA cert
jsonFieldMapper[util.SiaYieldMapperIssueTimeKey] = "time"
return storeAthenzIdentityInParameterStoreCustomFormat(parameterName, kmsId, siaCertData, jsonFieldMapper)
Expand Down

0 comments on commit 8354605

Please sign in to comment.