From c53f9de2efa3c35316143961271774a79d071a76 Mon Sep 17 00:00:00 2001 From: Matee ullah Malik Date: Sun, 26 Jul 2026 22:39:47 +0000 Subject: [PATCH 1/3] Revert "fix(sn-manager): remove automatic EVM rollback (#313)" This reverts commit d8a2787eea6a32110a8b8e7aee6563f18481005b. --- .github/workflows/tests.yml | 20 -- docs/evm-migration.md | 40 ---- pkg/configlock/lock.go | 41 ---- pkg/configlock/lock_test.go | 48 ----- pkg/github/testutil/fake_client.go | 2 - sn-manager/cmd/check.go | 33 ++- sn-manager/cmd/get.go | 18 +- sn-manager/cmd/init.go | 84 +------- sn-manager/cmd/init_test.go | 77 ------- sn-manager/cmd/start.go | 54 +---- sn-manager/cmd/status.go | 7 +- sn-manager/internal/updater/preflight.go | 56 ++--- .../internal/updater/preflight_state.go | 98 --------- .../internal/updater/preflight_state_test.go | 71 ------- sn-manager/internal/updater/preflight_test.go | 18 +- sn-manager/internal/updater/rollback.go | 188 +++++++++++++++++ sn-manager/internal/updater/rollback_test.go | 111 ++++++++++ sn-manager/internal/updater/updater.go | 194 ++++-------------- sn-manager/internal/updater/updater_test.go | 93 +-------- sn-manager/internal/utils/chain_id.go | 52 +---- sn-manager/internal/utils/chain_id_test.go | 36 ---- sn-manager/internal/version/manager.go | 69 +------ sn-manager/internal/version/manager_test.go | 102 +-------- supernode/cmd/evmigration.go | 35 +--- supernode/cmd/evmigration_test.go | 62 ------ supernode/config/save.go | 7 - 26 files changed, 420 insertions(+), 1196 deletions(-) delete mode 100644 pkg/configlock/lock.go delete mode 100644 pkg/configlock/lock_test.go delete mode 100644 sn-manager/cmd/init_test.go delete mode 100644 sn-manager/internal/updater/preflight_state.go delete mode 100644 sn-manager/internal/updater/preflight_state_test.go create mode 100644 sn-manager/internal/updater/rollback.go create mode 100644 sn-manager/internal/updater/rollback_test.go diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f81a01db..d7d6e2d9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,26 +25,6 @@ jobs: - name: Run unit tests run: go test $(go list ./... | grep -v '/tests') -v - sn-manager-tests: - name: sn-manager-tests - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v6.0.1 - - name: Setup Go and system deps - uses: ./.github/actions/setup-env - with: - bust_lumera_retag: 'true' - - name: Verify nested module - working-directory: sn-manager - run: | - go mod tidy - git diff --exit-code -- go.mod go.sum - go vet ./... - go test ./... - go test -race ./internal/updater ./internal/utils ./internal/version - integration-tests: name: integration-tests runs-on: ubuntu-latest diff --git a/docs/evm-migration.md b/docs/evm-migration.md index f6f0d823..3cff7459 100644 --- a/docs/evm-migration.md +++ b/docs/evm-migration.md @@ -80,46 +80,6 @@ The migration is: | `migration tx was not confirmed` | Tx was not included in a block within 60s | Restart to retry; the check is idempotent | | `failed to save updated config` | Config file write error after successful migration | Manually update config as instructed in the error message | -### Recovery from the v2.6.1 automatic rollback - -A v2.6.1 sn-manager can mistake the intentionally removed `evm_key_name` field -for an incomplete migration and select v2.5.0. The old manager evaluates that -preflight before self-update, so a normal combined release cannot reliably -self-deliver the fix. Do not run v2.5.x against a migrated EVM keyring. - -Recover one node at a time: - -1. Stop the sn-manager service so the old process cannot change the selected - version while recovery is in progress. -2. Replace the **sn-manager binary itself** out of band with the corrected - release (package/configuration management or a controlled manual binary - swap). Replacing only the managed SuperNode binary is insufficient. -3. Confirm the post-migration SuperNode config is canonical: `key_name` names a - local `eth_secp256k1` signing key, `identity` is that key's Lumera address, - and `evm_key_name` is absent. Do not recreate the transitional field after a - completed migration. -4. Confirm that the network-approved recovery release is also the **current - latest release in that network's channel** (`-testnet` for testnet, stable - for mainnet). Startup performs mandatory monotonic synchronization even when - periodic auto-upgrade is disabled; it may advance to a newer channel release - but will never downgrade. Then explicitly install and select the approved - EVM-capable release: - - ```bash - sn-manager get - sn-manager use - ``` - - These are operator-explicit commands; automatic update paths never - downgrade and continue to block unprepared legacy nodes. -5. Start sn-manager and verify both axes independently: - - process: selected version, SuperNode startup/status endpoint, EVM-module - detection, and epoch-report submission; - - chain: expected SuperNode state after the normal epoch recovery predicate. - -A historical `rolled-back.log` marker is diagnostic only. It is not proof that -key migration succeeded and is never used to bypass runtime key validation. - ### Multisig legacy accounts A supernode daemon holds a single signing key and cannot run the K-of-N signing diff --git a/pkg/configlock/lock.go b/pkg/configlock/lock.go deleted file mode 100644 index 1ceffe65..00000000 --- a/pkg/configlock/lock.go +++ /dev/null @@ -1,41 +0,0 @@ -// Package configlock coordinates SuperNode config writers with sn-manager's -// update preflight. The stable sidecar inode is intentionally retained so all -// processes contend on the same advisory lock. -package configlock - -import ( - "fmt" - "os" - "sync" - - "golang.org/x/sys/unix" -) - -// Acquire obtains an exclusive advisory lock for configPath. The returned -// release function is idempotent and must be called by the owner. -func Acquire(configPath string) (func() error, error) { - lockPath := configPath + ".lock" - file, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0o600) - if err != nil { - return nil, fmt.Errorf("open config lock %s: %w", lockPath, err) - } - if err := unix.Flock(int(file.Fd()), unix.LOCK_EX); err != nil { - _ = file.Close() - return nil, fmt.Errorf("lock config %s: %w", configPath, err) - } - - var once sync.Once - var releaseErr error - release := func() error { - once.Do(func() { - if err := unix.Flock(int(file.Fd()), unix.LOCK_UN); err != nil { - releaseErr = fmt.Errorf("unlock config %s: %w", configPath, err) - } - if err := file.Close(); err != nil && releaseErr == nil { - releaseErr = fmt.Errorf("close config lock %s: %w", lockPath, err) - } - }) - return releaseErr - } - return release, nil -} diff --git a/pkg/configlock/lock_test.go b/pkg/configlock/lock_test.go deleted file mode 100644 index 416a726f..00000000 --- a/pkg/configlock/lock_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package configlock - -import ( - "path/filepath" - "testing" - "time" -) - -func TestAcquireSerializesConfigWriters(t *testing.T) { - configPath := filepath.Join(t.TempDir(), "config.yml") - releaseFirst, err := Acquire(configPath) - if err != nil { - t.Fatal(err) - } - - acquiredSecond := make(chan func() error, 1) - errSecond := make(chan error, 1) - go func() { - release, err := Acquire(configPath) - if err != nil { - errSecond <- err - return - } - acquiredSecond <- release - }() - - select { - case <-acquiredSecond: - t.Fatal("second writer acquired lock before first released it") - case err := <-errSecond: - t.Fatalf("second writer failed: %v", err) - case <-time.After(50 * time.Millisecond): - } - - if err := releaseFirst(); err != nil { - t.Fatal(err) - } - select { - case releaseSecond := <-acquiredSecond: - if err := releaseSecond(); err != nil { - t.Fatal(err) - } - case err := <-errSecond: - t.Fatalf("second writer failed: %v", err) - case <-time.After(time.Second): - t.Fatal("second writer did not acquire lock after release") - } -} diff --git a/pkg/github/testutil/fake_client.go b/pkg/github/testutil/fake_client.go index 50ab78d3..e7651ea0 100644 --- a/pkg/github/testutil/fake_client.go +++ b/pkg/github/testutil/fake_client.go @@ -18,7 +18,6 @@ type FakeClient struct { CallsLatestStable int CallsListReleases int - CallsTarballURL int } func (f *FakeClient) GetLatestRelease() (*github.Release, error) { @@ -49,6 +48,5 @@ func (f *FakeClient) GetRelease(tag string) (*github.Release, error) { } func (f *FakeClient) GetReleaseTarballURL(version string) (string, error) { - f.CallsTarballURL++ return "", errors.New("not implemented") } diff --git a/sn-manager/cmd/check.go b/sn-manager/cmd/check.go index 5c6ab53f..4910eb06 100644 --- a/sn-manager/cmd/check.go +++ b/sn-manager/cmd/check.go @@ -8,7 +8,6 @@ import ( "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/updater" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/version" "github.com/spf13/cobra" ) @@ -36,23 +35,14 @@ func runCheck(cmd *cobra.Command, args []string) error { // Create GitHub client client := github.NewClient(config.GitHubRepo) - // Select the same release channel as automatic updates. - snapshot, err := utils.ReadSupernodeUpdateSnapshot() + // Get latest stable release + release, err := client.GetLatestStableRelease() if err != nil { - return fmt.Errorf("failed to read SuperNode update configuration: %w", err) - } - release, err := utils.LatestReleaseForChainID(client, snapshot.ChainID) - if err != nil { - return fmt.Errorf("failed to check updates for chain %q: %w", snapshot.ChainID, err) - } - managerHome := config.GetManagerHome() - currentVersion, err := version.NewManager(managerHome).GetCurrentVersion() - if err != nil { - return fmt.Errorf("failed to read active SuperNode version: %w", err) + return fmt.Errorf("failed to check for stable updates: %w", err) } fmt.Printf("\nLatest release: %s\n", release.TagName) - fmt.Printf("Current version: %s\n", currentVersion) + fmt.Printf("Current version: %s\n", cfg.Updates.CurrentVersion) // Report manager version and if it would update under the same policy mv := strings.TrimSpace(appVersion) if mv != "" && mv != "dev" && !strings.EqualFold(mv, "unknown") { @@ -63,20 +53,21 @@ func runCheck(cmd *cobra.Command, args []string) error { } // Compare versions - cmp := utils.CompareVersions(currentVersion, release.TagName) + cmp := utils.CompareVersions(cfg.Updates.CurrentVersion, release.TagName) if cmp < 0 { - // Use the same logic as auto-updater to determine update eligibility. + // Use the same logic as auto-updater to determine update eligibility + managerHome := config.GetManagerHome() autoUpdater := updater.New(managerHome, cfg, appVersion, nil) - wouldAutoUpdate := autoUpdater.ShouldUpdate(currentVersion, release.TagName) + wouldAutoUpdate := autoUpdater.ShouldUpdate(cfg.Updates.CurrentVersion, release.TagName) if wouldAutoUpdate { - fmt.Printf("\n✓ Update available: %s → %s\n", currentVersion, release.TagName) + fmt.Printf("\n✓ Update available: %s → %s\n", cfg.Updates.CurrentVersion, release.TagName) fmt.Printf("Published: %s\n", release.PublishedAt.Format("2006-01-02 15:04:05")) fmt.Println("\n✓ This update will be applied automatically if auto-upgrade is enabled") fmt.Println(" Or manually with: sn-manager get") } else { - fmt.Printf("\n⚠ Major update available: %s → %s\n", currentVersion, release.TagName) + fmt.Printf("\n⚠ Major update available: %s → %s\n", cfg.Updates.CurrentVersion, release.TagName) fmt.Printf("Published: %s\n", release.PublishedAt.Format("2006-01-02 15:04:05")) fmt.Println("\n⚠ Major version updates require manual installation:") fmt.Printf(" sn-manager get %s\n", release.TagName) @@ -89,9 +80,9 @@ func runCheck(cmd *cobra.Command, args []string) error { fmt.Println(release.Body) } } else if cmp == 0 { - fmt.Println("\n✓ You are running the latest release for this chain") + fmt.Println("\n✓ You are running the latest stable version") } else { - fmt.Printf("\n⚠ You are running a newer version than the latest release for this chain\n") + fmt.Printf("\n⚠ You are running a newer version than the latest stable release\n") } return nil diff --git a/sn-manager/cmd/get.go b/sn-manager/cmd/get.go index 6a30bb31..7244c10f 100644 --- a/sn-manager/cmd/get.go +++ b/sn-manager/cmd/get.go @@ -31,13 +31,9 @@ func runGet(cmd *cobra.Command, args []string) error { var targetVersion string if len(args) == 0 { - snapshot, err := utils.ReadSupernodeUpdateSnapshot() + release, err := client.GetLatestStableRelease() if err != nil { - return fmt.Errorf("failed to read SuperNode update configuration: %w", err) - } - release, err := utils.LatestReleaseForChainID(client, snapshot.ChainID) - if err != nil { - return fmt.Errorf("failed to get latest release for chain %q: %w", snapshot.ChainID, err) + return fmt.Errorf("failed to get latest release: %w", err) } targetVersion = release.TagName } else { @@ -46,16 +42,6 @@ func runGet(cmd *cobra.Command, args []string) error { fmt.Printf("Target version: %s\n", targetVersion) - releaseInstallLock, err := versionMgr.AcquireInstallLock() - if err != nil { - return fmt.Errorf("failed to lock release installation: %w", err) - } - defer func() { - if releaseErr := releaseInstallLock(); releaseErr != nil { - log.Printf("Warning: failed to release installation lock: %v", releaseErr) - } - }() - if versionMgr.IsVersionInstalled(targetVersion) { fmt.Printf("Already installed\n") return nil diff --git a/sn-manager/cmd/init.go b/sn-manager/cmd/init.go index 4fc3f4c2..cebbeb83 100644 --- a/sn-manager/cmd/init.go +++ b/sn-manager/cmd/init.go @@ -6,14 +6,12 @@ import ( "os" "os/exec" "path/filepath" - "strings" "github.com/AlecAivazis/survey/v2" "github.com/LumeraProtocol/supernode/v2/pkg/github" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/version" - snconfig "github.com/LumeraProtocol/supernode/v2/supernode/config" "github.com/spf13/cobra" ) @@ -36,44 +34,9 @@ type initFlags struct { force bool autoUpgrade bool nonInteractive bool - chainID string supernodeArgs []string } -func chainIDFromInitArgs(args []string) string { - var chainID string - for i := 0; i < len(args); i++ { - if args[i] == "--chain-id" && i+1 < len(args) { - chainID = strings.TrimSpace(args[i+1]) - i++ - continue - } - if strings.HasPrefix(args[i], "--chain-id=") { - chainID = strings.TrimSpace(strings.TrimPrefix(args[i], "--chain-id=")) - } - } - return chainID -} - -func resolveInitChainID(flags *initFlags) error { - explicitChainID := flags.chainID - snapshot, err := utils.ReadSupernodeUpdateSnapshot() - if err != nil { - if os.IsNotExist(err) { - return nil - } - return fmt.Errorf("cannot determine release channel from existing SuperNode config: %w", err) - } - if explicitChainID != "" && explicitChainID != snapshot.ChainID { - return fmt.Errorf("--chain-id %q conflicts with existing SuperNode config chain_id %q", explicitChainID, snapshot.ChainID) - } - flags.chainID = snapshot.ChainID - if explicitChainID == "" { - flags.supernodeArgs = append(flags.supernodeArgs, "--chain-id", flags.chainID) - } - return nil -} - func parseInitFlags(args []string) *initFlags { flags := &initFlags{ autoUpgrade: true, @@ -103,16 +66,11 @@ func parseInitFlags(args []string) *initFlags { } } - flags.chainID = chainIDFromInitArgs(flags.supernodeArgs) return flags } func promptForManagerConfig(flags *initFlags) error { if flags.nonInteractive { - if flags.chainID == "" { - flags.chainID = snconfig.DefaultChainID - flags.supernodeArgs = append(flags.supernodeArgs, "--chain-id", flags.chainID) - } return nil } @@ -132,18 +90,6 @@ func promptForManagerConfig(flags *initFlags) error { } flags.autoUpgrade = (autoUpgradeChoice == autoUpgradeOptions[0]) - if flags.chainID == "" { - chainID := snconfig.DefaultChainID - if err := survey.AskOne(&survey.Input{ - Message: "Lumera chain ID:", - Default: snconfig.DefaultChainID, - }, &chainID, survey.WithValidator(survey.Required)); err != nil { - return err - } - flags.chainID = strings.TrimSpace(chainID) - flags.supernodeArgs = append(flags.supernodeArgs, "--chain-id", flags.chainID) - } - // No interval prompt; check interval is fixed at 10 minutes. return nil @@ -158,12 +104,8 @@ func runInit(cmd *cobra.Command, args []string) error { } } - // Parse flags and reconcile the requested channel with any existing - // SuperNode configuration before selecting a release. + // Parse flags flags := parseInitFlags(args) - if err := resolveInitChainID(flags); err != nil { - return err - } // Step 1: Initialize sn-manager fmt.Println("Step 1: Initializing sn-manager...") @@ -224,29 +166,15 @@ func runInit(cmd *cobra.Command, args []string) error { versionMgr := version.NewManager(managerHome) client := github.NewClient(config.GitHubRepo) - // Select the release channel from the same chain ID forwarded to - // `supernode init`; testnet initialization must never bootstrap stable. - release, err := utils.LatestReleaseForChainID(client, flags.chainID) + // Get latest stable release + release, err := client.GetLatestStableRelease() if err != nil { - return fmt.Errorf("failed to get latest release for chain %q: %w", flags.chainID, err) + return fmt.Errorf("failed to get latest stable release: %w", err) } targetVersion := release.TagName fmt.Printf("Latest version: %s\n", targetVersion) - releaseInstallLock, err := versionMgr.AcquireInstallLock() - if err != nil { - return fmt.Errorf("failed to lock release installation: %w", err) - } - installLockReleased := false - defer func() { - if !installLockReleased { - if releaseErr := releaseInstallLock(); releaseErr != nil { - log.Printf("Warning: failed to release installation lock: %v", releaseErr) - } - } - }() - // Check if already installed if versionMgr.IsVersionInstalled(targetVersion) { fmt.Printf("✓ SuperNode %s already installed, skipping download\n", targetVersion) @@ -297,10 +225,6 @@ func runInit(cmd *cobra.Command, args []string) error { if err := config.Save(cfg, configPath); err != nil { return fmt.Errorf("failed to update config: %w", err) } - installLockReleased = true - if err := releaseInstallLock(); err != nil { - return fmt.Errorf("failed to release installation lock: %w", err) - } fmt.Printf("✓ SuperNode %s ready\n", targetVersion) diff --git a/sn-manager/cmd/init_test.go b/sn-manager/cmd/init_test.go deleted file mode 100644 index 9511f656..00000000 --- a/sn-manager/cmd/init_test.go +++ /dev/null @@ -1,77 +0,0 @@ -package cmd - -import ( - "os" - "path/filepath" - "strings" - "testing" -) - -func TestChainIDFromInitArgs(t *testing.T) { - cases := []struct { - name string - args []string - want string - }{ - {"separate", []string{"--chain-id", "lumera-testnet-2", "--yes"}, "lumera-testnet-2"}, - {"equals", []string{"--chain-id=lumera-mainnet-1"}, "lumera-mainnet-1"}, - {"absent", []string{"--yes"}, ""}, - {"last wins", []string{"--chain-id", "old", "--chain-id=new"}, "new"}, - } - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - if got := chainIDFromInitArgs(tc.args); got != tc.want { - t.Fatalf("chainIDFromInitArgs(%v) = %q, want %q", tc.args, got, tc.want) - } - }) - } -} - -func writeExistingInitConfig(t *testing.T, chainID string) { - t.Helper() - home := t.TempDir() - t.Setenv("HOME", home) - dir := filepath.Join(home, ".supernode") - if err := os.MkdirAll(dir, 0o700); err != nil { - t.Fatal(err) - } - if err := os.WriteFile(filepath.Join(dir, "config.yml"), []byte("lumera:\n chain_id: "+chainID+"\n"), 0o600); err != nil { - t.Fatal(err) - } -} - -func TestResolveInitChainIDUsesExistingConfig(t *testing.T) { - writeExistingInitConfig(t, "lumera-testnet-2") - flags := parseInitFlags([]string{"--yes"}) - if err := resolveInitChainID(flags); err != nil { - t.Fatal(err) - } - if flags.chainID != "lumera-testnet-2" { - t.Fatalf("chain ID = %q", flags.chainID) - } - if got := chainIDFromInitArgs(flags.supernodeArgs); got != flags.chainID { - t.Fatalf("forwarded chain ID = %q, selected = %q", got, flags.chainID) - } -} - -func TestResolveInitChainIDRejectsExistingConfigMismatch(t *testing.T) { - writeExistingInitConfig(t, "lumera-testnet-2") - flags := parseInitFlags([]string{"--chain-id=lumera-mainnet-1", "--yes"}) - err := resolveInitChainID(flags) - if err == nil || !strings.Contains(err.Error(), "conflicts") { - t.Fatalf("expected chain conflict, got %v", err) - } -} - -func TestPromptForManagerConfigNonInteractiveForwardsDefaultChainID(t *testing.T) { - flags := parseInitFlags([]string{"--yes"}) - if err := promptForManagerConfig(flags); err != nil { - t.Fatal(err) - } - if flags.chainID == "" { - t.Fatal("non-interactive init must resolve a release channel") - } - if got := chainIDFromInitArgs(flags.supernodeArgs); got != flags.chainID { - t.Fatalf("forwarded chain ID = %q, selected = %q", got, flags.chainID) - } -} diff --git a/sn-manager/cmd/start.go b/sn-manager/cmd/start.go index ca823765..6deb1583 100644 --- a/sn-manager/cmd/start.go +++ b/sn-manager/cmd/start.go @@ -11,7 +11,6 @@ import ( "strings" "syscall" - "github.com/LumeraProtocol/supernode/v2/pkg/configlock" "github.com/LumeraProtocol/supernode/v2/pkg/github" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/manager" @@ -217,15 +216,11 @@ func ensureBinaryExists(home string, cfg *config.Config) error { // We have versions, make sure current is set current, err := versionMgr.GetCurrentVersion() if err != nil || current == "" { - // Automatic startup may initialize a missing symlink, but must not - // overwrite a concurrently selected newer version. - if _, err := versionMgr.SetCurrentVersionIfNewer(versions[0]); err != nil { + // Set the first available version as current + if err := versionMgr.SetCurrentVersion(versions[0]); err != nil { return fmt.Errorf("failed to set current version: %w", err) } - current, err = versionMgr.GetCurrentVersion() - if err != nil { - return fmt.Errorf("failed to read current version after activation: %w", err) - } + current = versions[0] } // Update config if current version is not set or different @@ -239,37 +234,13 @@ func ensureBinaryExists(home string, cfg *config.Config) error { return nil } - // No versions installed. Serialize release staging before taking the config - // lock; all update paths use install -> config -> version -> symlink order. - releaseInstallLock, err := versionMgr.AcquireInstallLock() - if err != nil { - return fmt.Errorf("failed to lock release installation: %w", err) - } - defer func() { - if releaseErr := releaseInstallLock(); releaseErr != nil { - log.Printf("Warning: failed to release installation lock: %v", releaseErr) - } - }() - - // Hold the shared SuperNode config lock while selecting the network channel - // and installing the first binary. - releaseConfigLock, err := configlock.Acquire(utils.SupernodeConfigPath()) - if err != nil { - return fmt.Errorf("failed to lock SuperNode config: %w", err) - } - defer func() { _ = releaseConfigLock() }() - - snapshot, err := utils.ReadSupernodeUpdateSnapshot() - if err != nil { - return fmt.Errorf("failed to read SuperNode update configuration: %w", err) - } - + // No versions installed, download latest tarball and extract supernode fmt.Println("No SuperNode binary found. Downloading latest version...") client := github.NewClient(config.GitHubRepo) - release, err := utils.LatestReleaseForChainID(client, snapshot.ChainID) + release, err := client.GetLatestStableRelease() if err != nil { - return fmt.Errorf("failed to get latest release for chain %q: %w", snapshot.ChainID, err) + return fmt.Errorf("failed to get latest stable release: %w", err) } targetVersion := release.TagName @@ -313,18 +284,13 @@ func ensureBinaryExists(home string, cfg *config.Config) error { log.Printf("Warning: failed to remove temp file: %v", err) } - // Automatic startup initializes a missing current symlink but never - // overwrites an equal or newer version selected concurrently. - if _, err := versionMgr.SetCurrentVersionIfNewer(targetVersion); err != nil { + // Set as current version + if err := versionMgr.SetCurrentVersion(targetVersion); err != nil { return fmt.Errorf("failed to set current version: %w", err) } - currentVersion, err := versionMgr.GetCurrentVersion() - if err != nil { - return fmt.Errorf("failed to read current version after activation: %w", err) - } - // Update config from the authoritative active symlink. - cfg.Updates.CurrentVersion = currentVersion + // Update config + cfg.Updates.CurrentVersion = targetVersion configPath := filepath.Join(home, "config.yml") if err := config.Save(cfg, configPath); err != nil { return fmt.Errorf("failed to save config: %w", err) diff --git a/sn-manager/cmd/status.go b/sn-manager/cmd/status.go index cdeb6202..1d769f8e 100644 --- a/sn-manager/cmd/status.go +++ b/sn-manager/cmd/status.go @@ -17,8 +17,9 @@ var statusCmd = &cobra.Command{ RunE: runStatus, } -// printPreflightStatus prints current update-blocked state and any historical -// rolled-back marker left by v2.6.1. +// printPreflightStatus prints update-blocked / rolled-back state, if any. +// Both markers live in the manager home directory and are written by the +// auto-updater's EVM preflight/rollback code path (see internal/updater/). func printPreflightStatus(home string) { if data, err := os.ReadFile(updater.BlockLogPath(home)); err == nil && len(data) > 0 { fmt.Println(" Update Blocked: true") @@ -30,7 +31,7 @@ func printPreflightStatus(home string) { } } if data, err := os.ReadFile(updater.RollbackLogPath(home)); err == nil && len(data) > 0 { - fmt.Println(" Historical Rollback Marker (v2.6.1): present") + fmt.Println(" Rolled Back: true") for _, line := range splitStatusLines(string(data)) { if line == "" { continue diff --git a/sn-manager/internal/updater/preflight.go b/sn-manager/internal/updater/preflight.go index db5a4d70..0924cb51 100644 --- a/sn-manager/internal/updater/preflight.go +++ b/sn-manager/internal/updater/preflight.go @@ -23,11 +23,12 @@ const ( // preflightAllow: proceed with the normal update flow. preflightAllow preflightDecision = iota // preflightBlock: the target version requires evm_key_name but the node - // is not prepared to migrate. Refuse to install; keep the current binary. + // has not migrated. Refuse to install; keep the current binary in place. preflightBlock - // preflightUnknown: the chain/config probe was inconclusive. The updater - // may fail open only when no unchanged, previously confirmed block exists. - preflightUnknown + // preflightRollback: the currently-installed version is already + // EVM-required but the node has not migrated — this node is stuck and + // must be reverted to the last pre-EVM release. + preflightRollback ) func (d preflightDecision) String() string { @@ -36,8 +37,8 @@ func (d preflightDecision) String() string { return "allow" case preflightBlock: return "block" - case preflightUnknown: - return "unknown" + case preflightRollback: + return "rollback" } return "unknown" } @@ -53,8 +54,12 @@ type preflightInputs struct { } // decidePreflight is a pure function: no I/O, no logging. Given the four -// axes of the invariant table, it returns allow or block plus a +// axes of the invariant table, it returns one of allow/block/rollback plus a // human-readable reason. +// +// Rollback fires BEFORE block: a stuck node (currently on an EVM-required +// binary with no evm_key_name) is by definition also a would-block condition +// for any forward target, but rollback is the correct remediation. func decidePreflight(in preflightInputs) (preflightDecision, string) { if !in.chainHasEVM { return preflightAllow, "chain has no evm module active" @@ -63,8 +68,8 @@ func decidePreflight(in preflightInputs) (preflightDecision, string) { return preflightAllow, "supernode config has evm_key_name set" } if utils.IsV260OrAbove(in.currentVersion) { - return preflightAllow, fmt.Sprintf( - "current supernode %s is evm-capable; startup owns migration validation", + return preflightRollback, fmt.Sprintf( + "chain has evm module active, current supernode %s requires evm_key_name but config has none", in.currentVersion, ) } @@ -87,8 +92,8 @@ const chainEVMProbeTimeout = 15 * time.Second // (false, nil) — chain answered and EVM module is absent // (false, err) — query failed (dial error, timeout, gRPC error) // -// The caller treats the error case as "unknown". Unknown may fail open only -// when no confirmed compatibility block exists; confirmed unsafe evidence wins. +// The caller MUST treat the error case as "unknown" and fail-open (allow) — +// a transient chain outage must never trigger a block or a rollback. func queryEVMModuleActive(ctx context.Context, grpcAddr string) (bool, error) { if strings.TrimSpace(grpcAddr) == "" { return false, fmt.Errorf("empty grpc_addr") @@ -156,20 +161,25 @@ func parseGRPCAddr(raw string) (host string, useTLS bool, err error) { return host, useTLS, nil } -// preflightCheck evaluates a coherent SuperNode config snapshot captured before -// release-channel selection. On chain-query failure it returns unknown so the -// caller can preserve a previously confirmed block; otherwise the existing -// fail-open policy still applies when no prior block exists. -func (u *AutoUpdater) preflightCheck(ctx context.Context, targetVersion, currentVersion string, snapshot utils.SupernodeUpdateSnapshot) (preflightDecision, string) { - hasEVM, err := queryEVMModuleActive(ctx, snapshot.GRPCAddr) +// preflightCheck loads the current runtime state (chain evm status, supernode +// evm_key_name, current installed version) and returns a decision for the +// proposed target version. On chain-query failure it FAILS OPEN (returns +// allow) — a transient chain outage must never cause a block or rollback. +func (u *AutoUpdater) preflightCheck(ctx context.Context, targetVersion string) (preflightDecision, string) { + grpcAddr, _ := utils.ReadSupernodeGRPCAddr() + hasEVM, err := queryEVMModuleActive(ctx, grpcAddr) if err != nil { - log.Printf("preflight: chain evm probe failed (inconclusive): %v", err) - return preflightUnknown, "chain unreachable; compatibility unknown" + log.Printf("preflight: chain evm probe failed (fail-open): %v", err) + return preflightAllow, "chain unreachable; fail-open" } - return decidePreflight(preflightInputs{ + evmKey, _ := utils.ReadSupernodeEVMKeyName() + + in := preflightInputs{ chainHasEVM: hasEVM, - evmKeyName: snapshot.EVMKeyName, - currentVersion: currentVersion, + evmKeyName: evmKey, + currentVersion: u.config.Updates.CurrentVersion, targetVersion: targetVersion, - }) + } + decision, reason := decidePreflight(in) + return decision, reason } diff --git a/sn-manager/internal/updater/preflight_state.go b/sn-manager/internal/updater/preflight_state.go deleted file mode 100644 index 46d4a4a8..00000000 --- a/sn-manager/internal/updater/preflight_state.go +++ /dev/null @@ -1,98 +0,0 @@ -package updater - -import ( - "fmt" - "log" - "os" - "path/filepath" - "time" -) - -const ( - updateBlockedLogName = "update-blocked.log" - // Retained so status can display markers written by v2.6.1. New versions - // never create this marker because automatic rollback has been removed. - rolledBackLogName = "rolled-back.log" -) - -// Paths are exposed via helpers so cmd/status.go can read current block state -// and historical v2.6.1 rollback state without duplicating location literals. -func BlockLogPath(homeDir string) string { return filepath.Join(homeDir, updateBlockedLogName) } -func RollbackLogPath(homeDir string) string { return filepath.Join(homeDir, rolledBackLogName) } - -// writeBlockLog records a preflight block. Written atomically. The mtime of -// the supernode config at the moment of the block is captured so subsequent -// check cycles can detect operator remediation. -func writeBlockLog(homeDir, reason, target string, snCfgMTime time.Time) error { - body := fmt.Sprintf( - "blocked_at: %s\ntarget_version: %s\nreason: %s\nsupernode_config_mtime: %s\nmigration_doc: https://github.com/LumeraProtocol/supernode/blob/master/docs/evm-migration.md\n", - time.Now().UTC().Format(time.RFC3339), - target, - reason, - snCfgMTime.UTC().Format(time.RFC3339Nano), - ) - return writeAtomic(BlockLogPath(homeDir), []byte(body)) -} - -// clearBlockLog is used when the operator has fixed their config (mtime -// advanced past what the block log recorded) so a subsequent update attempt -// is no longer blocked by the sticky marker. -func clearBlockLog(homeDir string) { - if err := os.Remove(BlockLogPath(homeDir)); err != nil && !os.IsNotExist(err) { - log.Printf("preflight: failed to remove stale block log: %v", err) - } -} - -// readBlockLogMTime returns the supernode_config_mtime recorded in an existing -// block log, or the zero time + false if no block log is present or parsable. -func readBlockLogMTime(homeDir string) (time.Time, bool) { - data, err := os.ReadFile(BlockLogPath(homeDir)) - if err != nil { - return time.Time{}, false - } - for _, line := range splitLines(string(data)) { - const prefix = "supernode_config_mtime: " - if len(line) > len(prefix) && line[:len(prefix)] == prefix { - t, err := time.Parse(time.RFC3339Nano, line[len(prefix):]) - if err == nil { - return t, true - } - } - } - return time.Time{}, false -} - -// shouldPreserveBlockOnUnknown returns true whenever a previously confirmed -// block exists. A config change triggers re-evaluation, but an inconclusive -// result is not evidence of remediation; only a definitive allow clears it. -func confirmedBlockWins(homeDir string, allowWasUnknown bool) bool { - return allowWasUnknown && shouldPreserveBlockOnUnknown(homeDir) -} - -func shouldPreserveBlockOnUnknown(homeDir string) bool { - _, err := os.Stat(BlockLogPath(homeDir)) - return err == nil || !os.IsNotExist(err) -} - -func splitLines(s string) []string { - var out []string - start := 0 - for i := 0; i < len(s); i++ { - if s[i] == '\n' { - out = append(out, s[start:i]) - start = i + 1 - } - } - if start < len(s) { - out = append(out, s[start:]) - } - return out -} - -func writeAtomic(path string, data []byte) error { - tmp := path + ".tmp" - if err := os.WriteFile(tmp, data, 0o644); err != nil { - return err - } - return os.Rename(tmp, path) -} diff --git a/sn-manager/internal/updater/preflight_state_test.go b/sn-manager/internal/updater/preflight_state_test.go deleted file mode 100644 index e1920cd8..00000000 --- a/sn-manager/internal/updater/preflight_state_test.go +++ /dev/null @@ -1,71 +0,0 @@ -package updater - -import ( - "os" - "testing" - "time" -) - -// TestWriteReadBlockLogMTime round-trips the sticky block marker so the -// updater can detect operator remediation. -func TestWriteReadBlockLogMTime(t *testing.T) { - home := t.TempDir() - mt := time.Date(2026, 7, 6, 8, 40, 0, 0, time.UTC) - if err := writeBlockLog(home, "reason", "v2.6.0-testnet", mt); err != nil { - t.Fatalf("writeBlockLog: %v", err) - } - got, ok := readBlockLogMTime(home) - if !ok { - t.Fatalf("readBlockLogMTime not ok") - } - if !got.Equal(mt) { - t.Fatalf("readBlockLogMTime = %v, want %v", got, mt) - } - - // clearBlockLog removes it - clearBlockLog(home) - if _, ok := readBlockLogMTime(home); ok { - t.Fatalf("expected block log to be cleared") - } -} - -func TestShouldPreserveBlockOnUnknown(t *testing.T) { - home := t.TempDir() - if shouldPreserveBlockOnUnknown(home) { - t.Fatal("unknown may fail open when no prior block exists") - } - blockedMTime := time.Date(2026, 7, 22, 10, 0, 0, 0, time.UTC) - if err := writeBlockLog(home, "unprepared", "v2.6.1-testnet", blockedMTime); err != nil { - t.Fatal(err) - } - - if !shouldPreserveBlockOnUnknown(home) { - t.Fatal("an existing confirmed block must survive an inconclusive probe") - } -} - -func TestConfirmedBlockPublishedAfterUnknownWins(t *testing.T) { - home := t.TempDir() - if confirmedBlockWins(home, true) { - t.Fatal("unknown may initially fail open without confirmed evidence") - } - if err := writeBlockLog(home, "confirmed concurrently", "v2.6.1-testnet", time.Date(2026, 7, 22, 12, 0, 0, 0, time.UTC)); err != nil { - t.Fatal(err) - } - if !confirmedBlockWins(home, true) { - t.Fatal("confirmed block published after unknown must win before mutation") - } - if confirmedBlockWins(home, false) { - t.Fatal("a definitive allow may clear prior evidence") - } -} - -func TestShouldPreserveBlockOnUnknownWithMalformedMarker(t *testing.T) { - home := t.TempDir() - if err := os.WriteFile(BlockLogPath(home), []byte("truncated"), 0o644); err != nil { - t.Fatal(err) - } - if !shouldPreserveBlockOnUnknown(home) { - t.Fatal("a malformed existing marker must fail closed on an unknown probe") - } -} diff --git a/sn-manager/internal/updater/preflight_test.go b/sn-manager/internal/updater/preflight_test.go index 38fb30be..56331f66 100644 --- a/sn-manager/internal/updater/preflight_test.go +++ b/sn-manager/internal/updater/preflight_test.go @@ -14,11 +14,10 @@ func TestDecidePreflight_Table(t *testing.T) { {"no-evm chain forward", preflightInputs{false, "", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightAllow}, {"no-evm chain already 2.6", preflightInputs{false, "", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, {"evm no-key forward to 2.6", preflightInputs{true, "", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightBlock}, - {"evm migrated config at 2.6 omits transitional key", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"evm migrated config can update beyond 2.6", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.1-testnet"}, preflightAllow}, - {"evm-capable current with older target is not an update decision", preflightInputs{true, "", "v2.6.1-testnet", "v2.5.0-testnet"}, preflightAllow}, - {"evm prepared forward to 2.6", preflightInputs{true, "evm-key", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"evm prepared at 2.6", preflightInputs{true, "evm-key", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, + {"evm no-key stuck at 2.6", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightRollback}, + {"evm no-key stuck target 2.6.1", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.1-testnet"}, preflightRollback}, + {"evm migrated forward to 2.6", preflightInputs{true, "evm-key", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightAllow}, + {"evm migrated at 2.6", preflightInputs{true, "evm-key", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, {"evm no-key below threshold 2.5.1", preflightInputs{true, "", "v2.5.0-testnet", "v2.5.1-testnet"}, preflightAllow}, {"evm no-key below threshold 2.5.0", preflightInputs{true, "", "v2.4.5-testnet", "v2.5.0-testnet"}, preflightAllow}, } @@ -70,12 +69,3 @@ func TestQueryEVMModuleActive_FailOpenOnEmpty(t *testing.T) { t.Fatalf("expected error for empty grpc_addr") } } - -func TestPreflightUnknownIsDistinctFromAllow(t *testing.T) { - if preflightUnknown == preflightAllow { - t.Fatal("inconclusive chain probes must not be represented as allow") - } - if got := preflightUnknown.String(); got != "unknown" { - t.Fatalf("preflightUnknown.String() = %q, want unknown", got) - } -} diff --git a/sn-manager/internal/updater/rollback.go b/sn-manager/internal/updater/rollback.go new file mode 100644 index 00000000..49054083 --- /dev/null +++ b/sn-manager/internal/updater/rollback.go @@ -0,0 +1,188 @@ +package updater + +import ( + "fmt" + "log" + "os" + "path/filepath" + "time" + + "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" + "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" +) + +// rollbackTargetVersion is the HARDCODED rollback target — the last pre-EVM +// testnet release. This is intentionally not dynamic and not configurable: +// the incident that motivated this code shipped because operators trusted +// the update pipeline to pick a target automatically. +const rollbackTargetVersion = "v2.5.0-testnet" + +const ( + updateBlockedLogName = "update-blocked.log" + rolledBackLogName = "rolled-back.log" +) + +// blockLogPath / rollbackLogPath / etc. are exposed via helpers so cmd/status.go +// can read them without duplicating the location literals. +func BlockLogPath(homeDir string) string { return filepath.Join(homeDir, updateBlockedLogName) } +func RollbackLogPath(homeDir string) string { return filepath.Join(homeDir, rolledBackLogName) } + +// writeBlockLog records a preflight block. Written atomically. The mtime of +// the supernode config at the moment of the block is captured so subsequent +// check cycles can detect operator remediation. +func writeBlockLog(homeDir, reason, target string, snCfgMTime time.Time) error { + body := fmt.Sprintf( + "blocked_at: %s\ntarget_version: %s\nreason: %s\nsupernode_config_mtime: %s\nmigration_doc: https://github.com/LumeraProtocol/supernode/blob/master/docs/evm-migration.md\n", + time.Now().UTC().Format(time.RFC3339), + target, + reason, + snCfgMTime.UTC().Format(time.RFC3339Nano), + ) + return writeAtomic(BlockLogPath(homeDir), []byte(body)) +} + +// clearBlockLog is used when the operator has fixed their config (mtime +// advanced past what the block log recorded) so a subsequent update attempt +// is no longer blocked by the sticky marker. +func clearBlockLog(homeDir string) { + if err := os.Remove(BlockLogPath(homeDir)); err != nil && !os.IsNotExist(err) { + log.Printf("preflight: failed to remove stale block log: %v", err) + } +} + +// readBlockLogMTime returns the supernode_config_mtime recorded in an existing +// block log, or the zero time + false if no block log is present or parsable. +func readBlockLogMTime(homeDir string) (time.Time, bool) { + data, err := os.ReadFile(BlockLogPath(homeDir)) + if err != nil { + return time.Time{}, false + } + for _, line := range splitLines(string(data)) { + const prefix = "supernode_config_mtime: " + if len(line) > len(prefix) && line[:len(prefix)] == prefix { + t, err := time.Parse(time.RFC3339Nano, line[len(prefix):]) + if err == nil { + return t, true + } + } + } + return time.Time{}, false +} + +func splitLines(s string) []string { + var out []string + start := 0 + for i := 0; i < len(s); i++ { + if s[i] == '\n' { + out = append(out, s[start:i]) + start = i + 1 + } + } + if start < len(s) { + out = append(out, s[start:]) + } + return out +} + +func writeRollbackLog(homeDir, from, to, reason string) error { + body := fmt.Sprintf( + "rolled_back_at: %s\nrolled_back_from: %s\nrolled_back_to: %s\nreason: %s\nmigration_doc: https://github.com/LumeraProtocol/supernode/blob/master/docs/evm-migration.md\n", + time.Now().UTC().Format(time.RFC3339), + from, + to, + reason, + ) + return writeAtomic(RollbackLogPath(homeDir), []byte(body)) +} + +func writeAtomic(path string, data []byte) error { + tmp := path + ".tmp" + if err := os.WriteFile(tmp, data, 0o644); err != nil { + return err + } + return os.Rename(tmp, path) +} + +// performRollback installs (downloading if necessary) rollbackTargetVersion, +// swaps the current symlink to it, updates sn-manager config, writes the +// rollback log, and drops a .needs_restart marker so the manager monitor +// picks up the swap on its next tick. +// +// The from/reason strings are used for the log only. +func (u *AutoUpdater) performRollback(from, reason string) error { + target := rollbackTargetVersion + + // 1. Ensure the target binary is installed. If not, download it. + if !u.versionMgr.IsVersionInstalled(target) { + if err := u.downloadRollbackTarget(target); err != nil { + return fmt.Errorf("download rollback target %s: %w", target, err) + } + } + + // 2. Activate. + if err := u.versionMgr.SetCurrentVersion(target); err != nil { + return fmt.Errorf("activate rollback target %s: %w", target, err) + } + + // 3. Persist in sn-manager config. + u.config.Updates.CurrentVersion = target + if err := config.Save(u.config, filepath.Join(u.homeDir, "config.yml")); err != nil { + return fmt.Errorf("save sn-manager config: %w", err) + } + + // 4. Rollback log + restart marker. + if err := writeRollbackLog(u.homeDir, from, target, reason); err != nil { + log.Printf("rollback: failed to write rollback log: %v", err) + } + if err := os.WriteFile(filepath.Join(u.homeDir, ".needs_restart"), []byte(target), 0o644); err != nil { + log.Printf("rollback: failed to write restart marker: %v", err) + } + log.Printf("rollback: reverted supernode %s → %s (%s)", from, target, reason) + return nil +} + +// downloadRollbackTarget fetches the rollback release tarball, extracts the +// supernode binary into a temp file, and hands it to versionMgr.InstallVersion. +// Reuses the same tarball-based pipeline as checkAndUpdateCombined; keeps the +// rollback release binary at ~/.sn-manager/binaries//supernode. +func (u *AutoUpdater) downloadRollbackTarget(target string) error { + tarURL, err := u.githubClient.GetReleaseTarballURL(target) + if err != nil { + return fmt.Errorf("get tarball URL: %w", err) + } + + downloadsDir := filepath.Join(u.homeDir, "downloads") + if err := os.MkdirAll(downloadsDir, 0o755); err != nil { + return fmt.Errorf("mkdir downloads: %w", err) + } + + tarPath := filepath.Join(downloadsDir, fmt.Sprintf("rollback-%s.tar.gz", target)) + if err := utils.DownloadFile(tarURL, tarPath, nil); err != nil { + return fmt.Errorf("download tarball: %w", err) + } + defer func() { + if err := os.Remove(tarPath); err != nil && !os.IsNotExist(err) { + log.Printf("rollback: failed to remove tarball: %v", err) + } + }() + + tmpSN := filepath.Join(downloadsDir, fmt.Sprintf("supernode-%s.tmp", target)) + targets := map[string]string{"supernode": tmpSN} + found, err := utils.ExtractMultipleFromTarGz(tarPath, targets) + if err != nil { + return fmt.Errorf("extract: %w", err) + } + if !found["supernode"] { + return fmt.Errorf("supernode binary not found in rollback tarball %s", target) + } + defer func() { + if err := os.Remove(tmpSN); err != nil && !os.IsNotExist(err) { + log.Printf("rollback: failed to remove temp supernode: %v", err) + } + }() + + if err := u.versionMgr.InstallVersion(target, tmpSN); err != nil { + return fmt.Errorf("install: %w", err) + } + return nil +} diff --git a/sn-manager/internal/updater/rollback_test.go b/sn-manager/internal/updater/rollback_test.go new file mode 100644 index 00000000..9453f93a --- /dev/null +++ b/sn-manager/internal/updater/rollback_test.go @@ -0,0 +1,111 @@ +package updater + +import ( + "os" + "path/filepath" + "testing" + "time" + + "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" + "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/version" +) + +// newTestUpdater constructs an AutoUpdater bound to a temp home directory. +// versionMgr and github client are the real ones — tests either pre-install +// binaries on disk or avoid calling the network code path. +func newTestUpdater(t *testing.T, home string) *AutoUpdater { + t.Helper() + if err := os.MkdirAll(home, 0o755); err != nil { + t.Fatalf("mkdir home: %v", err) + } + cfg := config.DefaultConfig() + cfg.Updates.CurrentVersion = "v2.6.0-testnet" + if err := config.Save(cfg, filepath.Join(home, "config.yml")); err != nil { + t.Fatalf("save cfg: %v", err) + } + return &AutoUpdater{ + config: cfg, + homeDir: home, + versionMgr: version.NewManager(home), + } +} + +// TestPerformRollback_HappyPath pre-installs the rollback target binary on +// disk (avoiding the network path), then asserts that performRollback: +// - swaps the current symlink to the rollback target +// - persists sn-manager config.yml with the rolled-back version +// - writes a .needs_restart marker +// - writes ~/.sn-manager/rolled-back.log +func TestPerformRollback_HappyPath(t *testing.T) { + home := t.TempDir() + u := newTestUpdater(t, home) + + // Pre-install rollback target so downloadRollbackTarget is NOT invoked. + target := rollbackTargetVersion + dir := u.versionMgr.GetVersionDir(target) + if err := os.MkdirAll(dir, 0o755); err != nil { + t.Fatalf("mkdir: %v", err) + } + if err := os.WriteFile(filepath.Join(dir, "supernode"), []byte("#!/bin/sh\nexit 0\n"), 0o755); err != nil { + t.Fatalf("write binary: %v", err) + } + + if err := u.performRollback("v2.6.0-testnet", "unit-test reason"); err != nil { + t.Fatalf("performRollback: %v", err) + } + + // Symlink activated + got, err := u.versionMgr.GetCurrentVersion() + if err != nil { + t.Fatalf("GetCurrentVersion: %v", err) + } + if got != target { + t.Fatalf("current version = %s, want %s", got, target) + } + + // Config persisted + reloaded, err := config.Load(filepath.Join(home, "config.yml")) + if err != nil { + t.Fatalf("reload cfg: %v", err) + } + if reloaded.Updates.CurrentVersion != target { + t.Fatalf("config current_version = %s, want %s", reloaded.Updates.CurrentVersion, target) + } + + // Restart marker + if _, err := os.Stat(filepath.Join(home, ".needs_restart")); err != nil { + t.Fatalf(".needs_restart missing: %v", err) + } + + // Rollback log + logData, err := os.ReadFile(RollbackLogPath(home)) + if err != nil { + t.Fatalf("read rollback log: %v", err) + } + if len(logData) == 0 { + t.Fatalf("rollback log is empty") + } +} + +// TestWriteReadBlockLogMTime round-trips the sticky block marker so the +// updater can detect operator remediation. +func TestWriteReadBlockLogMTime(t *testing.T) { + home := t.TempDir() + mt := time.Date(2026, 7, 6, 8, 40, 0, 0, time.UTC) + if err := writeBlockLog(home, "reason", "v2.6.0-testnet", mt); err != nil { + t.Fatalf("writeBlockLog: %v", err) + } + got, ok := readBlockLogMTime(home) + if !ok { + t.Fatalf("readBlockLogMTime not ok") + } + if !got.Equal(mt) { + t.Fatalf("readBlockLogMTime = %v, want %v", got, mt) + } + + // clearBlockLog removes it + clearBlockLog(home) + if _, ok := readBlockLogMTime(home); ok { + t.Fatalf("expected block log to be cleared") + } +} diff --git a/sn-manager/internal/updater/updater.go b/sn-manager/internal/updater/updater.go index 5054cbc2..3c4a48d3 100644 --- a/sn-manager/internal/updater/updater.go +++ b/sn-manager/internal/updater/updater.go @@ -12,7 +12,6 @@ import ( "time" pb "github.com/LumeraProtocol/supernode/v2/gen/supernode" - "github.com/LumeraProtocol/supernode/v2/pkg/configlock" "github.com/LumeraProtocol/supernode/v2/pkg/github" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" @@ -197,27 +196,15 @@ func (u *AutoUpdater) ForceSyncToLatest(_ context.Context) { u.checkAndUpdateCombined(true) } -// shouldForceUpdate keeps forced/startup synchronization monotonic. Force may -// bypass idleness and same-major policy, but it is never authorization to -// replace a binary with an equal or older release. Explicit `get`/`use` remain -// the operator-controlled version-selection path. -func shouldForceUpdate(current, target string) bool { - return utils.CompareVersions(current, target) < 0 -} - // checkAndUpdateCombined performs a single release check and, if needed, // downloads the release tarball once to update sn-manager and SuperNode. // If force is true, bypass gateway idleness and version policy checks. func (u *AutoUpdater) checkAndUpdateCombined(force bool) { - snapshot, err := utils.ReadSupernodeUpdateSnapshot() - if err != nil { - log.Printf("Cannot read SuperNode update configuration; automatic update aborted: %v", err) - return - } + chainID, _ := utils.ReadSupernodeChainID() // Fetch latest release once (testnet prefers "-testnet" tags, otherwise stable) - release, err := utils.LatestReleaseForChainID(u.githubClient, snapshot.ChainID) + release, err := utils.LatestReleaseForChainID(u.githubClient, chainID) if err != nil { log.Printf("Failed to check releases: %v", err) return @@ -235,74 +222,65 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { } } - // EVM preflight (post-fetch, pre-install). Forward-update would install an - // EVM-required target on a pre-EVM node that has no evm_key_name, so - // refuse the install and drop a sticky marker until the operator remediates. - // Already-EVM-capable versions proceed normally: the supernode startup path - // is the authority for active-key type and migration validation. + // EVM preflight (post-fetch, pre-install). This has two branches: // - // A chain-query failure is inconclusive. It fails open only when there is no - // previously confirmed compatibility block; known unsafe evidence wins over - // unknown evidence until a definitive allow clears the marker. + // (1) rollback: the currently-installed supernode is EVM-required and + // the config has no evm_key_name — the node is in a crash loop and + // must be reverted to the pre-EVM release (see rollback.go). + // (2) block: forward-update would install an EVM-required target on a + // node that has no evm_key_name — refuse the install and drop a + // sticky marker until the operator remediates. // - // Automatic updates (including cmd/start.go's forced startup sync) pass this - // gate. Only operator-explicit init/use/get version-selection paths bypass it. - // Use the active symlink, not the cached manager config, for compatibility - // and version-order decisions. - currentSN, err := u.versionMgr.GetCurrentVersion() - if err != nil { - log.Printf("Cannot determine active SuperNode version; automatic update aborted: %v", err) - return - } - + // Both branches only fire when the chain has the evm module active. + // A chain-query failure fails OPEN (allow) so a transient outage cannot + // itself trigger a block or a rollback. See preflight.go. + // + // The forward-block branch is the ONLY auto-update forward path this + // preflight gates. Operator-explicit code paths in cmd/{start,init,use,get}.go + // intentionally bypass the preflight — the operator is asking for a + // specific version and has accepted the consequences. pfCtx, pfCancel := context.WithTimeout(context.Background(), chainEVMProbeTimeout+2*time.Second) - decision, reason := u.preflightCheck(pfCtx, latest, currentSN, snapshot) + decision, reason := u.preflightCheck(pfCtx, latest) pfCancel() - allowWasUnknown := false - if decision == preflightUnknown { - // Unknown evidence can never erase a previously confirmed block. Config - // changes trigger a new probe, but only a definitive allow may clear it. - if shouldPreserveBlockOnUnknown(u.homeDir) { - log.Printf("update to %s remains blocked (compatibility probe inconclusive): %s", latest, reason) - return + if decision == preflightRollback { + from := u.config.Updates.CurrentVersion + if err := u.performRollback(from, reason); err != nil { + log.Printf("rollback failed: %v", err) } - log.Printf("preflight compatibility unknown for %s; no prior block, applying fail-open policy", latest) - allowWasUnknown = true - decision = preflightAllow + return } if decision == preflightBlock { - // Persist confirmed unsafe evidence while coordinated with config writers. - // Even if the config changed after the probe, retain a sticky block until - // a later definitive allow is validated against a current snapshot. - releaseConfigLock, lockErr := configlock.Acquire(utils.SupernodeConfigPath()) - if lockErr != nil { - log.Printf("Cannot lock SuperNode config to persist update block: %v", lockErr) - return - } + // Sticky: don't retry until the operator changes ~/.supernode/config.yml. snCfgMTime, _ := utils.SupernodeConfigMTime() - if prevMTime, ok := readBlockLogMTime(u.homeDir); ok && snCfgMTime.Equal(prevMTime) { - _ = releaseConfigLock() - log.Printf("update to %s blocked (config unchanged since previous block): %s", latest, reason) - return + if prevMTime, ok := readBlockLogMTime(u.homeDir); ok { + if snCfgMTime.Equal(prevMTime) { + log.Printf("update to %s blocked (config unchanged since previous block): %s", latest, reason) + return + } + // mtime advanced — operator has touched the config; clear the + // sticky marker and re-evaluate on this pass. The current + // decision was made against the CURRENT config state, so if + // we're still in block state now, re-record. } if err := writeBlockLog(u.homeDir, reason, latest, snCfgMTime); err != nil { log.Printf("failed to write block log: %v", err) } - if err := releaseConfigLock(); err != nil { - log.Printf("Failed to release SuperNode config lock: %v", err) - } log.Printf("update to %s blocked: %s", latest, reason) return } + // decision == preflightAllow: if a stale block-log exists from a + // previous cycle, clear it so `sn-manager status` reflects reality. + clearBlockLog(u.homeDir) + // Determine if sn-manager should update (same criteria: stable, same major) managerNeedsUpdate := false ver := strings.TrimSpace(u.managerVersion) if ver != "" && ver != "dev" && !strings.EqualFold(ver, "unknown") { if force { - managerNeedsUpdate = shouldForceUpdate(ver, latest) + managerNeedsUpdate = !strings.EqualFold(ver, latest) } else { if utils.SameMajor(ver, latest) && utils.CompareVersions(ver, latest) < 0 { managerNeedsUpdate = true @@ -310,43 +288,16 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { } } - // Determine whether the active SuperNode symlink should update. The manager - // config is only a cache and may be stale after an explicit `sn-manager use`. - currentSN, err = u.versionMgr.GetCurrentVersion() - if err != nil { - log.Printf("Cannot determine active SuperNode version; automatic update aborted: %v", err) - return - } + // Determine if SuperNode should update using existing policy + currentSN := u.config.Updates.CurrentVersion supernodeNeedsUpdate := false if force { - supernodeNeedsUpdate = shouldForceUpdate(currentSN, latest) + supernodeNeedsUpdate = !strings.EqualFold(strings.TrimPrefix(currentSN, "v"), strings.TrimPrefix(latest, "v")) } else { supernodeNeedsUpdate = u.ShouldUpdate(currentSN, latest) } if !managerNeedsUpdate && !supernodeNeedsUpdate { - // A definitive allow may clear prior blocked evidence only after proving - // that the config used by the probe is still current under the writer lock. - releaseConfigLock, lockErr := configlock.Acquire(utils.SupernodeConfigPath()) - if lockErr != nil { - log.Printf("Cannot lock SuperNode config to clear update block: %v", lockErr) - return - } - configCurrent, currentErr := utils.IsCurrentSupernodeConfig(snapshot) - newBlockWon := confirmedBlockWins(u.homeDir, allowWasUnknown) - if currentErr == nil && configCurrent && !newBlockWon { - clearBlockLog(u.homeDir) - } - if err := releaseConfigLock(); err != nil { - log.Printf("Failed to release SuperNode config lock: %v", err) - } - if newBlockWon { - log.Printf("compatibility probe was inconclusive; retaining concurrently confirmed update block") - } else if currentErr != nil { - log.Printf("Cannot revalidate SuperNode config; retaining update block: %v", currentErr) - } else if !configCurrent { - log.Printf("SuperNode config changed during update check; retaining update block for re-evaluation") - } return } @@ -364,19 +315,6 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { } } - // Serialize all release staging paths across sn-manager processes. Lock order - // is install -> SuperNode config -> per-version install -> active symlink. - releaseInstallLock, err := u.versionMgr.AcquireInstallLock() - if err != nil { - log.Printf("Cannot lock release installation; automatic update aborted: %v", err) - return - } - defer func() { - if err := releaseInstallLock(); err != nil { - log.Printf("Failed to release installation lock: %v", err) - } - }() - // Download the combined release tarball once tarURL, err := u.githubClient.GetReleaseTarballURL(latest) if err != nil { @@ -429,51 +367,6 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { extractedManager := managerNeedsUpdate && found["sn-manager"] extractedSN := supernodeNeedsUpdate && found["supernode"] - // Coordinate with SuperNode's config writer, then revalidate the snapshot. - // Holding this lock through both binary mutations closes the check/use race - // with migration's post-DeliverTx config rewrite. - releaseConfigLock, err := configlock.Acquire(utils.SupernodeConfigPath()) - if err != nil { - _ = os.Remove(tmpManager) - _ = os.Remove(tmpSN) - log.Printf("Cannot lock SuperNode config; automatic update aborted: %v", err) - return - } - defer func() { - if err := releaseConfigLock(); err != nil { - log.Printf("Failed to release SuperNode config lock: %v", err) - } - }() - - // Release selection and compatibility preflight were made from snapshot. - // Abort before either binary is mutated if an operator/process rewrote the - // SuperNode config while the release was downloading. - configCurrent, err := utils.IsCurrentSupernodeConfig(snapshot) - if err != nil || !configCurrent { - _ = os.Remove(tmpManager) - _ = os.Remove(tmpSN) - if err != nil { - log.Printf("Cannot revalidate SuperNode config; automatic update aborted: %v", err) - } else { - log.Printf("SuperNode config changed during update check; automatic update aborted for re-evaluation") - } - return - } - - // Unknown evidence cannot override a definitive block published by another - // process after this process's initial marker check. The config lock makes - // this marker check atomic with the following clear and binary mutations. - if confirmedBlockWins(u.homeDir, allowWasUnknown) { - _ = os.Remove(tmpManager) - _ = os.Remove(tmpSN) - log.Printf("compatibility probe was inconclusive; concurrently confirmed update block wins") - return - } - - // The definitive allow and release selection are still based on the locked, - // current snapshot; it is now safe to clear previously blocked evidence. - clearBlockLog(u.homeDir) - // Apply sn-manager update first managerUpdated := false if managerNeedsUpdate { @@ -500,11 +393,8 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { if err := u.versionMgr.InstallVersion(latest, tmpSN); err != nil { log.Printf("Failed to install SuperNode: %v", err) } else { - activated, err := u.versionMgr.SetCurrentVersionIfNewer(latest) - if err != nil { + if err := u.versionMgr.SetCurrentVersion(latest); err != nil { log.Printf("Failed to activate SuperNode %s: %v", latest, err) - } else if !activated { - log.Printf("Skipped activating SuperNode %s because the active version is equal or newer", latest) } else { u.config.Updates.CurrentVersion = latest if err := config.Save(u.config, filepath.Join(u.homeDir, "config.yml")); err != nil { diff --git a/sn-manager/internal/updater/updater_test.go b/sn-manager/internal/updater/updater_test.go index acab13a8..bfb3dae4 100644 --- a/sn-manager/internal/updater/updater_test.go +++ b/sn-manager/internal/updater/updater_test.go @@ -1,15 +1,6 @@ package updater -import ( - "os" - "path/filepath" - "testing" - - "github.com/LumeraProtocol/supernode/v2/pkg/github" - githubtestutil "github.com/LumeraProtocol/supernode/v2/pkg/github/testutil" - managerconfig "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/version" -) +import "testing" func TestShouldUpdate_TestnetTagAdvances(t *testing.T) { u := &AutoUpdater{} @@ -57,85 +48,3 @@ func TestShouldUpdate_PrereleaseToStableSameBase(t *testing.T) { t.Fatalf("expected prerelease to stable update for same base") } } - -func TestShouldForceUpdate_OnlyMovesForward(t *testing.T) { - cases := []struct { - name string - current string - target string - want bool - }{ - {"upgrade", "v2.6.0-testnet", "v2.6.1-testnet", true}, - {"equal", "v2.6.1-testnet", "v2.6.1-testnet", false}, - {"downgrade", "v2.6.1-testnet", "v2.5.0-testnet", false}, - {"stable to prerelease", "v2.6.1", "v2.6.1-rc.1", false}, - } - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - if got := shouldForceUpdate(tc.current, tc.target); got != tc.want { - t.Fatalf("shouldForceUpdate(%q, %q) = %v, want %v", tc.current, tc.target, got, tc.want) - } - }) - } -} - -func TestCheckAndUpdateCombined_ConfigReadFailureDoesNotSelectReleaseChannel(t *testing.T) { - t.Setenv("HOME", t.TempDir()) - client := &githubtestutil.FakeClient{ - LatestStable: &github.Release{TagName: "v2.6.1"}, - } - u := &AutoUpdater{ - config: &managerconfig.Config{Updates: managerconfig.UpdateConfig{CurrentVersion: "v2.6.1"}}, - homeDir: t.TempDir(), - githubClient: client, - managerVersion: "v2.6.1", - } - - u.checkAndUpdateCombined(true) - - if client.CallsLatestStable != 0 || client.CallsListReleases != 0 { - t.Fatalf("config read failure must abort before release selection; stable=%d list=%d", client.CallsLatestStable, client.CallsListReleases) - } -} - -func TestCheckAndUpdateCombined_UsesActiveSymlinkNotStaleConfig(t *testing.T) { - supernodeHome := t.TempDir() - t.Setenv("HOME", supernodeHome) - if err := os.MkdirAll(filepath.Join(supernodeHome, ".supernode"), 0o755); err != nil { - t.Fatal(err) - } - if err := os.WriteFile(filepath.Join(supernodeHome, ".supernode", "config.yml"), []byte("lumera:\n chain_id: lumera-testnet-2\n"), 0o600); err != nil { - t.Fatal(err) - } - - managerHome := t.TempDir() - versionMgr := version.NewManager(managerHome) - source := filepath.Join(managerHome, "supernode") - if err := os.WriteFile(source, []byte("binary"), 0o755); err != nil { - t.Fatal(err) - } - if err := versionMgr.InstallVersion("v2.6.1-testnet", source); err != nil { - t.Fatal(err) - } - if err := versionMgr.SetCurrentVersion("v2.6.1-testnet"); err != nil { - t.Fatal(err) - } - - client := &githubtestutil.FakeClient{Releases: []*github.Release{{TagName: "v2.5.1-testnet"}}} - u := &AutoUpdater{ - config: &managerconfig.Config{Updates: managerconfig.UpdateConfig{CurrentVersion: "v2.5.0-testnet"}}, - homeDir: managerHome, - githubClient: client, - versionMgr: versionMgr, - managerVersion: "v2.6.1-testnet", - } - - u.checkAndUpdateCombined(true) - - if client.CallsTarballURL != 0 { - t.Fatal("automatic update used stale config and attempted to download an older release") - } - if active, err := versionMgr.GetCurrentVersion(); err != nil || active != "v2.6.1-testnet" { - t.Fatalf("active version = %q, err=%v", active, err) - } -} diff --git a/sn-manager/internal/utils/chain_id.go b/sn-manager/internal/utils/chain_id.go index 7f50ac9f..d8b4dabe 100644 --- a/sn-manager/internal/utils/chain_id.go +++ b/sn-manager/internal/utils/chain_id.go @@ -1,7 +1,6 @@ package utils import ( - "crypto/sha256" "fmt" "os" "path/filepath" @@ -25,7 +24,7 @@ func SupernodeConfigPath() string { } // supernodeYAML captures the fields sn-manager reads from ~/.supernode/config.yml. -// Keep this struct in sync with new preflight readers below. +// Keep this struct in sync with new preflight/rollback readers below. type supernodeYAML struct { Supernode struct { EVMKeyName string `yaml:"evm_key_name"` @@ -36,51 +35,6 @@ type supernodeYAML struct { } `yaml:"lumera"` } -// SupernodeUpdateSnapshot is one coherent read of every SuperNode config field -// used to select and preflight an automatic update. Its digest lets the updater -// reject a decision if config changed while a release was downloaded. -type SupernodeUpdateSnapshot struct { - ChainID string - GRPCAddr string - EVMKeyName string - digest [sha256.Size]byte -} - -// ReadSupernodeUpdateSnapshot reads and validates update inputs from one file -// image. In particular, an unreadable or missing chain ID cannot silently -// select the mainnet/stable release channel. -func ReadSupernodeUpdateSnapshot() (SupernodeUpdateSnapshot, error) { - path := SupernodeConfigPath() - data, err := os.ReadFile(path) - if err != nil { - return SupernodeUpdateSnapshot{}, err - } - var cfg supernodeYAML - if err := yaml.Unmarshal(data, &cfg); err != nil { - return SupernodeUpdateSnapshot{}, fmt.Errorf("failed to parse supernode config %s: %w", path, err) - } - chainID := strings.TrimSpace(cfg.Lumera.ChainID) - if chainID == "" { - return SupernodeUpdateSnapshot{}, fmt.Errorf("chain_id not set in %s", path) - } - return SupernodeUpdateSnapshot{ - ChainID: chainID, - GRPCAddr: strings.TrimSpace(cfg.Lumera.GRPCAddr), - EVMKeyName: strings.TrimSpace(cfg.Supernode.EVMKeyName), - digest: sha256.Sum256(data), - }, nil -} - -// IsCurrentSupernodeConfig reports whether the config bytes still match the -// snapshot used for release-channel selection and compatibility preflight. -func IsCurrentSupernodeConfig(snapshot SupernodeUpdateSnapshot) (bool, error) { - data, err := os.ReadFile(SupernodeConfigPath()) - if err != nil { - return false, err - } - return sha256.Sum256(data) == snapshot.digest, nil -} - func readSupernodeYAML() (*supernodeYAML, string, error) { path := SupernodeConfigPath() data, err := os.ReadFile(path) @@ -109,8 +63,8 @@ func ReadSupernodeChainID() (string, error) { // ReadSupernodeEVMKeyName returns supernode.evm_key_name (trimmed). An empty // string is returned if the field is absent or empty. It is NOT an error for -// the field to be missing — an unprepared pre-EVM node is the condition the -// forward-update preflight looks for. +// the field to be missing — an unmigrated node is the exact condition the +// preflight/rollback logic looks for. func ReadSupernodeEVMKeyName() (string, error) { cfg, _, err := readSupernodeYAML() if err != nil { diff --git a/sn-manager/internal/utils/chain_id_test.go b/sn-manager/internal/utils/chain_id_test.go index bca694cb..6094306e 100644 --- a/sn-manager/internal/utils/chain_id_test.go +++ b/sn-manager/internal/utils/chain_id_test.go @@ -84,42 +84,6 @@ func TestReadSupernodeGRPCAddr(t *testing.T) { } } -func TestReadSupernodeUpdateSnapshotAndDetectReplacement(t *testing.T) { - tmp := t.TempDir() - t.Setenv("HOME", tmp) - cfgDir := filepath.Join(tmp, ".supernode") - if err := os.MkdirAll(cfgDir, 0o755); err != nil { - t.Fatal(err) - } - cfgPath := filepath.Join(cfgDir, "config.yml") - original := []byte("supernode:\n evm_key_name: evm-key\nlumera:\n chain_id: lumera-testnet-2\n grpc_addr: grpc.testnet.lumera.io:443\n") - if err := os.WriteFile(cfgPath, original, 0o644); err != nil { - t.Fatal(err) - } - - snapshot, err := ReadSupernodeUpdateSnapshot() - if err != nil { - t.Fatal(err) - } - if snapshot.ChainID != "lumera-testnet-2" || snapshot.GRPCAddr != "grpc.testnet.lumera.io:443" || snapshot.EVMKeyName != "evm-key" { - t.Fatalf("unexpected snapshot: %+v", snapshot) - } - if current, err := IsCurrentSupernodeConfig(snapshot); err != nil || !current { - t.Fatalf("expected current snapshot, current=%v err=%v", current, err) - } - - replacement := filepath.Join(cfgDir, "config.yml.new") - if err := os.WriteFile(replacement, []byte("lumera:\n chain_id: lumera-testnet-2\n grpc_addr: other:443\n"), 0o644); err != nil { - t.Fatal(err) - } - if err := os.Rename(replacement, cfgPath); err != nil { - t.Fatal(err) - } - if current, err := IsCurrentSupernodeConfig(snapshot); err != nil || current { - t.Fatalf("expected replacement to invalidate snapshot, current=%v err=%v", current, err) - } -} - func TestReadSupernodeChainID_MissingOrEmpty(t *testing.T) { tmp := t.TempDir() t.Setenv("HOME", tmp) diff --git a/sn-manager/internal/version/manager.go b/sn-manager/internal/version/manager.go index 3900c608..5aa361b1 100644 --- a/sn-manager/internal/version/manager.go +++ b/sn-manager/internal/version/manager.go @@ -1,7 +1,6 @@ package version import ( - "errors" "fmt" "io" "log" @@ -9,12 +8,9 @@ import ( "path/filepath" "sort" - "github.com/LumeraProtocol/supernode/v2/pkg/configlock" "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" ) -var ErrNoCurrentVersion = errors.New("no version currently set") - // Manager handles version storage and symlink management type Manager struct { homeDir string @@ -54,27 +50,8 @@ func (m *Manager) IsVersionInstalled(version string) bool { return err == nil } -// AcquireInstallLock serializes release download, extraction, and installation -// across sn-manager processes that share this home directory. -func (m *Manager) AcquireInstallLock() (func() error, error) { - return configlock.Acquire(filepath.Join(m.homeDir, "install")) -} - // InstallVersion installs a binary to the version directory atomically func (m *Manager) InstallVersion(version string, binaryPath string) error { - if err := os.MkdirAll(m.GetBinariesDir(), 0o755); err != nil { - return fmt.Errorf("failed to create binaries directory: %w", err) - } - release, err := configlock.Acquire(filepath.Join(m.GetBinariesDir(), "."+version)) - if err != nil { - return fmt.Errorf("failed to lock version installation: %w", err) - } - defer func() { - if releaseErr := release(); releaseErr != nil { - log.Printf("Warning: failed to release version install lock: %v", releaseErr) - } - }() - // Create version directory versionDir := m.GetVersionDir(version) if err := os.MkdirAll(versionDir, 0755); err != nil { @@ -122,50 +99,8 @@ func (m *Manager) InstallVersion(version string, binaryPath string) error { return nil } -// SetCurrentVersion updates the current symlink to point to a version atomically. -// It is operator-explicit and therefore permits selecting any installed version. +// SetCurrentVersion updates the current symlink to point to a version atomically func (m *Manager) SetCurrentVersion(version string) error { - release, err := configlock.Acquire(m.GetCurrentLink()) - if err != nil { - return err - } - if err := m.setCurrentVersionUnlocked(version); err != nil { - _ = release() - return err - } - return release() -} - -// SetCurrentVersionIfNewer atomically compares the active symlink and advances -// it only when version has higher semantic precedence. Automatic update paths -// use this method so a concurrent explicit `use` cannot turn into a downgrade. -func (m *Manager) SetCurrentVersionIfNewer(version string) (bool, error) { - release, err := configlock.Acquire(m.GetCurrentLink()) - if err != nil { - return false, err - } - defer func() { _ = release() }() - - current, err := m.GetCurrentVersion() - if err != nil { - if !errors.Is(err, ErrNoCurrentVersion) { - return false, err - } - if err := m.setCurrentVersionUnlocked(version); err != nil { - return false, err - } - return true, nil - } - if utils.CompareVersions(current, version) >= 0 { - return false, nil - } - if err := m.setCurrentVersionUnlocked(version); err != nil { - return false, err - } - return true, nil -} - -func (m *Manager) setCurrentVersionUnlocked(version string) error { // Verify version exists if !m.IsVersionInstalled(version) { return fmt.Errorf("version %s is not installed", version) @@ -203,7 +138,7 @@ func (m *Manager) GetCurrentVersion() (string, error) { target, err := os.Readlink(currentLink) if err != nil { if os.IsNotExist(err) { - return "", ErrNoCurrentVersion + return "", fmt.Errorf("no version currently set") } return "", fmt.Errorf("failed to read current version: %w", err) } diff --git a/sn-manager/internal/version/manager_test.go b/sn-manager/internal/version/manager_test.go index 4d6d0a34..de24cce9 100644 --- a/sn-manager/internal/version/manager_test.go +++ b/sn-manager/internal/version/manager_test.go @@ -1,10 +1,8 @@ package version import ( - "bytes" "os" "path/filepath" - "sync" "testing" ) @@ -48,105 +46,6 @@ func TestInstallAndActivateVersion(t *testing.T) { } } -func TestSetCurrentVersionIfNewerActivatesWhenCurrentMissing(t *testing.T) { - home := t.TempDir() - m := NewManager(home) - src := filepath.Join(home, "src-supernode") - if err := os.WriteFile(src, []byte("fake-binary"), 0o755); err != nil { - t.Fatal(err) - } - if err := m.InstallVersion("v2.6.1-testnet", src); err != nil { - t.Fatal(err) - } - changed, err := m.SetCurrentVersionIfNewer("v2.6.1-testnet") - if err != nil { - t.Fatal(err) - } - if !changed { - t.Fatal("missing current symlink should activate target") - } -} - -func TestSetCurrentVersionIfNewerNeverDowngrades(t *testing.T) { - home := t.TempDir() - m := NewManager(home) - src := filepath.Join(home, "src-supernode") - if err := os.WriteFile(src, []byte("fake-binary"), 0o755); err != nil { - t.Fatal(err) - } - for _, version := range []string{"v2.5.0-testnet", "v2.6.1-testnet", "v2.7.0-testnet"} { - if err := m.InstallVersion(version, src); err != nil { - t.Fatal(err) - } - } - if err := m.SetCurrentVersion("v2.6.1-testnet"); err != nil { - t.Fatal(err) - } - - changed, err := m.SetCurrentVersionIfNewer("v2.5.0-testnet") - if err != nil { - t.Fatal(err) - } - if changed { - t.Fatal("older target must not change active version") - } - if got, _ := m.GetCurrentVersion(); got != "v2.6.1-testnet" { - t.Fatalf("active version downgraded to %q", got) - } - - changed, err = m.SetCurrentVersionIfNewer("v2.7.0-testnet") - if err != nil { - t.Fatal(err) - } - if !changed { - t.Fatal("newer target should activate") - } - if got, _ := m.GetCurrentVersion(); got != "v2.7.0-testnet" { - t.Fatalf("active version = %q", got) - } -} - -func TestInstallVersionSerializesSameTarget(t *testing.T) { - home := t.TempDir() - m1, m2 := NewManager(home), NewManager(home) - a := bytes.Repeat([]byte("a"), 1<<20) - b := bytes.Repeat([]byte("b"), 1<<20) - srcA, srcB := filepath.Join(home, "a"), filepath.Join(home, "b") - if err := os.WriteFile(srcA, a, 0o755); err != nil { - t.Fatal(err) - } - if err := os.WriteFile(srcB, b, 0o755); err != nil { - t.Fatal(err) - } - - var wg sync.WaitGroup - errs := make(chan error, 2) - for _, item := range []struct { - manager *Manager - source string - }{{m1, srcA}, {m2, srcB}} { - wg.Add(1) - go func(manager *Manager, source string) { - defer wg.Done() - errs <- manager.InstallVersion("v2.6.1-testnet", source) - }(item.manager, item.source) - } - wg.Wait() - close(errs) - for err := range errs { - if err != nil { - t.Fatalf("concurrent install failed: %v", err) - } - } - got, err := os.ReadFile(m1.GetVersionBinary("v2.6.1-testnet")) - if err != nil { - t.Fatal(err) - } - if !bytes.Equal(got, a) && !bytes.Equal(got, b) { - t.Fatal("installed binary is a partial or mixed concurrent write") - } -} - func TestListVersions_SortsNewestFirst(t *testing.T) { home := t.TempDir() m := NewManager(home) @@ -173,3 +72,4 @@ func TestListVersions_SortsNewestFirst(t *testing.T) { t.Fatalf("expected newest first, got %v", versions) } } + diff --git a/supernode/cmd/evmigration.go b/supernode/cmd/evmigration.go index 3c22d7ae..3ec8fd92 100644 --- a/supernode/cmd/evmigration.go +++ b/supernode/cmd/evmigration.go @@ -79,24 +79,11 @@ func legacyKeyMigrationInstructions(keyName string) string { } func validateLegacyMigrationSetup(kr cKeyring.Keyring, keyName, evmKeyName string) (bool, error) { - if err := requireLocalSigningKey(kr, keyName); err != nil { - return false, err - } legacy, err := isLegacyKey(kr, keyName) if err != nil { return false, err } if !legacy { - isEVM, err := isEthSecp256k1Key(kr, keyName) - if err != nil { - return false, err - } - if !isEVM { - return false, fmt.Errorf( - "supernode.key_name %q is not an eth_secp256k1 key; only legacy secp256k1 keys awaiting migration or active eth_secp256k1 keys are supported", - keyName, - ) - } return false, nil } @@ -104,9 +91,6 @@ func validateLegacyMigrationSetup(kr cKeyring.Keyring, keyName, evmKeyName strin if evmKeyName == "" { return true, fmt.Errorf("%s", legacyKeyMigrationInstructions(keyName)) } - if err := requireLocalSigningKey(kr, evmKeyName); err != nil { - return true, fmt.Errorf("evm_key_name %q: %w\n\n%s", evmKeyName, err, legacyKeyMigrationInstructions(keyName)) - } isEVM, err := isEthSecp256k1Key(kr, evmKeyName) if err != nil { @@ -195,20 +179,6 @@ func requireEVMChainWithQuerier(ctx context.Context, client moduleVersionQuerier return fmt.Errorf("failed to query chain module versions after %d attempts: %w", requireEVMChainQueryRetries, lastErr) } -// requireLocalSigningKey rejects public-only, multisig, and hardware-backed -// records before startup accepts a key for the daemon's in-process signing -// flow. Algorithm classification remains separate so its helpers stay pure. -func requireLocalSigningKey(kr cKeyring.Keyring, keyName string) error { - rec, err := kr.Key(keyName) - if err != nil { - return fmt.Errorf("key %q not found in keyring: %w", keyName, err) - } - if rec.GetType() != cKeyring.TypeLocal { - return fmt.Errorf("key %q must be a local signing key, got %s", keyName, rec.GetType()) - } - return nil -} - // isLegacyKey returns true if the key stored in the keyring under keyName uses // the pre-EVM secp256k1 algorithm (coin type 118) rather than the EVM-compatible // eth_secp256k1 (coin type 60). @@ -228,8 +198,9 @@ func isLegacyKey(kr cKeyring.Keyring, keyName string) (bool, error) { // isEthSecp256k1Key returns true only if the key stored in the keyring under // keyName uses the EVM-compatible eth_secp256k1 algorithm. It explicitly // type-asserts the public key rather than treating "anything that is not legacy -// secp256k1" as EVM. Record capability (local/offline/ledger/multisig) is -// enforced separately by requireLocalSigningKey at the migration preflight. +// secp256k1" as EVM, so multisig/offline/ledger or any other non-EVM key type is +// rejected at this pre-flight gate instead of failing later during signing or +// proof validation. func isEthSecp256k1Key(kr cKeyring.Keyring, keyName string) (bool, error) { rec, err := kr.Key(keyName) if err != nil { diff --git a/supernode/cmd/evmigration_test.go b/supernode/cmd/evmigration_test.go index 2dc9e27d..e8431197 100644 --- a/supernode/cmd/evmigration_test.go +++ b/supernode/cmd/evmigration_test.go @@ -143,68 +143,6 @@ func TestValidateLegacyMigrationSetup_NoMigrationNeeded(t *testing.T) { assert.False(t, legacy) } -func TestValidateLegacyMigrationSetup_RejectsUnsupportedActiveKeyType(t *testing.T) { - kr := newTestKeyring(t) - priv := ed25519.GenPrivKey() - _, err := kr.SaveOfflineKey("unsupported", priv.PubKey()) - require.NoError(t, err) - - legacy, err := validateLegacyMigrationSetup(kr, "unsupported", "") - require.Error(t, err) - assert.False(t, legacy) - assert.Contains(t, err.Error(), "must be a local signing key") -} - -func TestValidateLegacyMigrationSetup_RejectsOfflineActiveEVMKey(t *testing.T) { - kr := newTestKeyring(t) - addEVMKey(t, kr, "source") - rec, err := kr.Key("source") - require.NoError(t, err) - pubKey, err := rec.GetPubKey() - require.NoError(t, err) - _, err = kr.SaveOfflineKey("offline-evm", pubKey) - require.NoError(t, err) - - legacy, err := validateLegacyMigrationSetup(kr, "offline-evm", "") - require.Error(t, err) - assert.False(t, legacy) - assert.Contains(t, err.Error(), "must be a local signing key") -} - -func TestValidateLegacyMigrationSetup_RejectsOfflineLegacySource(t *testing.T) { - kr := newTestKeyring(t) - addLegacyKey(t, kr, "source") - rec, err := kr.Key("source") - require.NoError(t, err) - pubKey, err := rec.GetPubKey() - require.NoError(t, err) - _, err = kr.SaveOfflineKey("offline-legacy", pubKey) - require.NoError(t, err) - addEVMKey(t, kr, "evm") - - legacy, err := validateLegacyMigrationSetup(kr, "offline-legacy", "evm") - require.Error(t, err) - assert.False(t, legacy) - assert.Contains(t, err.Error(), "must be a local signing key") -} - -func TestValidateLegacyMigrationSetup_RejectsOfflineEVMTarget(t *testing.T) { - kr := newTestKeyring(t) - addLegacyKey(t, kr, "legacy") - addEVMKey(t, kr, "source") - rec, err := kr.Key("source") - require.NoError(t, err) - pubKey, err := rec.GetPubKey() - require.NoError(t, err) - _, err = kr.SaveOfflineKey("offline-evm", pubKey) - require.NoError(t, err) - - legacy, err := validateLegacyMigrationSetup(kr, "legacy", "offline-evm") - require.Error(t, err) - assert.True(t, legacy) - assert.Contains(t, err.Error(), "must be a local signing key") -} - func TestValidateLegacyMigrationSetup_LegacyKeyWithoutEVMKeyName(t *testing.T) { kr := newTestKeyring(t) addLegacyKey(t, kr, "mykey") diff --git a/supernode/config/save.go b/supernode/config/save.go index 92d326ee..80b58ab8 100644 --- a/supernode/config/save.go +++ b/supernode/config/save.go @@ -6,7 +6,6 @@ import ( "path/filepath" "time" - "github.com/LumeraProtocol/supernode/v2/pkg/configlock" "gopkg.in/yaml.v3" ) @@ -18,12 +17,6 @@ func SaveConfig(config *Config, filename string) error { return fmt.Errorf("failed to create directory for config file: %w", err) } - release, err := configlock.Acquire(filename) - if err != nil { - return err - } - defer func() { _ = release() }() - // Marshal config to YAML data, err := yaml.Marshal(config) if err != nil { From 5f718b913613c73b22e29b408ded1ea8f41353fd Mon Sep 17 00:00:00 2001 From: Matee ullah Malik Date: Sun, 26 Jul 2026 22:39:47 +0000 Subject: [PATCH 2/3] Revert "sn-manager: EVM preflight + auto-rollback (v2.6.1-testnet fix) (#311)" This reverts commit d930cf5b443d6321f5eda95dfdc7e8da3d72d927. --- sn-manager/cmd/status.go | 43 - sn-manager/go.mod | 139 +- sn-manager/go.sum | 1228 ----------------- sn-manager/internal/updater/preflight.go | 185 --- sn-manager/internal/updater/preflight_test.go | 71 - sn-manager/internal/updater/rollback.go | 188 --- sn-manager/internal/updater/rollback_test.go | 111 -- sn-manager/internal/updater/updater.go | 53 - sn-manager/internal/utils/chain_id.go | 66 +- sn-manager/internal/utils/chain_id_test.go | 43 - sn-manager/internal/utils/semver.go | 37 - sn-manager/internal/utils/semver_test.go | 20 - 12 files changed, 11 insertions(+), 2173 deletions(-) delete mode 100644 sn-manager/internal/updater/preflight.go delete mode 100644 sn-manager/internal/updater/preflight_test.go delete mode 100644 sn-manager/internal/updater/rollback.go delete mode 100644 sn-manager/internal/updater/rollback_test.go diff --git a/sn-manager/cmd/status.go b/sn-manager/cmd/status.go index 1d769f8e..a36f42ec 100644 --- a/sn-manager/cmd/status.go +++ b/sn-manager/cmd/status.go @@ -6,7 +6,6 @@ import ( "os" "path/filepath" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/updater" "github.com/spf13/cobra" ) @@ -17,45 +16,6 @@ var statusCmd = &cobra.Command{ RunE: runStatus, } -// printPreflightStatus prints update-blocked / rolled-back state, if any. -// Both markers live in the manager home directory and are written by the -// auto-updater's EVM preflight/rollback code path (see internal/updater/). -func printPreflightStatus(home string) { - if data, err := os.ReadFile(updater.BlockLogPath(home)); err == nil && len(data) > 0 { - fmt.Println(" Update Blocked: true") - for _, line := range splitStatusLines(string(data)) { - if line == "" { - continue - } - fmt.Printf(" %s\n", line) - } - } - if data, err := os.ReadFile(updater.RollbackLogPath(home)); err == nil && len(data) > 0 { - fmt.Println(" Rolled Back: true") - for _, line := range splitStatusLines(string(data)) { - if line == "" { - continue - } - fmt.Printf(" %s\n", line) - } - } -} - -func splitStatusLines(s string) []string { - var out []string - start := 0 - for i := 0; i < len(s); i++ { - if s[i] == '\n' { - out = append(out, s[start:i]) - start = i + 1 - } - } - if start < len(s) { - out = append(out, s[start:]) - } - return out -} - func runStatus(cmd *cobra.Command, args []string) error { home := getHomeDir() @@ -80,7 +40,6 @@ func runStatus(cmd *cobra.Command, args []string) error { fmt.Printf(" Current Version: %s\n", cfg.Updates.CurrentVersion) fmt.Printf(" Manager Version: %s\n", appVersion) fmt.Printf(" Auto-upgrade: %v\n", cfg.Updates.AutoUpgrade) - printPreflightStatus(home) return nil } @@ -91,7 +50,6 @@ func runStatus(cmd *cobra.Command, args []string) error { fmt.Printf(" Current Version: %s\n", cfg.Updates.CurrentVersion) fmt.Printf(" Manager Version: %s\n", appVersion) fmt.Printf(" Auto-upgrade: %v\n", cfg.Updates.AutoUpgrade) - printPreflightStatus(home) // Clean up stale PID file if err := os.Remove(pidPath); err != nil && !os.IsNotExist(err) { log.Printf("Warning: failed to remove stale PID file: %v", err) @@ -104,7 +62,6 @@ func runStatus(cmd *cobra.Command, args []string) error { fmt.Printf(" Current Version: %s\n", cfg.Updates.CurrentVersion) fmt.Printf(" Manager Version: %s\n", appVersion) fmt.Printf(" Auto-upgrade: %v\n", cfg.Updates.AutoUpgrade) - printPreflightStatus(home) return nil } diff --git a/sn-manager/go.mod b/sn-manager/go.mod index 4f581bf3..33d40446 100644 --- a/sn-manager/go.mod +++ b/sn-manager/go.mod @@ -10,163 +10,26 @@ replace ( ) require ( - cosmossdk.io/x/upgrade v0.2.0 github.com/AlecAivazis/survey/v2 v2.3.7 github.com/LumeraProtocol/supernode/v2 v2.4.72 github.com/spf13/cobra v1.10.2 - google.golang.org/grpc v1.80.0 google.golang.org/protobuf v1.36.11 gopkg.in/yaml.v3 v3.0.1 ) require ( - cosmossdk.io/api v0.9.2 // indirect - cosmossdk.io/collections v1.4.0 // indirect - cosmossdk.io/core v0.11.3 // indirect - cosmossdk.io/depinject v1.2.1 // indirect - cosmossdk.io/errors v1.1.0 // indirect - cosmossdk.io/log v1.6.1 // indirect - cosmossdk.io/math v1.5.3 // indirect - cosmossdk.io/schema v1.1.0 // indirect - cosmossdk.io/store v1.1.2 // indirect - cosmossdk.io/x/tx v0.14.0 // indirect - filippo.io/edwards25519 v1.1.1 // indirect - github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect - github.com/99designs/keyring v1.2.2 // indirect - github.com/DataDog/datadog-go v4.8.3+incompatible // indirect - github.com/DataDog/zstd v1.5.7 // indirect - github.com/Microsoft/go-winio v0.6.2 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/bgentry/speakeasy v0.2.0 // indirect - github.com/bytedance/gopkg v0.1.3 // indirect - github.com/bytedance/sonic v1.15.0 // indirect - github.com/bytedance/sonic/loader v0.5.0 // indirect - github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/cloudwego/base64x v0.1.6 // indirect - github.com/cockroachdb/errors v1.12.0 // indirect - github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a // indirect - github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 // indirect - github.com/cockroachdb/pebble v1.1.5 // indirect - github.com/cockroachdb/redact v1.1.6 // indirect - github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.21 // indirect - github.com/cometbft/cometbft-db v0.14.1 // indirect - github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-db v1.1.3 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect - github.com/cosmos/cosmos-sdk v0.53.6 // indirect - github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/gogoproto v1.7.2 // indirect - github.com/cosmos/iavl v1.2.6 // indirect - github.com/cosmos/ics23/go v0.11.0 // indirect - github.com/cosmos/ledger-cosmos-go v1.0.0 // indirect - github.com/danieljoos/wincred v1.2.2 // indirect - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect - github.com/desertbit/timer v1.0.1 // indirect - github.com/dgraph-io/badger/v4 v4.2.0 // indirect - github.com/dgraph-io/ristretto v0.2.0 // indirect - github.com/dustin/go-humanize v1.0.1 // indirect - github.com/dvsekhvalnov/jose2go v1.7.0 // indirect - github.com/emicklei/dot v1.6.2 // indirect - github.com/fatih/color v1.18.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.9.0 // indirect - github.com/getsentry/sentry-go v0.42.0 // indirect - github.com/go-kit/kit v0.13.0 // indirect - github.com/go-kit/log v0.2.1 // indirect - github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/go-viper/mapstructure/v2 v2.5.0 // indirect - github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gogo/googleapis v1.4.1 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect - github.com/golang/protobuf v1.5.4 // indirect - github.com/golang/snappy v1.0.0 // indirect - github.com/google/btree v1.1.3 // indirect - github.com/google/flatbuffers v24.3.25+incompatible // indirect - github.com/google/go-cmp v0.7.0 // indirect - github.com/gorilla/handlers v1.5.2 // indirect - github.com/gorilla/mux v1.8.1 // indirect - github.com/gorilla/websocket v1.5.3 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect - github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirect - github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/hashicorp/go-hclog v1.6.3 // indirect - github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.4 // indirect - github.com/hashicorp/go-plugin v1.6.3 // indirect - github.com/hashicorp/golang-lru v1.0.2 // indirect - github.com/hashicorp/yamux v0.1.2 // indirect - github.com/hdevalence/ed25519consensus v0.2.0 // indirect - github.com/huandu/skiplist v1.2.1 // indirect - github.com/iancoleman/strcase v0.3.0 // indirect - github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jmhodges/levigo v1.0.0 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect - github.com/klauspost/compress v1.18.4 // indirect - github.com/klauspost/cpuid/v2 v2.2.10 // indirect - github.com/kr/pretty v0.3.1 // indirect - github.com/kr/text v0.2.0 // indirect - github.com/linxGnu/grocksdb v1.9.8 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.22 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect - github.com/mtibben/percent v0.2.1 // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect - github.com/oklog/run v1.1.0 // indirect - github.com/pelletier/go-toml/v2 v2.2.4 // indirect - github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_golang v1.23.2 // indirect - github.com/prometheus/client_model v0.6.2 // indirect - github.com/prometheus/common v0.67.5 // indirect - github.com/prometheus/procfs v0.19.2 // indirect - github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/rogpeppe/go-internal v1.14.1 // indirect - github.com/rs/cors v1.11.1 // indirect - github.com/rs/zerolog v1.34.0 // indirect - github.com/sagikazarmark/locafero v0.11.0 // indirect - github.com/sasha-s/go-deadlock v0.3.5 // indirect - github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect - github.com/spf13/afero v1.15.0 // indirect - github.com/spf13/cast v1.10.0 // indirect github.com/spf13/pflag v1.0.10 // indirect - github.com/spf13/viper v1.21.0 // indirect - github.com/stretchr/testify v1.11.1 // indirect - github.com/subosito/gotenv v1.6.0 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect - github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.8.1 // indirect - github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/zondax/golem v0.27.0 // indirect - github.com/zondax/hid v0.9.2 // indirect - github.com/zondax/ledger-go v1.0.1 // indirect - go.etcd.io/bbolt v1.4.0-alpha.1 // indirect - go.opencensus.io v0.24.0 // indirect - go.uber.org/multierr v1.11.0 // indirect - go.uber.org/zap v1.27.0 // indirect - go.yaml.in/yaml/v2 v2.4.3 // indirect - go.yaml.in/yaml/v3 v3.0.4 // indirect - golang.org/x/arch v0.17.0 // indirect - golang.org/x/crypto v0.50.0 // indirect - golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b // indirect golang.org/x/net v0.53.0 // indirect - golang.org/x/sync v0.20.0 // indirect golang.org/x/sys v0.43.0 // indirect golang.org/x/term v0.42.0 // indirect golang.org/x/text v0.36.0 // indirect - google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260427160629-7cedc36a6bc4 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260427160629-7cedc36a6bc4 // indirect - gotest.tools/v3 v3.5.2 // indirect - nhooyr.io/websocket v1.8.17 // indirect - pgregory.net/rapid v1.2.0 // indirect - sigs.k8s.io/yaml v1.6.0 // indirect + google.golang.org/grpc v1.80.0 // indirect ) diff --git a/sn-manager/go.sum b/sn-manager/go.sum index 3660f4af..78a482c1 100644 --- a/sn-manager/go.sum +++ b/sn-manager/go.sum @@ -1,818 +1,63 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg= -cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU= -cosmossdk.io/collections v1.4.0 h1:b373bkxCxKiRbapxZ42TRmcKJEnBVBebdQVk9I5IkkE= -cosmossdk.io/collections v1.4.0/go.mod h1:gxbieVY3tjbvWlkm3yOXf7sGyDrVi12haZH+sek6whw= -cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo= -cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y= -cosmossdk.io/depinject v1.2.1 h1:eD6FxkIjlVaNZT+dXTQuwQTKZrFZ4UrfCq1RKgzyhMw= -cosmossdk.io/depinject v1.2.1/go.mod h1:lqQEycz0H2JXqvOgVwTsjEdMI0plswI7p6KX+MVqFOM= -cosmossdk.io/errors v1.1.0 h1:X2DSt9JYgH7cuiaDr318aUqIl2z5Lfo/PdGzAtmczUU= -cosmossdk.io/errors v1.1.0/go.mod h1:lnjBmx7etZpMTLnxdspZupH0d9HGRWZhiezDZX2ayyI= -cosmossdk.io/log v1.6.1 h1:YXNwAgbDwMEKwDlCdH8vPcoggma48MgZrTQXCfmMBeI= -cosmossdk.io/log v1.6.1/go.mod h1:gMwsWyyDBjpdG9u2avCFdysXqxq28WJapJvu+vF1y+E= -cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U= -cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ= -cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE= -cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI= -cosmossdk.io/store v1.1.2 h1:3HOZG8+CuThREKv6cn3WSohAc6yccxO3hLzwK6rBC7o= -cosmossdk.io/store v1.1.2/go.mod h1:60rAGzTHevGm592kFhiUVkNC9w7gooSEn5iUBPzHQ6A= -cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA= -cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM= -cosmossdk.io/x/upgrade v0.2.0 h1:ZHy0xny3wBCSLomyhE06+UmQHWO8cYlVYjfFAJxjz5g= -cosmossdk.io/x/upgrade v0.2.0/go.mod h1:DXDtkvi//TrFyHWSOaeCZGBoiGAE6Rs8/0ABt2pcDD0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.1.1 h1:YpjwWWlNmGIDyXOn8zLzqiD+9TyIlPhGFG96P39uBpw= -filippo.io/edwards25519 v1.1.1/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= -github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= -github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= -github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ= github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= -github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.5.7 h1:ybO8RBeh29qrxIhCA9E8gKY6xfONU9T6G6aP9DTKfLE= -github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= -github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= -github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bgentry/speakeasy v0.2.0 h1:tgObeVOf8WAvtuAX6DhJ4xks4CFNwPDZiqzGqIHE51E= -github.com/bgentry/speakeasy v0.2.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.24.3 h1:Bte86SlO3lwPQqww+7BE9ZuUCKIjfqnG5jtEyqA9y9Y= -github.com/bits-and-blooms/bitset v1.24.3/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= -github.com/btcsuite/btcd v0.24.2 h1:aLmxPguqxza+4ag8R1I2nnJjSu2iFn/kqtHTIImswcY= -github.com/btcsuite/btcd/btcec/v2 v2.3.5 h1:dpAlnAwmT1yIBm3exhT1/8iUSD98RDJM5vqJVQDQLiU= -github.com/btcsuite/btcd/btcec/v2 v2.3.5/go.mod h1:m22FrOAiuxl/tht9wIqAoGHcbnCCaPWyauO8y2LGGtQ= -github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= -github.com/btcsuite/btcd/btcutil v1.1.6/go.mod h1:9dFymx8HpuLqBnsPELrImQeTQfKBQqzqGbbV3jK55aE= -github.com/bufbuild/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA= -github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= -github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= -github.com/bytedance/gopkg v0.1.3 h1:TPBSwH8RsouGCBcMBktLt1AymVo2TVsBVCY4b6TnZ/M= -github.com/bytedance/gopkg v0.1.3/go.mod h1:576VvJ+eJgyCzdjS+c4+77QF3p7ubbtiKARP3TxducM= -github.com/bytedance/sonic v1.15.0 h1:/PXeWFaR5ElNcVE84U0dOHjiMHQOwNIx3K4ymzh/uSE= -github.com/bytedance/sonic v1.15.0/go.mod h1:tFkWrPz0/CUCLEF4ri4UkHekCIcdnkqXw9VduqpJh0k= -github.com/bytedance/sonic/loader v0.5.0 h1:gXH3KVnatgY7loH5/TkeVyXPfESoqSBSBEiDd5VjlgE= -github.com/bytedance/sonic/loader v0.5.0/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCcdf5x77udYiSJRo= -github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= -github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= -github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= -github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudwego/base64x v0.1.6 h1:t11wG9AECkCDk5fMSoxmufanudBtJ+/HemLstXDLI2M= -github.com/cloudwego/base64x v0.1.6/go.mod h1:OFcloc187FXDaYHvrNIjxSe8ncn0OOM8gEHfghB2IPU= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= -github.com/cockroachdb/errors v1.12.0 h1:d7oCs6vuIMUQRVbi6jWWWEJZahLCfJpnJSVobd1/sUo= -github.com/cockroachdb/errors v1.12.0/go.mod h1:SvzfYNNBshAVbZ8wzNc/UPK3w1vf0dKDUP41ucAIf7g= -github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a h1:f52TdbU4D5nozMAhO9TvTJ2ZMCXtN4VIAmfrrZ0JXQ4= -github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M= -github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 h1:ASDL+UJcILMqgNeV5jiqR4j+sTuvQNHdf2chuKj1M5k= -github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506/go.mod h1:Mw7HqKr2kdtu6aYGn3tPmAftiP3QPX63LdK/zcariIo= -github.com/cockroachdb/pebble v1.1.5 h1:5AAWCBWbat0uE0blr8qzufZP5tBjkRyy/jWe1QWLnvw= -github.com/cockroachdb/pebble v1.1.5/go.mod h1:17wO9el1YEigxkP/YtV8NtCivQDgoCyBg5c4VR/eOWo= -github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4314= -github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= -github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/coder/websocket v1.8.7 h1:jiep6gmlfP/yq2w1gBoubJEXL9gf8x3bp6lzzX8nJxE= -github.com/coder/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -github.com/cometbft/cometbft v0.38.21 h1:qcIJSH9LiwU5s6ZgKR5eRbsLNucbubfraDs5bzgjtOI= -github.com/cometbft/cometbft v0.38.21/go.mod h1:UCu8dlHqvkAsmAFmWDRWNZJPlu6ya2fTWZlDrWsivwo= -github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= -github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= -github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v1.1.3 h1:7QNT77+vkefostcKkhrzDK9uoIEryzFrU9eoMeaQOPY= -github.com/cosmos/cosmos-db v1.1.3/go.mod h1:kN+wGsnwUJZYn8Sy5Q2O0vCYA99MJllkKASbs6Unb9U= -github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= -github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.53.6 h1:aJeInld7rbsHtH1qLHu2aZJF9t40mGlqp3ylBLDT0HI= -github.com/cosmos/cosmos-sdk v0.53.6/go.mod h1:N6YuprhAabInbT3YGumGDKONbvPX5dNro7RjHvkQoKE= -github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= -github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= -github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= -github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= -github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= -github.com/cosmos/gogoproto v1.7.2 h1:5G25McIraOC0mRFv9TVO139Uh3OklV2hczr13KKVHCA= -github.com/cosmos/gogoproto v1.7.2/go.mod h1:8S7w53P1Y1cHwND64o0BnArT6RmdgIvsBuco6uTllsk= -github.com/cosmos/iavl v1.2.6 h1:Hs3LndJbkIB+rEvToKJFXZvKo6Vy0Ex1SJ54hhtioIs= -github.com/cosmos/iavl v1.2.6/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= -github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= -github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= -github.com/cosmos/ledger-cosmos-go v1.0.0 h1:jNKW89nPf0vR0EkjHG8Zz16h6p3zqwYEOxlHArwgYtw= -github.com/cosmos/ledger-cosmos-go v1.0.0/go.mod h1:mGaw2wDOf+Z6SfRJsMGxU9DIrBa4du0MAiPlpPhLAOE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0= -github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/decred/dcrd/crypto/blake256 v1.1.0 h1:zPMNGQCm0g4QTY27fOCorQW7EryeQ/U0x++OzVrdms8= -github.com/decred/dcrd/crypto/blake256 v1.1.0/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvwDRwnI3hwNaAHRnc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40= -github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/desertbit/timer v1.0.1 h1:yRpYNn5Vaaj6QXecdLMPMJsW81JLiI1eokUft5nBmeo= -github.com/desertbit/timer v1.0.1/go.mod h1:htRrYeY5V/t4iu1xCJ5XsQvp4xve8QulXXctAzxqcwE= -github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= -github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= -github.com/dgraph-io/ristretto v0.2.0 h1:XAfl+7cmoUDWW/2Lx8TGZQjjxIQ2Ley9DSf52dru4WE= -github.com/dgraph-io/ristretto v0.2.0/go.mod h1:8uBHCU/PBV4Ag0CJrP47b9Ofby5dqWNh4FicAdoqFNU= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dvsekhvalnov/jose2go v1.7.0 h1:bnQc8+GMnidJZA8zc6lLEAb4xNrIqHwO+9TzqvtQZPo= -github.com/dvsekhvalnov/jose2go v1.7.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= -github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= -github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= -github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= -github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= -github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= -github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/getsentry/sentry-go v0.42.0 h1:eeFMACuZTbUQf90RE8dE4tXeSe4CZyfvR1MBL7RLEt8= -github.com/getsentry/sentry-go v0.42.0/go.mod h1:eRXCoh3uvmjQLY6qu63BjUZnaBu5L5WhMV1RwYO8W5s= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= -github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= -github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= -github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= -github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= -github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= -github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= -github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= -github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= -github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= -github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= -github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= -github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= -github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= -github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs= -github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= -github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/flatbuffers v24.3.25+incompatible h1:CX395cjN9Kke9mmalRoL3d81AtFUxJM+yDthflgJGkI= -github.com/google/flatbuffers v24.3.25+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= -github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= -github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= -github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= -github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= -github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= -github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk= github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs= -github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= -github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= -github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= -github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-metrics v0.5.4 h1:8mmPiIJkTPPEbAiV97IxdAGNdRdaWwVap1BU6elejKY= -github.com/hashicorp/go-metrics v0.5.4/go.mod h1:CG5yz4NZ/AI/aQt9Ucm/vdBnbh7fvmv4lxZ350i+QQI= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-plugin v1.6.3 h1:xgHB+ZUSYeuJi96WtxEjzi23uh7YQpznjGh0U0UUrwg= -github.com/hashicorp/go-plugin v1.6.3/go.mod h1:MRobyh+Wc/nYy1V4KAXUiYfzxoYhs7V1mlH1Z7iY2h0= -github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= -github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= -github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8= -github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= -github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU= -github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= -github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= -github.com/huandu/skiplist v1.2.1 h1:dTi93MgjwErA/8idWTzIw4Y1kZsMWx35fmI2c8Rij7w= -github.com/huandu/skiplist v1.2.1/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= -github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= -github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= -github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94= -github.com/jhump/protoreflect v1.17.0/go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= -github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.18.4 h1:RPhnKRAQ4Fh8zU2FY/6ZFDwTVTxgJ/EMydqSTzE9a2c= -github.com/klauspost/compress v1.18.4/go.mod h1:R0h/fSBs8DE4ENlcrlib3PsXS61voFxhIs2DeRhCvJ4= -github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE= -github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= -github.com/lib/pq v1.11.2 h1:x6gxUeu39V0BHZiugWe8LXZYZ+Utk7hSJGThs8sdzfs= -github.com/lib/pq v1.11.2/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= -github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= -github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.9.8 h1:vOIKv9/+HKiqJAElJIEYv3ZLcihRxyP7Suu/Mu8Dxjs= -github.com/linxGnu/grocksdb v1.9.8/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk= -github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk= -github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= -github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= -github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.22 h1:j8l17JJ9i6VGPUFUYoTUKPSgKe/83EYU2zBC7YNKMw4= github.com/mattn/go-isatty v0.0.22/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/minio/highwayhash v1.0.3 h1:kbnuUMoHYyVl7szWjSxJnxw11k2U709jqFPPmIUyD6Q= -github.com/minio/highwayhash v1.0.3/go.mod h1:GGYsuwP/fPD6Y9hMiXuapVvlIUEhFhMTh0rxU3ik1LQ= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= -github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY= -github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JXXHc= -github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= -github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= -github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= -github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= -github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= -github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 h1:Dx7Ovyv/SFnMFw3fD4oEoeorXc6saIiQ23LrGLth0Gw= -github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= -github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= -github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= -github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= -github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= -github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= -github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.67.5 h1:pIgK94WWlQt1WLwAC5j2ynLaBRDiinoAb86HZHTUGI4= -github.com/prometheus/common v0.67.5/go.mod h1:SjE/0MzDEEAyrdr5Gqc6G+sXI67maCxzaT3A2+HqjUw= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.19.2 h1:zUMhqEW66Ex7OXIiDkll3tl9a1ZdilUOd/F6ZXw4Vws= -github.com/prometheus/procfs v0.19.2/go.mod h1:M0aotyiemPhBCM0z5w87kL22CxfcH05ZpYlu+b4J7mw= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= -github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= -github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= -github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY= -github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/locafero v0.11.0 h1:1iurJgmM9G3PA/I+wWYIOw/5SyBtxapeHDcg+AAIFXc= -github.com/sagikazarmark/locafero v0.11.0/go.mod h1:nVIGvgyzw595SUSUE6tvCp3YYTeHs15MvlmU87WwIik= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sasha-s/go-deadlock v0.3.5 h1:tNCOEEDG6tBqrNDOX35j/7hL5FcFViG6awUGROb2NsU= -github.com/sasha-s/go-deadlock v0.3.5/go.mod h1:bugP6EGbdGYObIlx7pUZtWqlvo8k9H6vCBBsiChJQ5U= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= -github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= -github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= -github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= -github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY= -github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= -github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= -github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= -github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= -github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= -github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tidwall/btree v1.8.1 h1:27ehoXvm5AG/g+1VxLS1SD3vRhp/H7LuEfwNvddEdmA= -github.com/tidwall/btree v1.8.1/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= -github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/golem v0.27.0 h1:IbBjGIXF3SoGOZHsILJvIM/F/ylwJzMcHAcggiqniPw= -github.com/zondax/golem v0.27.0/go.mod h1:AmorCgJPt00L8xN1VrMBe13PSifoZksnQ1Ge906bu4A= -github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= -github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= -github.com/zondax/ledger-go v1.0.1 h1:Ks/2tz/dOF+dbRynfZ0dEhcdL1lqw43Sa0zMXHpQ3aQ= -github.com/zondax/ledger-go v1.0.1/go.mod h1:j7IgMY39f30apthJYMd1YsHZRqdyu4KbVmUp0nU78X0= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.4.0-alpha.1 h1:3yrqQzbRRPFPdOMWS/QQIVxVnzSkAZQYeWlZFv1kbj4= -go.etcd.io/bbolt v1.4.0-alpha.1/go.mod h1:S/Z/Nm3iuOnyO1W4XuFfPci51Gj6F1Hv0z8hisyYYOw= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= @@ -825,525 +70,52 @@ go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2W go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= -go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= -go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= -go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= -go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= -go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= -golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= -golang.org/x/arch v0.17.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= -golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI= -golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b h1:DXr+pvt3nC887026GRP39Ej11UATqWDmWuS99x26cD0= -golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b/go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= golang.org/x/net v0.53.0 h1:d+qAbo5L0orcWAr0a9JweQpjXF19LMXJE8Ey7hwOdUA= golang.org/x/net v0.53.0/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= -golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= -golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s= golang.org/x/term v0.42.0 h1:UiKe+zDFmJobeJ5ggPwOshJIVt6/Ft0rcfrXZDLWAWY= golang.org/x/term v0.42.0/go.mod h1:Dq/D+snpsbazcBG5+F9Q1n2rXV8Ma+71xEjTRufARgY= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg= golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= -google.golang.org/genproto v0.0.0-20250603155806-513f23925822 h1:rHWScKit0gvAPuOnu87KpaYtjK5zBMLcULh7gxkCXu4= -google.golang.org/genproto v0.0.0-20250603155806-513f23925822/go.mod h1:HubltRL7rMh0LfnQPkMH4NPDFEWp0jw3vixw7jEM53s= google.golang.org/genproto/googleapis/api v0.0.0-20260427160629-7cedc36a6bc4 h1:yOzSCGPx+cp5VO7IxvZ9SBFF7j1tZVcNtlHR2iYKtVo= google.golang.org/genproto/googleapis/api v0.0.0-20260427160629-7cedc36a6bc4/go.mod h1:Q9HWtNeE7tM9npdIsEvqXj1QJIvVoeAV3rtXtS715Cw= google.golang.org/genproto/googleapis/rpc v0.0.0-20260427160629-7cedc36a6bc4 h1:tEkOQcXgF6dH1G+MVKZrfpYvozGrzb91k6ha7jireSM= google.golang.org/genproto/googleapis/rpc v0.0.0-20260427160629-7cedc36a6bc4/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.80.0 h1:Xr6m2WmWZLETvUNvIUmeD5OAagMw3FiKmMlTdViWsHM= google.golang.org/grpc v1.80.0/go.mod h1:ho/dLnxwi3EDJA4Zghp7k2Ec1+c2jqup0bFkw07bwF4= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q= -gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA= -honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= -pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= -sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/sn-manager/internal/updater/preflight.go b/sn-manager/internal/updater/preflight.go deleted file mode 100644 index 0924cb51..00000000 --- a/sn-manager/internal/updater/preflight.go +++ /dev/null @@ -1,185 +0,0 @@ -package updater - -import ( - "context" - "crypto/tls" - "fmt" - "log" - "net/url" - "strings" - "time" - - upgradetypes "cosmossdk.io/x/upgrade/types" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials" - "google.golang.org/grpc/credentials/insecure" -) - -// preflightDecision represents the outcome of a pre-update EVM compatibility check. -type preflightDecision int - -const ( - // preflightAllow: proceed with the normal update flow. - preflightAllow preflightDecision = iota - // preflightBlock: the target version requires evm_key_name but the node - // has not migrated. Refuse to install; keep the current binary in place. - preflightBlock - // preflightRollback: the currently-installed version is already - // EVM-required but the node has not migrated — this node is stuck and - // must be reverted to the last pre-EVM release. - preflightRollback -) - -func (d preflightDecision) String() string { - switch d { - case preflightAllow: - return "allow" - case preflightBlock: - return "block" - case preflightRollback: - return "rollback" - } - return "unknown" -} - -// preflightInputs is the pure predicate input for decidePreflight. Testing -// against this table is the "predicate-refactor" pattern from -// invariant-first-coding §Anti-pattern 6. -type preflightInputs struct { - chainHasEVM bool - evmKeyName string - currentVersion string - targetVersion string -} - -// decidePreflight is a pure function: no I/O, no logging. Given the four -// axes of the invariant table, it returns one of allow/block/rollback plus a -// human-readable reason. -// -// Rollback fires BEFORE block: a stuck node (currently on an EVM-required -// binary with no evm_key_name) is by definition also a would-block condition -// for any forward target, but rollback is the correct remediation. -func decidePreflight(in preflightInputs) (preflightDecision, string) { - if !in.chainHasEVM { - return preflightAllow, "chain has no evm module active" - } - if strings.TrimSpace(in.evmKeyName) != "" { - return preflightAllow, "supernode config has evm_key_name set" - } - if utils.IsV260OrAbove(in.currentVersion) { - return preflightRollback, fmt.Sprintf( - "chain has evm module active, current supernode %s requires evm_key_name but config has none", - in.currentVersion, - ) - } - if utils.IsV260OrAbove(in.targetVersion) { - return preflightBlock, fmt.Sprintf( - "chain has evm module active, target %s requires evm_key_name but config has none", - in.targetVersion, - ) - } - return preflightAllow, "target below evm-required threshold" -} - -// chainEVMProbeTimeout bounds the gRPC dial + ModuleVersions call. -const chainEVMProbeTimeout = 15 * time.Second - -// queryEVMModuleActive dials the Lumera gRPC endpoint at grpcAddr and asks -// whether the "evm" upgrade-module version is reported. Returns: -// -// (true, nil) — chain confirmed to have EVM module -// (false, nil) — chain answered and EVM module is absent -// (false, err) — query failed (dial error, timeout, gRPC error) -// -// The caller MUST treat the error case as "unknown" and fail-open (allow) — -// a transient chain outage must never trigger a block or a rollback. -func queryEVMModuleActive(ctx context.Context, grpcAddr string) (bool, error) { - if strings.TrimSpace(grpcAddr) == "" { - return false, fmt.Errorf("empty grpc_addr") - } - host, useTLS, err := parseGRPCAddr(grpcAddr) - if err != nil { - return false, err - } - - dialCtx, cancel := context.WithTimeout(ctx, chainEVMProbeTimeout) - defer cancel() - - var creds grpc.DialOption - if useTLS { - creds = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{MinVersion: tls.VersionTLS12})) - } else { - creds = grpc.WithTransportCredentials(insecure.NewCredentials()) - } - - conn, err := grpc.DialContext(dialCtx, host, creds, grpc.WithBlock()) - if err != nil { - return false, fmt.Errorf("grpc dial %s: %w", host, err) - } - defer conn.Close() - - client := upgradetypes.NewQueryClient(conn) - resp, err := client.ModuleVersions(dialCtx, &upgradetypes.QueryModuleVersionsRequest{ModuleName: "evm"}) - if err != nil { - return false, fmt.Errorf("ModuleVersions: %w", err) - } - return len(resp.ModuleVersions) > 0, nil -} - -// parseGRPCAddr normalizes a supernode `lumera.grpc_addr` value into a -// (host:port, useTLS) pair. Accepts bare host:port ("grpc.testnet.lumera.io:443"), -// or a URL with scheme ("https://grpc.testnet.lumera.io" → :443 + TLS, -// "http://..." → :80 + no TLS, "grpc://..." → :9090 + no TLS). -func parseGRPCAddr(raw string) (host string, useTLS bool, err error) { - raw = strings.TrimSpace(raw) - if strings.Contains(raw, "://") { - u, uerr := url.Parse(raw) - if uerr != nil { - return "", false, fmt.Errorf("parse grpc_addr %q: %w", raw, uerr) - } - host = u.Host - switch strings.ToLower(u.Scheme) { - case "https", "grpcs": - useTLS = true - if u.Port() == "" { - host = host + ":443" - } - default: - useTLS = false - if u.Port() == "" { - host = host + ":9090" - } - } - return host, useTLS, nil - } - // bare host[:port] — infer TLS from :443 - host = raw - if strings.HasSuffix(host, ":443") { - useTLS = true - } - return host, useTLS, nil -} - -// preflightCheck loads the current runtime state (chain evm status, supernode -// evm_key_name, current installed version) and returns a decision for the -// proposed target version. On chain-query failure it FAILS OPEN (returns -// allow) — a transient chain outage must never cause a block or rollback. -func (u *AutoUpdater) preflightCheck(ctx context.Context, targetVersion string) (preflightDecision, string) { - grpcAddr, _ := utils.ReadSupernodeGRPCAddr() - hasEVM, err := queryEVMModuleActive(ctx, grpcAddr) - if err != nil { - log.Printf("preflight: chain evm probe failed (fail-open): %v", err) - return preflightAllow, "chain unreachable; fail-open" - } - evmKey, _ := utils.ReadSupernodeEVMKeyName() - - in := preflightInputs{ - chainHasEVM: hasEVM, - evmKeyName: evmKey, - currentVersion: u.config.Updates.CurrentVersion, - targetVersion: targetVersion, - } - decision, reason := decidePreflight(in) - return decision, reason -} diff --git a/sn-manager/internal/updater/preflight_test.go b/sn-manager/internal/updater/preflight_test.go deleted file mode 100644 index 56331f66..00000000 --- a/sn-manager/internal/updater/preflight_test.go +++ /dev/null @@ -1,71 +0,0 @@ -package updater - -import ( - "context" - "testing" -) - -func TestDecidePreflight_Table(t *testing.T) { - cases := []struct { - name string - in preflightInputs - want preflightDecision - }{ - {"no-evm chain forward", preflightInputs{false, "", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"no-evm chain already 2.6", preflightInputs{false, "", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"evm no-key forward to 2.6", preflightInputs{true, "", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightBlock}, - {"evm no-key stuck at 2.6", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightRollback}, - {"evm no-key stuck target 2.6.1", preflightInputs{true, "", "v2.6.0-testnet", "v2.6.1-testnet"}, preflightRollback}, - {"evm migrated forward to 2.6", preflightInputs{true, "evm-key", "v2.5.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"evm migrated at 2.6", preflightInputs{true, "evm-key", "v2.6.0-testnet", "v2.6.0-testnet"}, preflightAllow}, - {"evm no-key below threshold 2.5.1", preflightInputs{true, "", "v2.5.0-testnet", "v2.5.1-testnet"}, preflightAllow}, - {"evm no-key below threshold 2.5.0", preflightInputs{true, "", "v2.4.5-testnet", "v2.5.0-testnet"}, preflightAllow}, - } - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - got, reason := decidePreflight(tc.in) - if got != tc.want { - t.Fatalf("decidePreflight(%+v) = %v (%s), want %v", tc.in, got, reason, tc.want) - } - }) - } -} - -func TestParseGRPCAddr(t *testing.T) { - cases := []struct { - in string - wantHost string - wantTLS bool - wantErrSub string - }{ - {"grpc.testnet.lumera.io:443", "grpc.testnet.lumera.io:443", true, ""}, - {"grpc.testnet.lumera.io:9090", "grpc.testnet.lumera.io:9090", false, ""}, - {"https://grpc.testnet.lumera.io", "grpc.testnet.lumera.io:443", true, ""}, - {"https://grpc.testnet.lumera.io:8443", "grpc.testnet.lumera.io:8443", true, ""}, - {"http://localhost:9090", "localhost:9090", false, ""}, - {"localhost:9090", "localhost:9090", false, ""}, - } - for _, tc := range cases { - t.Run(tc.in, func(t *testing.T) { - h, tls, err := parseGRPCAddr(tc.in) - if err != nil { - t.Fatalf("parseGRPCAddr(%q) err=%v", tc.in, err) - } - if h != tc.wantHost || tls != tc.wantTLS { - t.Fatalf("parseGRPCAddr(%q) = (%q,%v), want (%q,%v)", tc.in, h, tls, tc.wantHost, tc.wantTLS) - } - }) - } -} - -// TestQueryEVMModuleActive_FailOpen simulates chain unreachability by passing -// an empty grpc_addr and asserts that the caller sees an error (which the -// preflight then treats as fail-open at the AutoUpdater level). -func TestQueryEVMModuleActive_FailOpenOnEmpty(t *testing.T) { - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, err := queryEVMModuleActive(ctx, "") - if err == nil { - t.Fatalf("expected error for empty grpc_addr") - } -} diff --git a/sn-manager/internal/updater/rollback.go b/sn-manager/internal/updater/rollback.go deleted file mode 100644 index 49054083..00000000 --- a/sn-manager/internal/updater/rollback.go +++ /dev/null @@ -1,188 +0,0 @@ -package updater - -import ( - "fmt" - "log" - "os" - "path/filepath" - "time" - - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/utils" -) - -// rollbackTargetVersion is the HARDCODED rollback target — the last pre-EVM -// testnet release. This is intentionally not dynamic and not configurable: -// the incident that motivated this code shipped because operators trusted -// the update pipeline to pick a target automatically. -const rollbackTargetVersion = "v2.5.0-testnet" - -const ( - updateBlockedLogName = "update-blocked.log" - rolledBackLogName = "rolled-back.log" -) - -// blockLogPath / rollbackLogPath / etc. are exposed via helpers so cmd/status.go -// can read them without duplicating the location literals. -func BlockLogPath(homeDir string) string { return filepath.Join(homeDir, updateBlockedLogName) } -func RollbackLogPath(homeDir string) string { return filepath.Join(homeDir, rolledBackLogName) } - -// writeBlockLog records a preflight block. Written atomically. The mtime of -// the supernode config at the moment of the block is captured so subsequent -// check cycles can detect operator remediation. -func writeBlockLog(homeDir, reason, target string, snCfgMTime time.Time) error { - body := fmt.Sprintf( - "blocked_at: %s\ntarget_version: %s\nreason: %s\nsupernode_config_mtime: %s\nmigration_doc: https://github.com/LumeraProtocol/supernode/blob/master/docs/evm-migration.md\n", - time.Now().UTC().Format(time.RFC3339), - target, - reason, - snCfgMTime.UTC().Format(time.RFC3339Nano), - ) - return writeAtomic(BlockLogPath(homeDir), []byte(body)) -} - -// clearBlockLog is used when the operator has fixed their config (mtime -// advanced past what the block log recorded) so a subsequent update attempt -// is no longer blocked by the sticky marker. -func clearBlockLog(homeDir string) { - if err := os.Remove(BlockLogPath(homeDir)); err != nil && !os.IsNotExist(err) { - log.Printf("preflight: failed to remove stale block log: %v", err) - } -} - -// readBlockLogMTime returns the supernode_config_mtime recorded in an existing -// block log, or the zero time + false if no block log is present or parsable. -func readBlockLogMTime(homeDir string) (time.Time, bool) { - data, err := os.ReadFile(BlockLogPath(homeDir)) - if err != nil { - return time.Time{}, false - } - for _, line := range splitLines(string(data)) { - const prefix = "supernode_config_mtime: " - if len(line) > len(prefix) && line[:len(prefix)] == prefix { - t, err := time.Parse(time.RFC3339Nano, line[len(prefix):]) - if err == nil { - return t, true - } - } - } - return time.Time{}, false -} - -func splitLines(s string) []string { - var out []string - start := 0 - for i := 0; i < len(s); i++ { - if s[i] == '\n' { - out = append(out, s[start:i]) - start = i + 1 - } - } - if start < len(s) { - out = append(out, s[start:]) - } - return out -} - -func writeRollbackLog(homeDir, from, to, reason string) error { - body := fmt.Sprintf( - "rolled_back_at: %s\nrolled_back_from: %s\nrolled_back_to: %s\nreason: %s\nmigration_doc: https://github.com/LumeraProtocol/supernode/blob/master/docs/evm-migration.md\n", - time.Now().UTC().Format(time.RFC3339), - from, - to, - reason, - ) - return writeAtomic(RollbackLogPath(homeDir), []byte(body)) -} - -func writeAtomic(path string, data []byte) error { - tmp := path + ".tmp" - if err := os.WriteFile(tmp, data, 0o644); err != nil { - return err - } - return os.Rename(tmp, path) -} - -// performRollback installs (downloading if necessary) rollbackTargetVersion, -// swaps the current symlink to it, updates sn-manager config, writes the -// rollback log, and drops a .needs_restart marker so the manager monitor -// picks up the swap on its next tick. -// -// The from/reason strings are used for the log only. -func (u *AutoUpdater) performRollback(from, reason string) error { - target := rollbackTargetVersion - - // 1. Ensure the target binary is installed. If not, download it. - if !u.versionMgr.IsVersionInstalled(target) { - if err := u.downloadRollbackTarget(target); err != nil { - return fmt.Errorf("download rollback target %s: %w", target, err) - } - } - - // 2. Activate. - if err := u.versionMgr.SetCurrentVersion(target); err != nil { - return fmt.Errorf("activate rollback target %s: %w", target, err) - } - - // 3. Persist in sn-manager config. - u.config.Updates.CurrentVersion = target - if err := config.Save(u.config, filepath.Join(u.homeDir, "config.yml")); err != nil { - return fmt.Errorf("save sn-manager config: %w", err) - } - - // 4. Rollback log + restart marker. - if err := writeRollbackLog(u.homeDir, from, target, reason); err != nil { - log.Printf("rollback: failed to write rollback log: %v", err) - } - if err := os.WriteFile(filepath.Join(u.homeDir, ".needs_restart"), []byte(target), 0o644); err != nil { - log.Printf("rollback: failed to write restart marker: %v", err) - } - log.Printf("rollback: reverted supernode %s → %s (%s)", from, target, reason) - return nil -} - -// downloadRollbackTarget fetches the rollback release tarball, extracts the -// supernode binary into a temp file, and hands it to versionMgr.InstallVersion. -// Reuses the same tarball-based pipeline as checkAndUpdateCombined; keeps the -// rollback release binary at ~/.sn-manager/binaries//supernode. -func (u *AutoUpdater) downloadRollbackTarget(target string) error { - tarURL, err := u.githubClient.GetReleaseTarballURL(target) - if err != nil { - return fmt.Errorf("get tarball URL: %w", err) - } - - downloadsDir := filepath.Join(u.homeDir, "downloads") - if err := os.MkdirAll(downloadsDir, 0o755); err != nil { - return fmt.Errorf("mkdir downloads: %w", err) - } - - tarPath := filepath.Join(downloadsDir, fmt.Sprintf("rollback-%s.tar.gz", target)) - if err := utils.DownloadFile(tarURL, tarPath, nil); err != nil { - return fmt.Errorf("download tarball: %w", err) - } - defer func() { - if err := os.Remove(tarPath); err != nil && !os.IsNotExist(err) { - log.Printf("rollback: failed to remove tarball: %v", err) - } - }() - - tmpSN := filepath.Join(downloadsDir, fmt.Sprintf("supernode-%s.tmp", target)) - targets := map[string]string{"supernode": tmpSN} - found, err := utils.ExtractMultipleFromTarGz(tarPath, targets) - if err != nil { - return fmt.Errorf("extract: %w", err) - } - if !found["supernode"] { - return fmt.Errorf("supernode binary not found in rollback tarball %s", target) - } - defer func() { - if err := os.Remove(tmpSN); err != nil && !os.IsNotExist(err) { - log.Printf("rollback: failed to remove temp supernode: %v", err) - } - }() - - if err := u.versionMgr.InstallVersion(target, tmpSN); err != nil { - return fmt.Errorf("install: %w", err) - } - return nil -} diff --git a/sn-manager/internal/updater/rollback_test.go b/sn-manager/internal/updater/rollback_test.go deleted file mode 100644 index 9453f93a..00000000 --- a/sn-manager/internal/updater/rollback_test.go +++ /dev/null @@ -1,111 +0,0 @@ -package updater - -import ( - "os" - "path/filepath" - "testing" - "time" - - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/config" - "github.com/LumeraProtocol/supernode/v2/sn-manager/internal/version" -) - -// newTestUpdater constructs an AutoUpdater bound to a temp home directory. -// versionMgr and github client are the real ones — tests either pre-install -// binaries on disk or avoid calling the network code path. -func newTestUpdater(t *testing.T, home string) *AutoUpdater { - t.Helper() - if err := os.MkdirAll(home, 0o755); err != nil { - t.Fatalf("mkdir home: %v", err) - } - cfg := config.DefaultConfig() - cfg.Updates.CurrentVersion = "v2.6.0-testnet" - if err := config.Save(cfg, filepath.Join(home, "config.yml")); err != nil { - t.Fatalf("save cfg: %v", err) - } - return &AutoUpdater{ - config: cfg, - homeDir: home, - versionMgr: version.NewManager(home), - } -} - -// TestPerformRollback_HappyPath pre-installs the rollback target binary on -// disk (avoiding the network path), then asserts that performRollback: -// - swaps the current symlink to the rollback target -// - persists sn-manager config.yml with the rolled-back version -// - writes a .needs_restart marker -// - writes ~/.sn-manager/rolled-back.log -func TestPerformRollback_HappyPath(t *testing.T) { - home := t.TempDir() - u := newTestUpdater(t, home) - - // Pre-install rollback target so downloadRollbackTarget is NOT invoked. - target := rollbackTargetVersion - dir := u.versionMgr.GetVersionDir(target) - if err := os.MkdirAll(dir, 0o755); err != nil { - t.Fatalf("mkdir: %v", err) - } - if err := os.WriteFile(filepath.Join(dir, "supernode"), []byte("#!/bin/sh\nexit 0\n"), 0o755); err != nil { - t.Fatalf("write binary: %v", err) - } - - if err := u.performRollback("v2.6.0-testnet", "unit-test reason"); err != nil { - t.Fatalf("performRollback: %v", err) - } - - // Symlink activated - got, err := u.versionMgr.GetCurrentVersion() - if err != nil { - t.Fatalf("GetCurrentVersion: %v", err) - } - if got != target { - t.Fatalf("current version = %s, want %s", got, target) - } - - // Config persisted - reloaded, err := config.Load(filepath.Join(home, "config.yml")) - if err != nil { - t.Fatalf("reload cfg: %v", err) - } - if reloaded.Updates.CurrentVersion != target { - t.Fatalf("config current_version = %s, want %s", reloaded.Updates.CurrentVersion, target) - } - - // Restart marker - if _, err := os.Stat(filepath.Join(home, ".needs_restart")); err != nil { - t.Fatalf(".needs_restart missing: %v", err) - } - - // Rollback log - logData, err := os.ReadFile(RollbackLogPath(home)) - if err != nil { - t.Fatalf("read rollback log: %v", err) - } - if len(logData) == 0 { - t.Fatalf("rollback log is empty") - } -} - -// TestWriteReadBlockLogMTime round-trips the sticky block marker so the -// updater can detect operator remediation. -func TestWriteReadBlockLogMTime(t *testing.T) { - home := t.TempDir() - mt := time.Date(2026, 7, 6, 8, 40, 0, 0, time.UTC) - if err := writeBlockLog(home, "reason", "v2.6.0-testnet", mt); err != nil { - t.Fatalf("writeBlockLog: %v", err) - } - got, ok := readBlockLogMTime(home) - if !ok { - t.Fatalf("readBlockLogMTime not ok") - } - if !got.Equal(mt) { - t.Fatalf("readBlockLogMTime = %v, want %v", got, mt) - } - - // clearBlockLog removes it - clearBlockLog(home) - if _, ok := readBlockLogMTime(home); ok { - t.Fatalf("expected block log to be cleared") - } -} diff --git a/sn-manager/internal/updater/updater.go b/sn-manager/internal/updater/updater.go index 3c4a48d3..92e616fe 100644 --- a/sn-manager/internal/updater/updater.go +++ b/sn-manager/internal/updater/updater.go @@ -222,59 +222,6 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { } } - // EVM preflight (post-fetch, pre-install). This has two branches: - // - // (1) rollback: the currently-installed supernode is EVM-required and - // the config has no evm_key_name — the node is in a crash loop and - // must be reverted to the pre-EVM release (see rollback.go). - // (2) block: forward-update would install an EVM-required target on a - // node that has no evm_key_name — refuse the install and drop a - // sticky marker until the operator remediates. - // - // Both branches only fire when the chain has the evm module active. - // A chain-query failure fails OPEN (allow) so a transient outage cannot - // itself trigger a block or a rollback. See preflight.go. - // - // The forward-block branch is the ONLY auto-update forward path this - // preflight gates. Operator-explicit code paths in cmd/{start,init,use,get}.go - // intentionally bypass the preflight — the operator is asking for a - // specific version and has accepted the consequences. - pfCtx, pfCancel := context.WithTimeout(context.Background(), chainEVMProbeTimeout+2*time.Second) - decision, reason := u.preflightCheck(pfCtx, latest) - pfCancel() - - if decision == preflightRollback { - from := u.config.Updates.CurrentVersion - if err := u.performRollback(from, reason); err != nil { - log.Printf("rollback failed: %v", err) - } - return - } - - if decision == preflightBlock { - // Sticky: don't retry until the operator changes ~/.supernode/config.yml. - snCfgMTime, _ := utils.SupernodeConfigMTime() - if prevMTime, ok := readBlockLogMTime(u.homeDir); ok { - if snCfgMTime.Equal(prevMTime) { - log.Printf("update to %s blocked (config unchanged since previous block): %s", latest, reason) - return - } - // mtime advanced — operator has touched the config; clear the - // sticky marker and re-evaluate on this pass. The current - // decision was made against the CURRENT config state, so if - // we're still in block state now, re-record. - } - if err := writeBlockLog(u.homeDir, reason, latest, snCfgMTime); err != nil { - log.Printf("failed to write block log: %v", err) - } - log.Printf("update to %s blocked: %s", latest, reason) - return - } - - // decision == preflightAllow: if a stale block-log exists from a - // previous cycle, clear it so `sn-manager status` reflects reality. - clearBlockLog(u.homeDir) - // Determine if sn-manager should update (same criteria: stable, same major) managerNeedsUpdate := false ver := strings.TrimSpace(u.managerVersion) diff --git a/sn-manager/internal/utils/chain_id.go b/sn-manager/internal/utils/chain_id.go index d8b4dabe..af688978 100644 --- a/sn-manager/internal/utils/chain_id.go +++ b/sn-manager/internal/utils/chain_id.go @@ -5,7 +5,6 @@ import ( "os" "path/filepath" "strings" - "time" "github.com/LumeraProtocol/supernode/v2/pkg/github" "gopkg.in/yaml.v3" @@ -23,37 +22,23 @@ func SupernodeConfigPath() string { return filepath.Join(home, ".supernode", "config.yml") } -// supernodeYAML captures the fields sn-manager reads from ~/.supernode/config.yml. -// Keep this struct in sync with new preflight/rollback readers below. -type supernodeYAML struct { - Supernode struct { - EVMKeyName string `yaml:"evm_key_name"` - } `yaml:"supernode"` - Lumera struct { - ChainID string `yaml:"chain_id"` - GRPCAddr string `yaml:"grpc_addr"` - } `yaml:"lumera"` -} - -func readSupernodeYAML() (*supernodeYAML, string, error) { +// ReadSupernodeChainID reads lumera.chain_id from the SuperNode config file. +func ReadSupernodeChainID() (string, error) { path := SupernodeConfigPath() data, err := os.ReadFile(path) if err != nil { - return nil, path, err + return "", err + } + + var cfg struct { + Lumera struct { + ChainID string `yaml:"chain_id"` + } `yaml:"lumera"` } - var cfg supernodeYAML if err := yaml.Unmarshal(data, &cfg); err != nil { - return nil, path, fmt.Errorf("failed to parse supernode config %s: %w", path, err) + return "", fmt.Errorf("failed to parse supernode config %s: %w", path, err) } - return &cfg, path, nil -} -// ReadSupernodeChainID reads lumera.chain_id from the SuperNode config file. -func ReadSupernodeChainID() (string, error) { - cfg, path, err := readSupernodeYAML() - if err != nil { - return "", err - } chainID := strings.TrimSpace(cfg.Lumera.ChainID) if chainID == "" { return "", fmt.Errorf("chain_id not set in %s", path) @@ -61,37 +46,6 @@ func ReadSupernodeChainID() (string, error) { return chainID, nil } -// ReadSupernodeEVMKeyName returns supernode.evm_key_name (trimmed). An empty -// string is returned if the field is absent or empty. It is NOT an error for -// the field to be missing — an unmigrated node is the exact condition the -// preflight/rollback logic looks for. -func ReadSupernodeEVMKeyName() (string, error) { - cfg, _, err := readSupernodeYAML() - if err != nil { - return "", err - } - return strings.TrimSpace(cfg.Supernode.EVMKeyName), nil -} - -// ReadSupernodeGRPCAddr returns lumera.grpc_addr (trimmed). Empty if unset. -func ReadSupernodeGRPCAddr() (string, error) { - cfg, _, err := readSupernodeYAML() - if err != nil { - return "", err - } - return strings.TrimSpace(cfg.Lumera.GRPCAddr), nil -} - -// SupernodeConfigMTime returns the modification time of ~/.supernode/config.yml. -// Used by the preflight to detect operator remediation between check cycles. -func SupernodeConfigMTime() (time.Time, error) { - info, err := os.Stat(SupernodeConfigPath()) - if err != nil { - return time.Time{}, err - } - return info.ModTime(), nil -} - func IsTestnetChainID(chainID string) bool { return strings.Contains(strings.ToLower(chainID), "testnet") } diff --git a/sn-manager/internal/utils/chain_id_test.go b/sn-manager/internal/utils/chain_id_test.go index 6094306e..b691217e 100644 --- a/sn-manager/internal/utils/chain_id_test.go +++ b/sn-manager/internal/utils/chain_id_test.go @@ -41,49 +41,6 @@ func TestReadSupernodeChainID(t *testing.T) { } } -func TestReadSupernodeEVMKeyName(t *testing.T) { - tmp := t.TempDir() - t.Setenv("HOME", tmp) - cfgDir := filepath.Join(tmp, ".supernode") - if err := os.MkdirAll(cfgDir, 0o755); err != nil { - t.Fatal(err) - } - cfgPath := filepath.Join(cfgDir, "config.yml") - - // missing → empty, no error - if err := os.WriteFile(cfgPath, []byte("lumera:\n chain_id: lumera-testnet-2\n"), 0o644); err != nil { - t.Fatal(err) - } - if got, err := ReadSupernodeEVMKeyName(); err != nil || got != "" { - t.Fatalf("expected empty, got %q err=%v", got, err) - } - - // present - if err := os.WriteFile(cfgPath, []byte("supernode:\n evm_key_name: my-evm-key\nlumera:\n chain_id: lumera-testnet-2\n"), 0o644); err != nil { - t.Fatal(err) - } - if got, err := ReadSupernodeEVMKeyName(); err != nil || got != "my-evm-key" { - t.Fatalf("got %q err=%v", got, err) - } -} - -func TestReadSupernodeGRPCAddr(t *testing.T) { - tmp := t.TempDir() - t.Setenv("HOME", tmp) - cfgDir := filepath.Join(tmp, ".supernode") - if err := os.MkdirAll(cfgDir, 0o755); err != nil { - t.Fatal(err) - } - cfgPath := filepath.Join(cfgDir, "config.yml") - if err := os.WriteFile(cfgPath, []byte("lumera:\n chain_id: lumera-testnet-2\n grpc_addr: grpc.testnet.lumera.io:443\n"), 0o644); err != nil { - t.Fatal(err) - } - got, err := ReadSupernodeGRPCAddr() - if err != nil || got != "grpc.testnet.lumera.io:443" { - t.Fatalf("got %q err=%v", got, err) - } -} - func TestReadSupernodeChainID_MissingOrEmpty(t *testing.T) { tmp := t.TempDir() t.Setenv("HOME", tmp) diff --git a/sn-manager/internal/utils/semver.go b/sn-manager/internal/utils/semver.go index a3aa79c5..48837a44 100644 --- a/sn-manager/internal/utils/semver.go +++ b/sn-manager/internal/utils/semver.go @@ -85,43 +85,6 @@ func CompareVersions(v1, v2 string) int { return 0 } -// CompareCoreVersions compares two SemVer versions ignoring any prerelease -// suffix. It returns -1, 0, or 1 per the usual convention. This exists so -// range-gates like "target >= v2.6.0" can be evaluated against tags like -// "v2.6.0-testnet" — under strict SemVer the prerelease has LOWER precedence -// than the same core release, but for our forward-block gate we want the -// prerelease to satisfy the >= v2.6.0 threshold. -func CompareCoreVersions(v1, v2 string) int { - p1 := parseSemver(v1) - p2 := parseSemver(v2) - if p1.major != p2.major { - if p1.major < p2.major { - return -1 - } - return 1 - } - if p1.minor != p2.minor { - if p1.minor < p2.minor { - return -1 - } - return 1 - } - if p1.patch != p2.patch { - if p1.patch < p2.patch { - return -1 - } - return 1 - } - return 0 -} - -// IsV260OrAbove reports whether tag's core version is >= v2.6.0, ignoring -// prerelease suffixes. Used by the EVM preflight to decide whether a target -// requires a migrated evm_key_name. -func IsV260OrAbove(tag string) bool { - return CompareCoreVersions(tag, "v2.6.0") >= 0 -} - // SameMajor reports whether two versions have the same major component. // It ignores leading 'v', build metadata, and pre-release suffixes when // determining the major version. diff --git a/sn-manager/internal/utils/semver_test.go b/sn-manager/internal/utils/semver_test.go index a664ed89..2968a0cf 100644 --- a/sn-manager/internal/utils/semver_test.go +++ b/sn-manager/internal/utils/semver_test.go @@ -66,23 +66,3 @@ func TestSameMajor(t *testing.T) { } } } - -func TestIsV260OrAbove(t *testing.T) { - cases := []struct { - tag string - want bool - }{ - {"v2.6.0", true}, - {"v2.6.0-testnet", true}, - {"v2.6.1-testnet", true}, - {"v2.5.0-testnet", false}, - {"v2.5.99", false}, - {"v3.0.0", true}, - {"v1.0.0", false}, - } - for _, tc := range cases { - if got := IsV260OrAbove(tc.tag); got != tc.want { - t.Fatalf("IsV260OrAbove(%q) = %v, want %v", tc.tag, got, tc.want) - } - } -} From 842a5ef11633a63b4f2bcd93dd9a367cb7e06b5c Mon Sep 17 00:00:00 2001 From: Matee ullah Malik <46045452+mateeullahmalik@users.noreply.github.com> Date: Sun, 26 Jul 2026 02:47:10 +0500 Subject: [PATCH 3/3] fix(sn-manager): gate unprepared v2.6 upgrades (#315) --- sn-manager/internal/updater/updater.go | 38 +++++++++++++++++++++ sn-manager/internal/updater/updater_test.go | 31 ++++++++++++++++- sn-manager/internal/utils/chain_id.go | 20 +++++++++++ sn-manager/internal/utils/chain_id_test.go | 35 +++++++++++++++++++ 4 files changed, 123 insertions(+), 1 deletion(-) diff --git a/sn-manager/internal/updater/updater.go b/sn-manager/internal/updater/updater.go index 92e616fe..e51f83a7 100644 --- a/sn-manager/internal/updater/updater.go +++ b/sn-manager/internal/updater/updater.go @@ -31,8 +31,31 @@ const ( // forceUpdateAfter is the age threshold after a release is published // beyond which updates are applied regardless of normal gates (idle, policy) forceUpdateAfter = 10 * time.Minute + // evmUpgradeMinVersion is the first SuperNode line that requires migration + // preparation before a pre-EVM node may update automatically. + evmUpgradeMinVersion = "v2.6.0" ) +func versionCore(version string) string { + version = strings.TrimSpace(version) + if i := strings.IndexByte(version, '-'); i >= 0 { + return version[:i] + } + return version +} + +func crossesEVMUpgradeBoundary(currentVersion, targetVersion string) bool { + return utils.CompareVersions(versionCore(currentVersion), evmUpgradeMinVersion) < 0 && + utils.CompareVersions(versionCore(targetVersion), evmUpgradeMinVersion) >= 0 +} + +func shouldBlockEVMUpgrade(currentVersion, targetVersion, evmKeyName string, configErr error) bool { + if !crossesEVMUpgradeBoundary(currentVersion, targetVersion) { + return false + } + return configErr != nil || strings.TrimSpace(evmKeyName) == "" +} + type AutoUpdater struct { config *config.Config homeDir string @@ -248,6 +271,21 @@ func (u *AutoUpdater) checkAndUpdateCombined(force bool) { return } + // A pre-v2.6 SuperNode must not cross the EVM boundary automatically until + // its transitional evm_key_name is configured. Already-v2.6 nodes are not + // gated because successful migration intentionally clears this field. + if crossesEVMUpgradeBoundary(currentSN, latest) { + evmKeyName, configErr := utils.ReadSupernodeEVMKeyName() + if shouldBlockEVMUpgrade(currentSN, latest, evmKeyName, configErr) { + if configErr != nil { + log.Printf("Automatic update to %s blocked: cannot read SuperNode evm_key_name: %v", latest, configErr) + } else { + log.Printf("Automatic update to %s blocked: supernode.evm_key_name is missing or empty", latest) + } + return + } + } + // Gate all updates (manager + SuperNode) on gateway idleness // to avoid disrupting traffic during a self-update. if !force { diff --git a/sn-manager/internal/updater/updater_test.go b/sn-manager/internal/updater/updater_test.go index bfb3dae4..e9f34dc6 100644 --- a/sn-manager/internal/updater/updater_test.go +++ b/sn-manager/internal/updater/updater_test.go @@ -1,6 +1,35 @@ package updater -import "testing" +import ( + "errors" + "testing" +) + +func TestShouldBlockEVMUpgrade(t *testing.T) { + tests := []struct { + name string + current string + target string + evmKeyName string + configErr error + want bool + }{ + {name: "missing key blocks 2.6 boundary", current: "v2.5.2", target: "v2.6.0", want: true}, + {name: "empty testnet key blocks 2.6 boundary", current: "v2.5.2-testnet", target: "v2.6.0-testnet", evmKeyName: " ", want: true}, + {name: "config read failure blocks 2.6 boundary", current: "v2.5.2", target: "v2.6.0", configErr: errors.New("read failed"), want: true}, + {name: "configured key allows 2.6 boundary", current: "v2.5.2", target: "v2.6.0", evmKeyName: "evm-key", want: false}, + {name: "missing key does not block 2.5 update", current: "v2.5.1", target: "v2.5.2", want: false}, + {name: "post-migration missing key does not roll back or block", current: "v2.6.0", target: "v2.6.1", want: false}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := shouldBlockEVMUpgrade(tt.current, tt.target, tt.evmKeyName, tt.configErr); got != tt.want { + t.Fatalf("shouldBlockEVMUpgrade(%q, %q, %q, %v) = %v, want %v", tt.current, tt.target, tt.evmKeyName, tt.configErr, got, tt.want) + } + }) + } +} func TestShouldUpdate_TestnetTagAdvances(t *testing.T) { u := &AutoUpdater{} diff --git a/sn-manager/internal/utils/chain_id.go b/sn-manager/internal/utils/chain_id.go index af688978..0cd1a154 100644 --- a/sn-manager/internal/utils/chain_id.go +++ b/sn-manager/internal/utils/chain_id.go @@ -46,6 +46,26 @@ func ReadSupernodeChainID() (string, error) { return chainID, nil } +// ReadSupernodeEVMKeyName returns the transitional migration key configured in +// ~/.supernode/config.yml. Missing and blank values return an empty string. +func ReadSupernodeEVMKeyName() (string, error) { + path := SupernodeConfigPath() + data, err := os.ReadFile(path) + if err != nil { + return "", err + } + + var cfg struct { + Supernode struct { + EVMKeyName string `yaml:"evm_key_name"` + } `yaml:"supernode"` + } + if err := yaml.Unmarshal(data, &cfg); err != nil { + return "", fmt.Errorf("failed to parse supernode config %s: %w", path, err) + } + return strings.TrimSpace(cfg.Supernode.EVMKeyName), nil +} + func IsTestnetChainID(chainID string) bool { return strings.Contains(strings.ToLower(chainID), "testnet") } diff --git a/sn-manager/internal/utils/chain_id_test.go b/sn-manager/internal/utils/chain_id_test.go index b691217e..f4a2900b 100644 --- a/sn-manager/internal/utils/chain_id_test.go +++ b/sn-manager/internal/utils/chain_id_test.go @@ -65,6 +65,41 @@ func TestReadSupernodeChainID_MissingOrEmpty(t *testing.T) { } } +func TestReadSupernodeEVMKeyName(t *testing.T) { + tests := []struct { + name string + yaml string + want string + }{ + {name: "missing", yaml: "supernode:\n key_name: legacy\n"}, + {name: "empty", yaml: "supernode:\n evm_key_name: \"\"\n"}, + {name: "whitespace", yaml: "supernode:\n evm_key_name: \" \"\n"}, + {name: "present", yaml: "supernode:\n evm_key_name: evm-key\n", want: "evm-key"}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + home := t.TempDir() + t.Setenv("HOME", home) + cfgDir := filepath.Join(home, ".supernode") + if err := os.MkdirAll(cfgDir, 0o755); err != nil { + t.Fatal(err) + } + if err := os.WriteFile(filepath.Join(cfgDir, "config.yml"), []byte(tt.yaml), 0o644); err != nil { + t.Fatal(err) + } + + got, err := ReadSupernodeEVMKeyName() + if err != nil { + t.Fatalf("ReadSupernodeEVMKeyName: %v", err) + } + if got != tt.want { + t.Fatalf("ReadSupernodeEVMKeyName() = %q, want %q", got, tt.want) + } + }) + } +} + func TestLatestTestnetRelease_IgnoresDrafts(t *testing.T) { client := &githubtestutil.FakeClient{ Releases: []*github.Release{