Skip to content

Commit 5962ea3

Browse files
committed
Add TLSA checker
1 parent 4ac0000 commit 5962ea3

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

checkers/dane.go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This file is part of the happyDomain (R) project.
2+
// Copyright (c) 2020-2026 happyDomain
3+
// Authors: Pierre-Olivier Mercier, et al.
4+
//
5+
// This program is offered under a commercial and under the AGPL license.
6+
// For commercial licensing, contact us at <contact@happydomain.org>.
7+
//
8+
// For AGPL licensing:
9+
// This program is free software: you can redistribute it and/or modify
10+
// it under the terms of the GNU Affero General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// (at your option) any later version.
13+
//
14+
// This program is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU Affero General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU Affero General Public License
20+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
22+
package checkers
23+
24+
import (
25+
dane "git.happydns.org/checker-dane/checker"
26+
sdk "git.happydns.org/checker-sdk-go/checker"
27+
"git.happydns.org/happyDomain/internal/checker"
28+
)
29+
30+
func init() {
31+
prvd := dane.Provider()
32+
checker.RegisterObservationProvider(prvd)
33+
checker.RegisterExternalizableChecker(prvd.(sdk.CheckerDefinitionProvider).Definition())
34+
}

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.25.0
55
toolchain go1.26.2
66

77
require (
8+
git.happydns.org/checker-dane v0.1.3
89
git.happydns.org/checker-dangling v0.1.0
910
git.happydns.org/checker-legacy-records v0.1.0
1011
git.happydns.org/checker-matrix v0.1.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCB
88
codeberg.org/miekg/dns v0.6.73 h1:4aRD1k1THw49vpe1d+W3KO16adAGN8Raxdi0WGvvbrY=
99
codeberg.org/miekg/dns v0.6.73/go.mod h1:58Y3ZTg6Z5ZEm/ZAAwHehbZfrD4u5mE4RByHoPEMyKk=
1010
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
11+
git.happydns.org/checker-dane v0.1.3 h1:9VpQ4FrWJE/O6MZ08FCk1vmHsr3u5V7478als9Y4jl8=
12+
git.happydns.org/checker-dane v0.1.3/go.mod h1:md5SQA8M1QGq9MoXe3QVV+m55I+r8lU4iYx5KzvkbII=
1113
git.happydns.org/checker-dangling v0.1.0 h1:gZVyHAKG2U1FXBt7cPnZsr45JQWZ21jlThKhHckb+i8=
1214
git.happydns.org/checker-dangling v0.1.0/go.mod h1:pVvhXkZiKueKhWe878GrN+7BMRrqtJDfTSKLX5eCC5M=
1315
git.happydns.org/checker-legacy-records v0.1.0 h1:/DR54f7f8R+k20f+7YceCEi/wm4gfXxZ8S1mB5f6xR4=

0 commit comments

Comments
 (0)