Skip to content

Commit

Permalink
Fix yaml field name
Browse files Browse the repository at this point in the history
Needed to be pluralized

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper committed Aug 31, 2023
1 parent e29d435 commit 005dd46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/verifier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func main() {
}
for _, certID := range monitoredVals.CertificateIdentities {
if len(certID.Issuers) == 0 {
fmt.Printf("Monitoring subject %s\n", certID.CertSubject)
fmt.Printf("Monitoring certificate subject %s\n", certID.CertSubject)
} else {
fmt.Printf("Monitoring subject %s for issuer(s) %s\n", certID.CertSubject, strings.Join(certID.Issuers, ","))
fmt.Printf("Monitoring certificate subject %s for issuer(s) %s\n", certID.CertSubject, strings.Join(certID.Issuers, ","))
}
}
for _, fp := range monitoredVals.Fingerprints {
Expand Down
2 changes: 1 addition & 1 deletion pkg/rekor/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type MonitoredValues struct {
Fingerprints []string `yaml:"fingerprints"`
// Subjects contains a list of subjects that are not specified in a
// certificate, such as a SSH key or PGP key email address
Subjects []string `yaml:"subject"`
Subjects []string `yaml:"subjects"`
}

// IdentityEntry holds a certificate subject, issuer, and log entry metadata
Expand Down

0 comments on commit 005dd46

Please sign in to comment.