Skip to content

Commit

Permalink
Merge pull request #37 from Comcast/fix/dont-share-secret
Browse files Browse the repository at this point in the history
Don't share the secret with the failure URL.  They should know this.
  • Loading branch information
schmidtw authored Aug 8, 2017
2 parents 4c99efe + 479518c commit 54009ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/caduceus/outboundSender.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ func (osf OutboundSenderFactory) New() (obs OutboundSender, err error) {
},
}

// Don't share the secret with others when there is an error.
caduceusOutboundSender.failureMsg.Original.Config.Secret = "XxxxxX"

if "" != osf.Listener.Config.Secret {
caduceusOutboundSender.secret = []byte(osf.Listener.Config.Secret)
}
Expand Down

0 comments on commit 54009ac

Please sign in to comment.