...

Package notmain

import "github.com/letsencrypt/boulder/cmd/bad-key-revoker"
Overview
Index

Overview ▾

Index ▾

Package files

main.go

type Config

type Config struct {
    BadKeyRevoker struct {
        DB        cmd.DBConfig
        DebugAddr string `validate:"hostname_port"`

        TLS       cmd.TLSConfig
        RAService *cmd.GRPCClientConfig

        // MaximumRevocations specifies the maximum number of certificates associated with
        // a key hash that bad-key-revoker will attempt to revoke. If the number of certificates
        // is higher than MaximumRevocations bad-key-revoker will error out and refuse to
        // progress until this is addressed.
        MaximumRevocations int `validate:"gte=0"`
        // FindCertificatesBatchSize specifies the maximum number of serials to select from the
        // keyHashToSerial table at once
        FindCertificatesBatchSize int `validate:"required"`

        // Interval specifies the minimum duration bad-key-revoker
        // should sleep between attempting to find blockedKeys rows to
        // process when there is an error or no work to do.
        Interval config.Duration `validate:"-"`

        // BackoffIntervalMax specifies a maximum duration the backoff
        // algorithm will wait before retrying in the event of error
        // or no work to do.
        BackoffIntervalMax config.Duration `validate:"-"`

        Mailer struct {
            cmd.SMTPConfig
            // Path to a file containing a list of trusted root certificates for use
            // during the SMTP connection (as opposed to the gRPC connections).
            SMTPTrustedRootFile string

            From          string `validate:"required"`
            EmailSubject  string `validate:"required"`
            EmailTemplate string `validate:"required"`
        }
    }

    Syslog        cmd.SyslogConfig
    OpenTelemetry cmd.OpenTelemetryConfig
}