Bump SDK to 1.4.0
This commit is contained in:
parent
79782a49c4
commit
5b71e85f49
4 changed files with 15 additions and 15 deletions
|
|
@ -69,11 +69,11 @@ func (r *tlsRule) Evaluate(ctx context.Context, obs sdk.ObservationGetter, opts
|
||||||
func evaluateProbe(p TLSProbe) sdk.CheckState {
|
func evaluateProbe(p TLSProbe) sdk.CheckState {
|
||||||
subject := fmt.Sprintf("%s://%s", p.Type, p.Endpoint)
|
subject := fmt.Sprintf("%s://%s", p.Type, p.Endpoint)
|
||||||
meta := map[string]any{
|
meta := map[string]any{
|
||||||
"type": p.Type,
|
"type": p.Type,
|
||||||
"host": p.Host,
|
"host": p.Host,
|
||||||
"port": p.Port,
|
"port": p.Port,
|
||||||
"sni": p.SNI,
|
"sni": p.SNI,
|
||||||
"issues": len(p.Issues),
|
"issues": len(p.Issues),
|
||||||
}
|
}
|
||||||
if p.TLSVersion != "" {
|
if p.TLSVersion != "" {
|
||||||
meta["tls_version"] = p.TLSVersion
|
meta["tls_version"] = p.TLSVersion
|
||||||
|
|
|
||||||
|
|
@ -56,17 +56,17 @@ type TLSProbe struct {
|
||||||
// IssuerAKI is the uppercase hex of the leaf's Authority Key Identifier
|
// IssuerAKI is the uppercase hex of the leaf's Authority Key Identifier
|
||||||
// extension (i.e. the issuer cert's SKI). This is the primary lookup key
|
// extension (i.e. the issuer cert's SKI). This is the primary lookup key
|
||||||
// into the CCADB CAA Identifiers CSV ("Subject Key Identifier (Hex)").
|
// into the CCADB CAA Identifiers CSV ("Subject Key Identifier (Hex)").
|
||||||
IssuerAKI string `json:"issuer_aki,omitempty"`
|
IssuerAKI string `json:"issuer_aki,omitempty"`
|
||||||
Subject string `json:"subject,omitempty"`
|
Subject string `json:"subject,omitempty"`
|
||||||
DNSNames []string `json:"dns_names,omitempty"`
|
DNSNames []string `json:"dns_names,omitempty"`
|
||||||
// Chain carries one entry per certificate presented by the server
|
// Chain carries one entry per certificate presented by the server
|
||||||
// (leaf first, then intermediates in order). Each entry precomputes
|
// (leaf first, then intermediates in order). Each entry precomputes
|
||||||
// the four TLSA selector×matching_type hashes plus the raw DER so
|
// the four TLSA selector×matching_type hashes plus the raw DER so
|
||||||
// DANE consumers can match without re-handshaking or re-parsing.
|
// DANE consumers can match without re-handshaking or re-parsing.
|
||||||
Chain []CertInfo `json:"chain,omitempty"`
|
Chain []CertInfo `json:"chain,omitempty"`
|
||||||
ElapsedMS int64 `json:"elapsed_ms,omitempty"`
|
ElapsedMS int64 `json:"elapsed_ms,omitempty"`
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
Issues []Issue `json:"issues,omitempty"`
|
Issues []Issue `json:"issues,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertInfo describes one certificate in the presented chain together with
|
// CertInfo describes one certificate in the presented chain together with
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -2,4 +2,4 @@ module git.happydns.org/checker-tls
|
||||||
|
|
||||||
go 1.25.0
|
go 1.25.0
|
||||||
|
|
||||||
require git.happydns.org/checker-sdk-go v1.3.0
|
require git.happydns.org/checker-sdk-go v1.4.0
|
||||||
|
|
|
||||||
4
go.sum
4
go.sum
|
|
@ -1,2 +1,2 @@
|
||||||
git.happydns.org/checker-sdk-go v1.3.0 h1:FG2kIhlJCzI0m35EhxSgn4UWc9M4ha6aZTeoChu4l7A=
|
git.happydns.org/checker-sdk-go v1.4.0 h1:sO8EnF3suhNgYLRsbmCZWJOymH/oNMrOUqj3FEzJArs=
|
||||||
git.happydns.org/checker-sdk-go v1.3.0/go.mod h1:aNAcfYFfbhvH9kJhE0Njp5GX0dQbxdRB0rJ0KvSC5nI=
|
git.happydns.org/checker-sdk-go v1.4.0/go.mod h1:aNAcfYFfbhvH9kJhE0Njp5GX0dQbxdRB0rJ0KvSC5nI=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue