Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ both together (full registry).

```bash
# Prereqs: Go 1.26+, openssl, curl, jq
git clone https://github.com/godaddy/ans
git clone https://github.com/agentnameservice/ans
cd ans
make build # builds bin/ans-ra, bin/ans-tl, bin/ans-verify, bin/ans-dns
scripts/demo/start.sh # starts both daemons against ./data/demo
Expand Down
12 changes: 6 additions & 6 deletions cmd/ans-finder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

"github.com/godaddy/ans/internal/adapter/docsui"
"github.com/godaddy/ans/internal/adapter/store/sqlitefinder"
"github.com/godaddy/ans/internal/config"
"github.com/godaddy/ans/internal/finder/handler"
"github.com/godaddy/ans/internal/finder/poller"
"github.com/godaddy/ans/internal/finder/project"
"github.com/agentnameservice/ans/internal/adapter/docsui"
"github.com/agentnameservice/ans/internal/adapter/store/sqlitefinder"
"github.com/agentnameservice/ans/internal/config"
"github.com/agentnameservice/ans/internal/finder/handler"
"github.com/agentnameservice/ans/internal/finder/poller"
"github.com/agentnameservice/ans/internal/finder/project"
)

// Build info injected at build time via -ldflags.
Expand Down
36 changes: 18 additions & 18 deletions cmd/ans-ra/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

"github.com/godaddy/ans/internal/adapter/auth"
"github.com/godaddy/ans/internal/adapter/cert"
"github.com/godaddy/ans/internal/adapter/challenge"
"github.com/godaddy/ans/internal/adapter/didresolver"
"github.com/godaddy/ans/internal/adapter/dns"
"github.com/godaddy/ans/internal/adapter/docsui"
"github.com/godaddy/ans/internal/adapter/eventbus"
"github.com/godaddy/ans/internal/adapter/keymanager"
"github.com/godaddy/ans/internal/adapter/leiverifier"
"github.com/godaddy/ans/internal/adapter/store/sqlite"
"github.com/godaddy/ans/internal/adapter/tlclient"
"github.com/godaddy/ans/internal/config"
"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/godaddy/ans/internal/ra/handler"
ramiddleware "github.com/godaddy/ans/internal/ra/middleware"
raoutbox "github.com/godaddy/ans/internal/ra/outbox"
"github.com/godaddy/ans/internal/ra/service"
"github.com/agentnameservice/ans/internal/adapter/auth"
"github.com/agentnameservice/ans/internal/adapter/cert"
"github.com/agentnameservice/ans/internal/adapter/challenge"
"github.com/agentnameservice/ans/internal/adapter/didresolver"
"github.com/agentnameservice/ans/internal/adapter/dns"
"github.com/agentnameservice/ans/internal/adapter/docsui"
"github.com/agentnameservice/ans/internal/adapter/eventbus"
"github.com/agentnameservice/ans/internal/adapter/keymanager"
"github.com/agentnameservice/ans/internal/adapter/leiverifier"
"github.com/agentnameservice/ans/internal/adapter/store/sqlite"
"github.com/agentnameservice/ans/internal/adapter/tlclient"
"github.com/agentnameservice/ans/internal/config"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
"github.com/agentnameservice/ans/internal/ra/handler"
ramiddleware "github.com/agentnameservice/ans/internal/ra/middleware"
raoutbox "github.com/agentnameservice/ans/internal/ra/outbox"
"github.com/agentnameservice/ans/internal/ra/service"
)

// Build info injected at build time via -ldflags.
Expand Down
24 changes: 12 additions & 12 deletions cmd/ans-tl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

"github.com/godaddy/ans/internal/adapter/auth"
"github.com/godaddy/ans/internal/adapter/docsui"
"github.com/godaddy/ans/internal/adapter/keymanager"
sqlitetl "github.com/godaddy/ans/internal/adapter/store/sqlitetl"
"github.com/godaddy/ans/internal/config"
anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/port"
"github.com/godaddy/ans/internal/tl/handler"
"github.com/godaddy/ans/internal/tl/logstore"
producerkeypkg "github.com/godaddy/ans/internal/tl/producerkey"
"github.com/godaddy/ans/internal/tl/receipt"
"github.com/godaddy/ans/internal/tl/service"
"github.com/agentnameservice/ans/internal/adapter/auth"
"github.com/agentnameservice/ans/internal/adapter/docsui"
"github.com/agentnameservice/ans/internal/adapter/keymanager"
sqlitetl "github.com/agentnameservice/ans/internal/adapter/store/sqlitetl"
"github.com/agentnameservice/ans/internal/config"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/port"
"github.com/agentnameservice/ans/internal/tl/handler"
"github.com/agentnameservice/ans/internal/tl/logstore"
producerkeypkg "github.com/agentnameservice/ans/internal/tl/producerkey"
"github.com/agentnameservice/ans/internal/tl/receipt"
"github.com/agentnameservice/ans/internal/tl/service"
)

// Build info injected at build time via -ldflags.
Expand Down
2 changes: 1 addition & 1 deletion cmd/ans-tl/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http/httptest"
"testing"

"github.com/godaddy/ans/internal/config"
"github.com/agentnameservice/ans/internal/config"
)

// TestBuildAuth_PublicReadAnonymousPaths pins the TL's anonymous-path
Expand Down
2 changes: 1 addition & 1 deletion cmd/ans-verify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
"strings"
"time"

"github.com/godaddy/ans/internal/tl/receipt"
"github.com/agentnameservice/ans/internal/tl/receipt"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/ans-verify/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"github.com/transparency-dev/tessera/api"
"github.com/transparency-dev/tessera/api/layout"

"github.com/godaddy/ans/internal/lognote"
"github.com/godaddy/ans/internal/tl/receipt"
"github.com/agentnameservice/ans/internal/lognote"
"github.com/agentnameservice/ans/internal/tl/receipt"
)

// maxResponseBytes caps any single HTTP body the walker is willing
Expand Down
2 changes: 1 addition & 1 deletion cmd/ans-verify/walk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"sync"
"testing"

anscrypto "github.com/godaddy/ans/internal/crypto"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
)

func TestProviderMatches(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/godaddy/ans
module github.com/agentnameservice/ans

go 1.26

Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/auth/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http/httptest"
"testing"

"github.com/godaddy/ans/internal/adapter/auth"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/adapter/auth"
"github.com/agentnameservice/ans/internal/port"
)

// downstream is a no-op handler that writes 204 so tests can
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/auth/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/coreos/go-oidc/v3/oidc"

"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/port"
)

// OIDCProvider validates OAuth2 / OpenID Connect Bearer tokens using
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/auth/oidc_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/go-jose/go-jose/v4"
"github.com/go-jose/go-jose/v4/jwt"

"github.com/godaddy/ans/internal/adapter/auth"
"github.com/agentnameservice/ans/internal/adapter/auth"
)

// oidcMock spins up an httptest server that serves the two OIDC
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/auth/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"strings"

"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/port"
)

type identityCtxKey struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/auth/static_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http/httptest"
"testing"

"github.com/godaddy/ans/internal/adapter/auth"
"github.com/agentnameservice/ans/internal/adapter/auth"
)

// StaticProvider must accept both:
Expand Down
6 changes: 3 additions & 3 deletions internal/adapter/cert/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/rs/zerolog"
"golang.org/x/crypto/acme"

anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// pemTypePrivateKey is the PEM block type for PKCS#8 private keys,
Expand Down
6 changes: 3 additions & 3 deletions internal/adapter/cert/acme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/rs/zerolog"
"golang.org/x/crypto/acme"

"github.com/godaddy/ans/internal/adapter/cert/acmetest"
"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/adapter/cert/acmetest"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

func newFakeACME(t *testing.T) *acmetest.Server {
Expand Down
6 changes: 3 additions & 3 deletions internal/adapter/cert/cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"testing"
"time"

anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// ----- Test helpers -----
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/cert/le_live_smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

// TestLive_LetsEncryptStaging_CreateOrder talks to REAL Let's Encrypt
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/cert/selfca.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync"
"time"

anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/port"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/port"
)

// SelfCA implements port.IdentityCertificateAuthority with an in-process
Expand Down
6 changes: 3 additions & 3 deletions internal/adapter/cert/serverselfca.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"sync"
"time"

anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// randomToken returns a base64url-encoded 32-byte crypto/rand token —
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/cert/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"time"

anscrypto "github.com/godaddy/ans/internal/crypto"
"github.com/godaddy/ans/internal/port"
anscrypto "github.com/agentnameservice/ans/internal/crypto"
"github.com/agentnameservice/ans/internal/port"
)

// X509Validator implements port.CertificateValidator using Go crypto/x509.
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/didresolver/noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"context"
"encoding/json"

"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/port"
)

// Noop is the quickstart resolver. It never dials anywhere: the DID
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/didresolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"github.com/rs/zerolog"

"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

func TestNoopResolver_SynthesizesFromHints(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/didresolver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/rs/zerolog"
"golang.org/x/net/publicsuffix"

"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// Web is the production did:web resolver: an HTTPS GET of the DID
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/ansbadge.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

// BadgeRecord returns the `_ans-badge.<fqdn>` TXT record every ANS-family
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/ansbadge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

func TestBadgeRecord(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/discovery/ans/dnsaid.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"
"strings"

"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// DNSAIDProfile implements port.ProfileEmitter for the DNS-AID-aligned
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/dnsaid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

func mustReg(t *testing.T, host string, eps []domain.AgentEndpoint, cert *domain.ByocServerCertificate) *domain.AgentRegistration {
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/url"
"strings"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

// protocolToANSValue maps a protocol enum to the wire token used inside
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

func TestProtocolToANSValue(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/tlsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/url"
"sort"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

// TLSARecord returns the TLSA cert-binding records every ANS-family
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/discovery/ans/tlsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/godaddy/ans/internal/domain"
"github.com/agentnameservice/ans/internal/domain"
)

func TestTLSARecord(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/adapter/discovery/ans/txt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ans
import (
"fmt"

"github.com/godaddy/ans/internal/domain"
"github.com/godaddy/ans/internal/port"
"github.com/agentnameservice/ans/internal/domain"
"github.com/agentnameservice/ans/internal/port"
)

// TXTProfile implements port.ProfileEmitter for the original `_ans` TXT
Expand Down
Loading