mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
gateway.Mount took cloud.Deps and read three of its twenty-four fields: Logger, Brand, Domain. The other twenty-one were not spare capacity, they were coupling to a NAME. hanzoai/cloud ships two editions under one module path, so cloud.Deps denotes a different type in each, and whichever edition happened to be in the build decided who was permitted to mount this boundary — a decision nothing in this repo took part in. Those three values are MountDeps now, declared beside Mount, joining RouterDeps and RelayDeps: one narrow shape per entrypoint, all of them ours. The dependency points from the host into the gateway, and hanzoai/cloud is out of go.mod entirely rather than merely unimported. The cost lands at the call site, where a host that already held a Deps value writes three fields instead of passing it. Mount stays a mount. The tempting move is to have it build and return its own *zip.App, which composes into any host with no adapter, and for a subsystem that owns a prefix that is the right shape. This one installs a global middleware chain, and a child App's Use-chain is scoped to that child's own subtree, so a gateway that returned its own App would guard its two probes and leave every sibling subsystem on the host unguarded — the trust boundary still present, still passing its own tests, and no longer on the path. Checked against zip rather than assumed. Five replace directives went with it. Their comment attributed them to cloud's replace set; not one of the five modules appears in go.sum before or after, and dropping them leaves it byte-identical. Co-authored-by: Hanzo Dev <[email protected]>
277 lines
13 KiB
AMPL
277 lines
13 KiB
AMPL
module github.com/hanzoai/gateway/v2
|
|
|
|
go 1.26.5
|
|
|
|
require (
|
|
github.com/clbanning/mxj/v2 v2.7.0
|
|
github.com/gin-gonic/gin v1.12.0
|
|
github.com/hanzoai/authz v1.10.29
|
|
github.com/hanzoai/log v0.1.0
|
|
github.com/luxfi/log v1.6.0
|
|
github.com/luxfi/zap v1.2.7
|
|
github.com/prometheus/client_golang v1.23.2
|
|
github.com/sony/gobreaker/v2 v2.4.0
|
|
github.com/spf13/cobra v1.10.2
|
|
github.com/spf13/pflag v1.0.10
|
|
github.com/zap-proto/http v0.3.1
|
|
golang.org/x/sync v0.22.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
dario.cat/mergo v1.0.2 // indirect
|
|
github.com/antithesishq/antithesis-sdk-go v0.7.0 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/coder/websocket v1.8.14 // indirect
|
|
github.com/go-faster/city v1.0.1 // indirect
|
|
github.com/go-faster/errors v0.7.1 // indirect
|
|
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
|
|
github.com/goccy/go-yaml v1.19.2 // indirect
|
|
github.com/golang/mock v1.7.0-rc.1 // indirect
|
|
github.com/gorilla/rpc v1.2.1 // indirect
|
|
github.com/hanzo-ds/native v0.72.0 // indirect
|
|
github.com/luxfi/accel v1.2.4 // indirect
|
|
github.com/luxfi/crypto v1.20.2 // indirect
|
|
github.com/luxfi/pq v1.1.0 // indirect
|
|
github.com/minio/highwayhash v1.0.4 // indirect
|
|
github.com/nats-io/jwt/v2 v2.8.1 // indirect
|
|
github.com/nats-io/nats-server/v2 v2.12.3 // indirect
|
|
github.com/paulmach/orb v0.13.0 // indirect
|
|
github.com/segmentio/asm v1.2.1 // indirect
|
|
github.com/stretchr/objx v0.5.3 // indirect
|
|
github.com/zap-proto/fiber/v3 v3.2.1 // indirect
|
|
github.com/zap-proto/go v1.3.0 // indirect
|
|
go.opentelemetry.io/otel/log v0.20.0 // indirect
|
|
go.opentelemetry.io/otel/sdk v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/sdk/log v0.20.0 // indirect
|
|
go.opentelemetry.io/otel/sdk/metric v1.44.0 // indirect
|
|
)
|
|
|
|
require (
|
|
cel.dev/expr v0.25.1 // indirect
|
|
cloud.google.com/go v0.123.0 // indirect
|
|
cloud.google.com/go/auth v0.20.0 // indirect
|
|
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
|
|
cloud.google.com/go/compute/metadata v0.9.0 // indirect
|
|
cloud.google.com/go/iam v1.7.0 // indirect
|
|
cloud.google.com/go/kms v1.27.0 // indirect
|
|
cloud.google.com/go/longrunning v0.9.0 // indirect
|
|
cloud.google.com/go/pubsub v1.50.2 // indirect
|
|
cloud.google.com/go/pubsub/v2 v2.5.1 // indirect
|
|
contrib.go.opencensus.io/exporter/aws v0.0.0-20230502192102-15967c811cec
|
|
contrib.go.opencensus.io/exporter/prometheus v0.4.2
|
|
contrib.go.opencensus.io/exporter/zipkin v0.1.2
|
|
github.com/Azure/azure-amqp-common-go/v3 v3.2.3 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.0 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.13.1 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.10.0 // indirect
|
|
github.com/Azure/go-amqp v1.5.1 // indirect
|
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.7.0 // indirect
|
|
github.com/DataDog/datadog-go v4.8.3+incompatible // indirect
|
|
github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20220622145613-731d59e8b567
|
|
github.com/IBM/sarama v1.46.3 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver/v3 v3.5.0 // indirect
|
|
github.com/Masterminds/sprig/v3 v3.3.0
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/PuerkitoBio/goquery v1.8.1 // indirect
|
|
github.com/alecthomas/chroma v0.10.0
|
|
github.com/andybalholm/brotli v1.2.1 // indirect
|
|
github.com/andybalholm/cascadia v1.3.2 // indirect
|
|
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
|
|
github.com/aws/aws-sdk-go v1.55.8
|
|
github.com/aws/aws-sdk-go-v2 v1.41.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/config v1.32.14 // indirect
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.19.14 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/kms v1.50.4 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sns v1.39.11 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sqs v1.42.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.30.15 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.19 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.41.10 // indirect
|
|
github.com/aws/smithy-go v1.24.2 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bytedance/gopkg v0.1.4 // indirect
|
|
github.com/bytedance/sonic v1.15.2 // indirect
|
|
github.com/bytedance/sonic/loader v0.5.1 // indirect
|
|
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cloudwego/base64x v0.1.6 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/eapache/go-resiliency v1.7.0 // indirect
|
|
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect
|
|
github.com/eapache/queue v1.1.0 // indirect
|
|
github.com/fatih/color v1.19.0
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
|
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
|
|
github.com/gin-contrib/sse v1.1.1 // indirect
|
|
github.com/go-jose/go-jose/v3 v3.0.5
|
|
github.com/go-kit/log v0.2.1 // indirect
|
|
github.com/go-logfmt/logfmt v0.6.1 // indirect
|
|
github.com/go-logr/logr v1.4.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-playground/locales v0.14.1 // indirect
|
|
github.com/go-playground/universal-translator v0.18.1 // indirect
|
|
github.com/go-playground/validator/v10 v10.30.2 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.5.0
|
|
github.com/goccy/go-json v0.10.6 // indirect
|
|
github.com/gofiber/schema v1.7.1 // indirect
|
|
github.com/gofiber/utils/v2 v2.0.4 // indirect
|
|
github.com/golang-jwt/jwt/v5 v5.3.1
|
|
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
|
github.com/golang/snappy v1.0.0 // indirect
|
|
github.com/google/cel-go v0.26.1
|
|
github.com/google/martian v2.1.1-0.20190517191504-25dcb96d9e51+incompatible
|
|
github.com/google/s2a-go v0.1.9 // indirect
|
|
github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518
|
|
github.com/google/wire v0.7.0 // indirect
|
|
github.com/googleapis/enterprise-certificate-proxy v0.3.14 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.21.0 // indirect
|
|
github.com/grandcat/zeroconf v1.0.0 // indirect
|
|
github.com/hanzo-ds/go v1.0.1
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/hashicorp/go-retryablehttp v0.7.8 // indirect
|
|
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
|
|
github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0 // indirect
|
|
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
|
|
github.com/hashicorp/go-sockaddr v1.0.7 // indirect
|
|
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
|
github.com/hashicorp/golang-lru v1.0.2
|
|
github.com/hashicorp/hcl v1.0.1-vault-7 // indirect
|
|
github.com/hashicorp/vault/api v1.22.0 // indirect
|
|
github.com/huandu/xstrings v1.5.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/influxdata/influxdb v1.11.6
|
|
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
|
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
|
github.com/jcmturner/gofork v1.7.6 // indirect
|
|
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
|
|
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/json-iterator/go v1.1.13-0.20220915233716-71ac16282d12 // indirect
|
|
github.com/klauspost/compress v1.18.6 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
|
github.com/knadh/koanf/maps v0.1.2 // indirect
|
|
github.com/knadh/koanf/parsers/json v1.0.0
|
|
github.com/knadh/koanf/parsers/toml v0.1.0
|
|
github.com/knadh/koanf/parsers/yaml v1.1.0
|
|
github.com/knadh/koanf/providers/env v1.1.0
|
|
github.com/knadh/koanf/providers/file v1.2.0
|
|
github.com/knadh/koanf/v2 v2.3.5
|
|
github.com/kpacha/opencensus-influxdb v0.0.0-20180520162117-1b490a38de4c
|
|
github.com/kylelemons/godebug v1.1.0 // indirect
|
|
github.com/leodido/go-urn v1.4.0 // indirect
|
|
github.com/luxfi/mdns v0.1.1 // indirect
|
|
github.com/luxfi/metric v1.9.0
|
|
github.com/mattn/go-colorable v0.1.15 // indirect
|
|
github.com/mattn/go-isatty v0.0.22
|
|
github.com/miekg/dns v1.1.72 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/mmcdole/gofeed v1.2.1
|
|
github.com/mmcdole/goxpp v1.1.0 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/nats-io/nats.go v1.50.0 // indirect
|
|
github.com/nats-io/nkeys v0.4.15 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/openzipkin/zipkin-go v0.4.3
|
|
github.com/pelletier/go-toml v1.9.5 // indirect
|
|
github.com/pelletier/go-toml/v2 v2.3.0 // indirect
|
|
github.com/philhofer/fwd v1.2.0 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.27 // indirect
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
|
github.com/prometheus/client_model v0.6.2 // indirect
|
|
github.com/prometheus/common v0.67.5 // indirect
|
|
github.com/prometheus/procfs v0.20.1 // indirect
|
|
github.com/prometheus/statsd_exporter v0.26.1 // indirect
|
|
github.com/quic-go/qpack v0.6.0 // indirect
|
|
github.com/quic-go/quic-go v0.59.1 // indirect
|
|
github.com/rabbitmq/amqp091-go v1.10.0
|
|
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9
|
|
github.com/rs/cors v1.11.1
|
|
github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692
|
|
github.com/ryanuber/go-glob v1.0.0 // indirect
|
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
|
|
github.com/shopspring/decimal v1.4.0 // indirect
|
|
github.com/spf13/cast v1.10.0 // indirect
|
|
github.com/stoewer/go-strcase v1.3.0 // indirect
|
|
github.com/tinylib/msgp v1.6.4 // indirect
|
|
github.com/tmthrgd/atomics v0.0.0-20190904060638-dc7a5fcc7e0d // indirect
|
|
github.com/tmthrgd/go-bitset v0.0.0-20190904054048-394d9a556c05
|
|
github.com/tmthrgd/go-bitwise v0.0.0-20190904053232-1430ee983fca // indirect
|
|
github.com/tmthrgd/go-byte-test v0.0.0-20190904060354-2794345b9929 // indirect
|
|
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
|
|
github.com/tmthrgd/go-memset v0.0.0-20190904060434-6fb7a21f88f1 // indirect
|
|
github.com/tmthrgd/go-popcount v0.0.0-20190904054823-afb1ace8b04f // indirect
|
|
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
|
github.com/ugorji/go/codec v1.3.1 // indirect
|
|
github.com/unrolled/secure v1.15.0
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasthttp v1.72.0
|
|
github.com/valyala/fastrand v1.1.0
|
|
github.com/yuin/gopher-lua v1.1.1
|
|
github.com/zap-proto/zip v1.24.2
|
|
go.mongodb.org/mongo-driver/v2 v2.5.0 // indirect
|
|
go.opencensus.io v0.24.0
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.68.0 // indirect
|
|
go.opentelemetry.io/otel v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.44.0 // indirect
|
|
go.yaml.in/yaml/v2 v2.4.4 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
|
gocloud.dev v0.45.0
|
|
gocloud.dev/pubsub/kafkapubsub v0.45.0
|
|
gocloud.dev/pubsub/natspubsub v0.45.0
|
|
gocloud.dev/pubsub/rabbitpubsub v0.45.0
|
|
gocloud.dev/secrets/hashivault v0.45.0
|
|
golang.org/x/arch v0.25.0 // indirect
|
|
golang.org/x/crypto v0.54.0 // indirect
|
|
golang.org/x/exp v0.0.0-20260529124908-c761662dc8c9 // indirect
|
|
golang.org/x/mod v0.37.0
|
|
golang.org/x/net v0.57.0
|
|
golang.org/x/oauth2 v0.36.0
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
golang.org/x/text v0.40.0
|
|
golang.org/x/time v0.15.0 // indirect
|
|
golang.org/x/tools v0.47.0 // indirect
|
|
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
|
|
google.golang.org/api v0.275.0 // indirect
|
|
google.golang.org/genproto v0.0.0-20260406210006-6f92a3bedf2d // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20260615183401-62b3387ff324 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260622175928-b703f567277d // indirect
|
|
google.golang.org/grpc v1.81.1 // indirect
|
|
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
|
|
gopkg.in/DataDog/dd-trace-go.v1 v1.62.0 // indirect
|
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
)
|
|
|
|
replace github.com/lyft/protoc-gen-validate v0.0.13 => github.com/envoyproxy/protoc-gen-validate v0.1.0
|
|
|
|
// Same commit hanzoai/ingress pins; sourced from the hanzoai fork rather than
|
|
// the upstream one so the dependency is on a path we control.
|
|
replace github.com/vulcand/oxy/v2 => github.com/hanzoai/oxy/v2 v2.0.0-20260126093803-fb11d60e0fdf
|
|
|
|
exclude github.com/hanzoai/o11y v1.5.31-0.20260726155004-2b66f3201d03
|