github.com/letsencrypt/boulder@v0.20251208.0/core/proto/core.proto (about)

     1  syntax = "proto3";
     2  
     3  package core;
     4  option go_package = "github.com/letsencrypt/boulder/core/proto";
     5  
     6  import "google/protobuf/timestamp.proto";
     7  
     8  message Identifier {
     9    string type = 1;
    10    string value = 2;
    11  }
    12  
    13  message Challenge {
    14    // Next unused field number: 13
    15    reserved 4, 5, 8, 11;
    16    int64 id = 1;
    17    // Fields specified by RFC 8555, Section 8.
    18    string type = 2;
    19    string url = 9;
    20    string status = 6;
    21    google.protobuf.Timestamp validated = 12;
    22    ProblemDetails error = 7;
    23    // Fields specified by individual validation methods.
    24    string token = 3;
    25    // Additional fields for our own record keeping.
    26    repeated ValidationRecord validationrecords = 10;
    27  }
    28  
    29  message ValidationRecord {
    30    // Next unused field number: 9
    31    string hostname = 1;
    32    string port = 2;
    33    repeated bytes addressesResolved = 3; // netip.Addr.MarshalText()
    34    bytes addressUsed = 4; // netip.Addr.MarshalText()
    35  
    36    repeated string authorities = 5;
    37    string url = 6;
    38    // A list of addresses tried before the address used (see
    39    // core/objects.go and the comment on the ValidationRecord structure
    40    // definition for more information.
    41    repeated bytes addressesTried = 7; // netip.Addr.MarshalText()
    42    repeated string resolverAddrs = 8;
    43  }
    44  
    45  message ProblemDetails {
    46    string problemType = 1;
    47    string detail = 2;
    48    int32 httpStatus = 3;
    49  }
    50  
    51  message Certificate {
    52    // Next unused field number: 9
    53    int64 registrationID = 1;
    54    string serial = 2;
    55    string digest = 3;
    56    bytes der = 4;
    57    reserved 5;  // Previously issuedNS
    58    google.protobuf.Timestamp issued = 7;
    59    reserved 6; // Previously expiresNS
    60    google.protobuf.Timestamp expires = 8;
    61  }
    62  
    63  message CertificateStatus {
    64    // Next unused field number: 16
    65    string serial = 1;
    66    reserved 2; // previously subscriberApproved
    67    string status = 3;
    68    reserved 4; // Previously ocspLastUpdatedNS
    69    google.protobuf.Timestamp ocspLastUpdated = 15;
    70    reserved 5; // Previously revokedDateNS
    71    google.protobuf.Timestamp revokedDate = 12;
    72    int64 revokedReason = 6;
    73    reserved 7; // Previously lastExpirationNagSentNS
    74    reserved 8; // previously ocspResponse
    75    google.protobuf.Timestamp lastExpirationNagSent = 13;
    76    reserved 9; // Previously notAfterNS
    77    google.protobuf.Timestamp notAfter = 14;
    78    bool isExpired = 10;
    79    int64 issuerID = 11;
    80  }
    81  
    82  message Registration {
    83    // Next unused field number: 10
    84    int64 id = 1;
    85    bytes key = 2;
    86    reserved 3; // Previously contact
    87    reserved 4; // Previously contactsPresent
    88    string agreement = 5;
    89    reserved 6; // Previously initialIP
    90    reserved 7; // Previously createdAtNS
    91    google.protobuf.Timestamp createdAt = 9;
    92    string status = 8;
    93  }
    94  
    95  message Authorization {
    96    // Next unused field number: 12
    97    reserved 5, 7, 8;
    98    string id = 1;
    99    int64 registrationID = 3;
   100    // Fields specified by RFC 8555, Section 7.1.4
   101    reserved 2; // Previously dnsName
   102    Identifier identifier = 11;
   103    string status = 4;
   104    google.protobuf.Timestamp expires = 9;
   105    repeated core.Challenge challenges = 6;
   106    string certificateProfileName = 10;
   107    // We do not directly represent the "wildcard" field, instead inferring it
   108    // from the identifier value.
   109  }
   110  
   111  message Order {
   112    // Next unused field number: 17
   113    reserved 3, 6, 10;
   114    int64 id = 1;
   115    int64 registrationID = 2;
   116    // Fields specified by RFC 8555, Section 7.1.3
   117    // Note that we do not respect notBefore and notAfter, and we infer the
   118    // finalize and certificate URLs from the id and certificateSerial fields.
   119    string status = 7;
   120    google.protobuf.Timestamp expires = 12;
   121    reserved 8; // Previously dnsNames
   122    repeated Identifier identifiers = 16;
   123    ProblemDetails error = 4;
   124    repeated int64 v2Authorizations = 11;
   125    string certificateSerial = 5;
   126    // Additional fields for our own record-keeping.
   127    google.protobuf.Timestamp created = 13;
   128    string certificateProfileName = 14;
   129    string replaces = 15;
   130    bool beganProcessing = 9;
   131  }
   132  
   133  message CRLEntry {
   134    // Next unused field number: 5
   135    string serial = 1;
   136    int32 reason = 2;
   137    reserved 3; // Previously revokedAtNS
   138    google.protobuf.Timestamp revokedAt = 4;
   139  }