remove go.mod replace

rabbitprincess committed Mar 5, 2026 at 08:44 UTC 1870d3fff8e46c9516fa75e2f2e44f92d8509cae
5 files changed +4 -8
AGENTS.md
-3
@@ -46,9 +46,6 @@ Source of truth for architecture decisions: `docs/adr/README.md` and linked ADRs
46 3. **All relay URLs must be `https://`.** `NormalizeRelayAPIURL` rejects non-HTTPS. SDK and tunnel hard-fail on `http://`.
47 - Why: enforces transport security without opt-out.
48
49 -4. **`keyless_tls/` is a local Go sub-module** (`replace` directive in root `go.mod`). Not published separately.
50 - - Why: coupled evolution with the relay; separate `go.mod` for dependency isolation only.
51 -
49 ## SNI Routing Invariants
50
51 1. **SNI wildcard matching is one-level only.** `sni.Router.GetRoute()` checks `*.parent.example.com` for `foo.parent.example.com` — not arbitrary depth.
Dockerfile
+1 -1
@@ -7,7 +7,7 @@ WORKDIR /src
7 RUN apt-get update && apt-get install -y --no-install-recommends \
8 make && rm -rf /var/lib/apt/lists/*
9
10 -COPY frontend ./
10 +COPY frontend ./frontend
11 COPY Makefile ./
12
13 RUN --mount=type=cache,target=/root/.npm \
README.md
-1
@@ -111,7 +111,6 @@ See [portal-toys](https://github.com/gosuda/portal-toys) for more examples.
111 ### Deployment Notes
112
113 - `admin_settings.json` persists runtime state (ban lists, BPS limits, approval mode) in the process working directory. Mount CWD as a volume to preserve state across container restarts.
114 -- `keyless_tls/` is a local Go sub-module (`replace` directive in root `go.mod`), not a separately published package.
114
115 ## Architecture
116
go.mod
+1 -3
@@ -4,13 +4,11 @@ go 1.26.0
4
5 require (
6 github.com/go-acme/lego/v4 v4.32.0
7 - github.com/gosuda/keyless_tls v0.0.0
7 + github.com/gosuda/keyless_tls v0.0.1-0.20260304212324-7733f8366abc
8 github.com/rs/zerolog v1.34.0
9 golang.org/x/net v0.51.0
10 )
11
12 -replace github.com/gosuda/keyless_tls => ./keyless_tls
13 -
12 require (
13 github.com/cenkalti/backoff/v5 v5.0.3 // indirect
14 github.com/go-jose/go-jose/v4 v4.1.3 // indirect
go.sum
+2
@@ -10,6 +10,8 @@ github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9
10 github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
11 github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
12 github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
13 +github.com/gosuda/keyless_tls v0.0.1-0.20260304212324-7733f8366abc h1:aS9LQ35x6EtrGKCmOWRj6Y9aQ2l5hP8dVva4oxB9VEg=
14 +github.com/gosuda/keyless_tls v0.0.1-0.20260304212324-7733f8366abc/go.mod h1:BOhUZgiAAQzxKO3QcC4fCXgd/+lqxgIu1OyIYTqtta8=
15 github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
16 github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
17 github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=