Skip to content

Commit

Permalink
Merge pull request #347 from berty/dev/moul/always-sign-urls
Browse files Browse the repository at this point in the history
fix: always sign URLs, even with an empty salt
  • Loading branch information
moul authored Jun 15, 2020
2 parents aadaea5 + 573a92b commit 3308fdb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions go/pkg/yolopb/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ var (

// PrepareOutput adds new fields containing URLs with a signature and filters sensitive/useless data
func (b *Build) PrepareOutput(salt string) error {
if salt != "" {
for _, artifact := range b.HasArtifacts {
if err := artifact.AddSignedURLs(salt); err != nil {
return err
}
for _, artifact := range b.HasArtifacts {
if err := artifact.AddSignedURLs(salt); err != nil {
return err
}
}

Expand Down

0 comments on commit 3308fdb

Please sign in to comment.