mirror of
https://github.com/hanzokms/cli.git
synced 2026-10-30 20:30:00 +00:00
Two call sites, two different reasons they were wrong. `bootstrap --output k8-secret` dialled the cluster and created-or-updated a corev1.Secret from a Go template. Nothing invokes it — zero references across hanzo/kms, hanzo/kms-operator and hanzo/universe — and writing per-service Secrets is the kms-operator's job, not a CLI's. Deleted, along with --output and the three --k8-secret-* flags: one legal output value is not a choice. `pam kubernetes access` never dialled a cluster at all. It used clientcmd to splice a cluster/user/context into the operator's own ~/.kube/config, flip current-context, and revert on shutdown. It now writes a self-contained session kubeconfig (0600, removed on shutdown) and prints KUBECONFIG=<path>. That is a net code decrease — the whole revert block goes — and it closes the three TODOs the original left admitting it took no lock: a SIGKILLed proxy or two concurrent sessions could leave the real kubeconfig pointing at a dead port. It is never read or written now. Verified by rendering one and running kubectl config view --minify against it, which resolves only if current-context, cluster and user cross-reference. go.mod loses every k8s.io/* entry (-30 go.mod, -65 go.sum). Co-authored-by: Hanzo Dev <[email protected]>
178 lines
7.9 KiB
AMPL
178 lines
7.9 KiB
AMPL
module github.com/hanzokms/cli
|
|
|
|
go 1.26.4
|
|
|
|
require (
|
|
github.com/BobuSumisu/aho-corasick v1.0.3
|
|
github.com/Masterminds/sprig/v3 v3.3.0
|
|
github.com/awnumar/memguard v0.23.0
|
|
github.com/bradleyjkemp/cupaloy/v2 v2.8.0
|
|
github.com/charmbracelet/lipgloss v0.9.1
|
|
github.com/creack/pty v1.1.21
|
|
github.com/denisbrodbeck/machineid v1.0.1
|
|
github.com/dgraph-io/badger/v3 v3.2103.5
|
|
github.com/fatih/semgroup v1.2.0
|
|
github.com/gitleaks/go-gitdiff v0.9.1
|
|
github.com/go-mysql-org/go-mysql v1.13.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/h2non/filetype v1.1.3
|
|
github.com/hanzoai/insights-go v1.12.0
|
|
github.com/hanzokms/go-keyring v1.1.0
|
|
github.com/hanzokms/go-sdk v1.0.0
|
|
github.com/hanzokms/kmip v0.4.0
|
|
github.com/hanzokms/turn/v4 v4.1.0
|
|
github.com/jackc/pgx/v5 v5.7.6
|
|
github.com/mattn/go-isatty v0.0.20
|
|
github.com/muesli/ansi v0.0.0-20221106050444-61f0cd9a192a
|
|
github.com/muesli/mango-cobra v1.2.0
|
|
github.com/muesli/reflow v0.3.0
|
|
github.com/muesli/roff v0.1.0
|
|
github.com/pion/dtls/v3 v3.0.4
|
|
github.com/pion/logging v0.2.3
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/quic-go/quic-go v0.54.1
|
|
github.com/rs/cors v1.11.0
|
|
github.com/rs/zerolog v1.26.1
|
|
github.com/smallnest/resp3 v0.0.0-20251228151914-4f2fa7427e69
|
|
github.com/spf13/cobra v1.6.1
|
|
github.com/spf13/viper v1.8.1
|
|
github.com/stretchr/testify v1.11.1
|
|
github.com/wasilibs/go-re2 v1.10.0
|
|
golang.org/x/crypto v0.43.0
|
|
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7
|
|
golang.org/x/sys v0.37.0
|
|
golang.org/x/term v0.36.0
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/auth v0.7.0 // indirect
|
|
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
|
|
cloud.google.com/go/compute/metadata v0.4.0 // indirect
|
|
cloud.google.com/go/iam v1.1.11 // indirect
|
|
dario.cat/mergo v1.0.1 // indirect
|
|
filippo.io/edwards25519 v1.1.0 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver/v3 v3.3.0 // indirect
|
|
github.com/alessio/shellescape v1.4.1 // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
|
|
github.com/awnumar/memcall v0.4.0 // indirect
|
|
github.com/aws/aws-sdk-go-v2 v1.27.2 // indirect
|
|
github.com/aws/aws-sdk-go-v2/config v1.27.18 // indirect
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.17.18 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.9 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.9 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.11 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.20.11 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.28.12 // indirect
|
|
github.com/aws/smithy-go v1.20.2 // indirect
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
github.com/cespare/xxhash v1.1.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/chzyer/readline v1.5.1 // indirect
|
|
github.com/danieljoos/wincred v1.2.2 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/dgraph-io/ristretto v0.1.1 // indirect
|
|
github.com/dustin/go-humanize v1.0.0 // indirect
|
|
github.com/dvsekhvalnov/jose2go v1.7.0 // indirect
|
|
github.com/emirpasic/gods v1.12.0 // indirect
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/fsnotify/fsnotify v1.4.9 // indirect
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-openapi/errors v0.20.2 // indirect
|
|
github.com/go-openapi/strfmt v0.21.3 // indirect
|
|
github.com/goccy/go-json v0.10.6 // indirect
|
|
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
|
github.com/gofrs/flock v0.8.1 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/glog v1.2.0 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
github.com/golang/snappy v0.0.3 // indirect
|
|
github.com/google/flatbuffers v1.12.1 // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/google/s2a-go v0.1.7 // indirect
|
|
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
|
|
github.com/gosimple/slug v1.15.0 // indirect
|
|
github.com/gosimple/unidecode v1.0.1 // indirect
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
github.com/huandu/xstrings v1.5.0 // indirect
|
|
github.com/klauspost/compress v1.17.8 // indirect
|
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
|
github.com/magiconair/properties v1.8.5 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/mapstructure v1.4.1 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/mtibben/percent v0.2.1 // indirect
|
|
github.com/muesli/mango v0.1.0 // indirect
|
|
github.com/muesli/mango-pflag v0.1.0 // indirect
|
|
github.com/muesli/termenv v0.15.2 // indirect
|
|
github.com/oklog/ulid v1.3.1 // indirect
|
|
github.com/oracle/oci-go-sdk/v65 v65.95.2 // indirect
|
|
github.com/pelletier/go-toml v1.9.3 // indirect
|
|
github.com/pingcap/errors v0.11.5-0.20250318082626-8f80e5cb09ec // indirect
|
|
github.com/pingcap/log v1.1.1-0.20241212030209-7e3ff8601a2a // indirect
|
|
github.com/pingcap/tidb/pkg/parser v0.0.0-20250421232622-526b2c79173d // indirect
|
|
github.com/pion/randutil v0.1.0 // indirect
|
|
github.com/pion/stun/v3 v3.0.0 // indirect
|
|
github.com/pion/transport/v3 v3.0.7 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/rivo/uniseg v0.2.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.12.0 // indirect
|
|
github.com/shopspring/decimal v1.4.0 // indirect
|
|
github.com/sony/gobreaker v0.5.0 // indirect
|
|
github.com/spf13/afero v1.6.0 // indirect
|
|
github.com/spf13/cast v1.7.0 // indirect
|
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
|
github.com/subosito/gotenv v1.2.0 // indirect
|
|
github.com/tetratelabs/wazero v1.9.0 // indirect
|
|
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 // indirect
|
|
github.com/wlynxg/anet v0.0.5 // indirect
|
|
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
|
|
go.mongodb.org/mongo-driver v1.10.0 // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
|
|
go.opentelemetry.io/otel v1.24.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.24.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.24.0 // indirect
|
|
go.uber.org/atomic v1.11.0 // indirect
|
|
go.uber.org/mock v0.5.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
go.uber.org/zap v1.27.0 // indirect
|
|
golang.org/x/mod v0.28.0 // indirect
|
|
golang.org/x/net v0.45.0 // indirect
|
|
golang.org/x/oauth2 v0.27.0 // indirect
|
|
golang.org/x/sync v0.17.0 // indirect
|
|
golang.org/x/text v0.30.0 // indirect
|
|
golang.org/x/time v0.9.0 // indirect
|
|
golang.org/x/tools v0.37.0 // indirect
|
|
google.golang.org/api v0.188.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240708141625-4ad9e859172b // indirect
|
|
google.golang.org/grpc v1.64.1 // indirect
|
|
google.golang.org/protobuf v1.36.5 // indirect
|
|
gopkg.in/ini.v1 v1.62.0 // indirect
|
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/fatih/color v1.17.0
|
|
github.com/go-resty/resty/v2 v2.16.5
|
|
github.com/inconshreveable/mousetrap v1.0.1 // indirect
|
|
github.com/jedib0t/go-pretty v4.3.0+incompatible
|
|
github.com/manifoldco/promptui v0.9.0
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
)
|