Skip to content

Commit

Permalink
ca: Output issuer configuration details at startup (#7582)
Browse files Browse the repository at this point in the history
As an operator, it's helpful to know what issuers a given CA has at
startup time. We already log the default issuer profile for instance.

Related to #7469
  • Loading branch information
pgporada authored Jul 10, 2024
1 parent 30c6e59 commit 861ea99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/boulder-ca/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,13 @@ func main() {
cmd.FailOnError(err, "Failed to load CT Log List")
}

clk := cmd.Clock()
issuers := make([]*issuance.Issuer, 0, len(c.CA.Issuance.Issuers))
for _, issuerConfig := range c.CA.Issuance.Issuers {
issuer, err := issuance.LoadIssuer(issuerConfig, cmd.Clock())
issuer, err := issuance.LoadIssuer(issuerConfig, clk)
cmd.FailOnError(err, "Loading issuer")
issuers = append(issuers, issuer)
logger.Infof("Loaded issuer: name=[%s] keytype=[%s] nameID=[%v] isActive=[%t]", issuer.Name(), issuer.KeyType(), issuer.NameID(), issuer.IsActive())
}

if c.CA.Issuance.DefaultCertificateProfileName == "" {
Expand Down Expand Up @@ -223,8 +225,6 @@ func main() {
tlsConfig, err := c.CA.TLS.Load(scope)
cmd.FailOnError(err, "TLS config")

clk := cmd.Clock()

conn, err := bgrpc.ClientSetup(c.CA.SAService, tlsConfig, scope, clk)
cmd.FailOnError(err, "Failed to load credentials and create gRPC connection to SA")
sa := sapb.NewStorageAuthorityClient(conn)
Expand Down

0 comments on commit 861ea99

Please sign in to comment.