Skip to content

Commit

Permalink
autosign-receiver: bail out when sig missing
Browse files Browse the repository at this point in the history
We claimed to bail out, but we weren't. Now we do.
  • Loading branch information
mutantmonkey committed Aug 20, 2024
1 parent fbd69ef commit 9a8f936
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autosign/cmd/autosign-receiver/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ func ProcessIncoming(config Config) error {
continue
}

// XXX: use fs.Stat(fileSystem, filename + ".sig") here instead?
// github.com/jszwec/s3fs implements StatFS
if _, err := os.Stat(incomingFilepath + ".sig"); err != nil {
log.Printf("Warning: skipping %q because signature was not present", filename)
continue
}

// verify attestation
Expand Down

0 comments on commit 9a8f936

Please sign in to comment.