From 79047f9617a10831fb905ba0f54ba2d69a9ca19a Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 16 Nov 2026 04:30:38 +1100 Subject: [PATCH] feat(incus): a connector that lists containers, runs allow-listed read-only commands, snapshots them and deletes confined caches (archie #1981) --- connectors/incus/client.go | 159 +++++++++++++ connectors/incus/incus.go | 419 +++++++++++++++++++++++++++++++++ connectors/incus/incus_test.go | 196 +++++++++++++++ connectors/incus/main.go | 14 ++ connectors/incus/package.yaml | 11 + go.mod | 26 ++ go.sum | 106 +++++++++ 7 files changed, 931 insertions(+) create mode 100644 connectors/incus/client.go create mode 100644 connectors/incus/incus.go create mode 100644 connectors/incus/incus_test.go create mode 100644 connectors/incus/main.go create mode 100644 connectors/incus/package.yaml diff --git a/connectors/incus/client.go b/connectors/incus/client.go new file mode 100644 index 0000000..0f88d62 --- /dev/null +++ b/connectors/incus/client.go @@ -0,0 +1,159 @@ +package main + +import ( + "context" + "errors" + "fmt" + "io" + "sync" + "time" + + incus "github.com/lxc/incus/v6/client" + "github.com/lxc/incus/v6/shared/api" +) + +// maxOutput caps what one command may return to the agent. +const maxOutput = 64 << 10 + +type instance struct { + Name string + Status string +} + +type snapshot struct { + Name string + Created time.Time +} + +type execResult struct { + Stdout string + Exit int +} + +// incusAPI is the part of Incus the connector uses, so the checks around it +// can be tested without a server. +type incusAPI interface { + Instances(ctx context.Context, project string) ([]instance, error) + Snapshots(ctx context.Context, project, name string) ([]snapshot, error) + Snapshot(ctx context.Context, project, name, snap string) error + // Exec runs argv directly, with no shell. + Exec(ctx context.Context, project, name string, argv []string) (execResult, error) +} + +// remote is the official client connected over HTTPS. The server certificate +// is pinned: any other certificate is refused. +type remote struct { + endpoint string + args incus.ConnectionArgs + + mu sync.Mutex + server incus.InstanceServer +} + +func newRemote(endpoint, serverCert, clientCert, clientKey string) *remote { + return &remote{endpoint: endpoint, args: incus.ConnectionArgs{ + TLSServerCert: serverCert, TLSClientCert: clientCert, TLSClientKey: clientKey, + IdenticalCertificate: true, UserAgent: "archipelago-incus", + }} +} + +func (r *remote) project(project string) (incus.InstanceServer, error) { + r.mu.Lock() + defer r.mu.Unlock() + if r.server == nil { + s, err := incus.ConnectIncus(r.endpoint, &r.args) + if err != nil { + return nil, fmt.Errorf("connect %s: %w", r.endpoint, err) + } + r.server = s + } + return r.server.UseProject(project), nil +} + +func (r *remote) Instances(_ context.Context, project string) ([]instance, error) { + s, err := r.project(project) + if err != nil { + return nil, err + } + list, err := s.GetInstances(api.InstanceTypeContainer) + if err != nil { + return nil, err + } + out := make([]instance, 0, len(list)) + for _, i := range list { + out = append(out, instance{Name: i.Name, Status: i.Status}) + } + return out, nil +} + +func (r *remote) Snapshots(_ context.Context, project, name string) ([]snapshot, error) { + s, err := r.project(project) + if err != nil { + return nil, err + } + list, err := s.GetInstanceSnapshots(name) + if err != nil { + return nil, err + } + out := make([]snapshot, 0, len(list)) + for _, sn := range list { + out = append(out, snapshot{Name: sn.Name, Created: sn.CreatedAt}) + } + return out, nil +} + +func (r *remote) Snapshot(_ context.Context, project, name, snap string) error { + s, err := r.project(project) + if err != nil { + return err + } + op, err := s.CreateInstanceSnapshot(name, api.InstanceSnapshotsPost{Name: snap}) + if err != nil { + return err + } + return op.Wait() +} + +func (r *remote) Exec(_ context.Context, project, name string, argv []string) (execResult, error) { + s, err := r.project(project) + if err != nil { + return execResult{}, err + } + out := &capped{limit: maxOutput} + done := make(chan bool) + op, err := s.ExecInstance(name, api.InstanceExecPost{Command: argv, WaitForWS: true}, &incus.InstanceExecArgs{ + Stdin: eof{}, Stdout: out, Stderr: io.Discard, DataDone: done, + }) + if err != nil { + return execResult{}, err + } + if err := op.Wait(); err != nil { + return execResult{}, err + } + <-done + code, ok := op.Get().Metadata["return"].(float64) + if !ok { + return execResult{}, errors.New("exec returned no exit code") + } + return execResult{Stdout: out.String(), Exit: int(code)}, nil +} + +// eof is an empty standard input. +type eof struct{} + +func (eof) Read([]byte) (int, error) { return 0, io.EOF } + +// capped keeps the first limit bytes and discards the rest. +type capped struct { + limit int + buf []byte +} + +func (c *capped) Write(p []byte) (int, error) { + if room := c.limit - len(c.buf); room > 0 { + c.buf = append(c.buf, p[:min(room, len(p))]...) + } + return len(p), nil +} + +func (c *capped) String() string { return string(c.buf) } diff --git a/connectors/incus/incus.go b/connectors/incus/incus.go new file mode 100644 index 0000000..5e8bb62 --- /dev/null +++ b/connectors/incus/incus.go @@ -0,0 +1,419 @@ +package main + +import ( + "context" + "crypto/sha256" + "encoding/hex" + "encoding/json/jsontext" + json "encoding/json/v2" + "errors" + "fmt" + "maps" + "net/url" + "path" + "regexp" + "slices" + "strings" + "time" + + "github.com/samcharles93/archipelago/sdk/connector" + connectorv1 "github.com/samcharles93/archipelago/sdk/connector/v1" +) + +const ( + actionSnapshot = "snapshot_container" + actionDeleteCache = "delete_cache" + lookupList = "list_containers" + lookupCommand = "run_command" + targetKind = "container" +) + +// Container is one container the connector may act on, from the containers +// setting. A container not listed is never touched. +type Container struct { + Project string `json:"project"` + Name string `json:"name"` + // Environment overrides default_environment for this container. + Environment string `json:"environment"` + // CachePaths are the absolute directories delete_cache may remove + // something under. The directories themselves are never removed. + CachePaths []string `json:"cache_paths"` +} + +// Command is one entry of the read-only allow-list: a name the agent asks +// for and the fixed argv it runs. The agent supplies no argument. +type Command struct { + Name string `json:"name"` + Argv []string `json:"argv"` +} + +var validName = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$`) + +type incusConnector struct { + api incusAPI + containers map[string]Container + projects []string + commands map[string]Command + defaultEnv string + snapshotAge time.Duration + now func() time.Time +} + +func newIncus(cfg connector.Config) (*incusConnector, error) { + u, err := url.Parse(cfg.Settings["endpoint"]) + if err != nil || u.Scheme != "https" || u.Host == "" { + return nil, fmt.Errorf("endpoint %q must be an https URL", cfg.Settings["endpoint"]) + } + serverCert := cfg.Settings["server_certificate"] + clientCert, clientKey := cfg.Secrets["client.certificate"], cfg.Secrets["client.key"] + if serverCert == "" { + return nil, errors.New("server_certificate must pin the server's certificate") + } + if clientCert == "" || clientKey == "" { + return nil, errors.New("the client credential slot needs a certificate and a key") + } + return configure(cfg.Settings, newRemote(u.String(), serverCert, clientCert, clientKey)) +} + +// configure validates the settings that decide where the connector may act. +func configure(settings map[string]string, api incusAPI) (*incusConnector, error) { + var containers []Container + var commands []Command + if err := json.Unmarshal([]byte(settings["containers"]), &containers, json.RejectUnknownMembers(true)); err != nil { + return nil, fmt.Errorf("containers setting: %w", err) + } + if s := settings["commands"]; s != "" { + if err := json.Unmarshal([]byte(s), &commands, json.RejectUnknownMembers(true)); err != nil { + return nil, fmt.Errorf("commands setting: %w", err) + } + } + c := &incusConnector{ + api: api, containers: map[string]Container{}, commands: map[string]Command{}, + defaultEnv: settings["default_environment"], now: time.Now, + } + if w := settings["snapshot_window"]; w != "" { + d, err := time.ParseDuration(w) + if err != nil || d <= 0 { + return nil, fmt.Errorf("snapshot_window %q must be a positive duration", w) + } + c.snapshotAge = d + } + for _, ct := range containers { + if !validName.MatchString(ct.Project) || !validName.MatchString(ct.Name) { + return nil, fmt.Errorf("container %q in project %q needs valid names", ct.Name, ct.Project) + } + for i, p := range ct.CachePaths { + if !path.IsAbs(p) || path.Clean(p) == "/" || hasControl(p) { + return nil, fmt.Errorf("container %q: cache path %q must be absolute and not the root", ct.Name, p) + } + ct.CachePaths[i] = path.Clean(p) + } + c.containers[key(ct.Project, ct.Name)] = ct + if !slices.Contains(c.projects, ct.Project) { + c.projects = append(c.projects, ct.Project) + } + } + slices.Sort(c.projects) + for _, cmd := range commands { + if !validName.MatchString(cmd.Name) || len(cmd.Argv) == 0 || !path.IsAbs(cmd.Argv[0]) { + return nil, fmt.Errorf("command %q needs a name and an argv starting with an absolute program path", cmd.Name) + } + c.commands[cmd.Name] = cmd + } + return c, nil +} + +func key(project, name string) string { return project + "/" + name } + +func hasControl(s string) bool { + return strings.ContainsFunc(s, func(r rune) bool { return r < 0x20 || r == 0x7f }) +} + +func (c *incusConnector) Describe() connector.Description { + cmds := slices.Sorted(maps.Keys(c.commands)) + cmdSchema, _ := json.Marshal(map[string]any{ + "type": "object", "additionalProperties": false, "required": []string{"project", "container", "command"}, + "properties": map[string]any{ + "project": map[string]any{"type": "string"}, "container": map[string]any{"type": "string"}, + "command": map[string]any{"type": "string", "enum": cmds, "description": "The name of an allowed read-only command."}, + }, + }) + return connector.Description{ + Lookups: []*connectorv1.LookupType{ + { + Name: lookupList, Description: "Containers in a project with their state.", + InputSchema: []byte(`{"type":"object","required":["project"],"additionalProperties":false,"properties":{"project":{"type":"string"}}}`), + }, + { + Name: lookupCommand, Description: "Run an allowed read-only command inside a container and return its exit code and output.", + InputSchema: cmdSchema, + }, + }, + Actions: []*connectorv1.ActionType{ + { + Name: actionSnapshot, Description: "Take a snapshot of a container.", + InputSchema: []byte(`{"type":"object","required":["project","container"],"additionalProperties":false,"properties":{"project":{"type":"string"},"container":{"type":"string"}}}`), + Effect: &connectorv1.Effect{ + Reversibility: connectorv1.Reversibility_REVERSIBILITY_UNDONE_AUTOMATICALLY, + Summary: "Takes a snapshot of the container; the snapshot can be deleted to undo it.", + }, + Idempotent: true, + }, + { + Name: actionDeleteCache, Description: "Delete a cache directory or file inside a container, under one of the container's allowed cache paths.", + InputSchema: []byte(`{"type":"object","required":["project","container","path"],"additionalProperties":false,"properties":{"project":{"type":"string"},"container":{"type":"string"},"path":{"type":"string","description":"An absolute path under an allowed cache path."}}}`), + Effect: &connectorv1.Effect{ + Reversibility: connectorv1.Reversibility_REVERSIBILITY_IRREVERSIBLE, + Summary: "Deletes the path and everything under it inside the container; recoverable only from a recent snapshot.", + }, + Idempotent: true, + }, + }, + } +} + +type ref struct { + Project string `json:"project"` + Container string `json:"container"` +} + +type deleteInput struct { + ref + Path string `json:"path"` +} + +type commandInput struct { + ref + Command string `json:"command"` +} + +func decode(raw jsontext.Value, in any) error { + if err := json.Unmarshal(raw, in, json.RejectUnknownMembers(true)); err != nil { + return fmt.Errorf("input: %w", err) + } + return nil +} + +func (c *incusConnector) container(r ref) (Container, error) { + ct, ok := c.containers[key(r.Project, r.Container)] + if !ok { + return Container{}, fmt.Errorf("container %q in project %q isn't configured", r.Container, r.Project) + } + return ct, nil +} + +func (c *incusConnector) Lookup(ctx context.Context, name string, raw jsontext.Value) (jsontext.Value, bool, error) { + switch name { + case lookupList: + var in struct { + Project string `json:"project"` + } + if err := decode(raw, &in); err != nil { + return nil, false, err + } + if !slices.Contains(c.projects, in.Project) { + return nil, false, fmt.Errorf("project %q isn't configured", in.Project) + } + list, err := c.api.Instances(ctx, in.Project) + if err != nil { + return nil, false, fmt.Errorf("list containers: %w", err) + } + type item struct { + Name string `json:"name"` + Status string `json:"status"` + } + items := []item{} + for _, i := range list { + if _, ok := c.containers[key(in.Project, i.Name)]; ok { + items = append(items, item(i)) + } + } + out, err := json.Marshal(map[string]any{"containers": items}) + return out, true, err + case lookupCommand: + var in commandInput + if err := decode(raw, &in); err != nil { + return nil, false, err + } + if _, err := c.container(in.ref); err != nil { + return nil, false, err + } + cmd, ok := c.commands[in.Command] + if !ok { + return nil, false, fmt.Errorf("command %q isn't in the allow-list", in.Command) + } + res, err := c.api.Exec(ctx, in.Project, in.Container, slices.Clone(cmd.Argv)) + if err != nil { + return nil, false, fmt.Errorf("run %s in %s: %w", in.Command, key(in.Project, in.Container), err) + } + out, err := json.Marshal(map[string]any{"exit_code": res.Exit, "output": res.Stdout}) + return out, true, err + } + return nil, false, fmt.Errorf("no lookup named %q", name) +} + +// confine returns the cleaned path when it lies strictly under one of roots. +func confine(p string, roots []string) (string, error) { + if !path.IsAbs(p) || hasControl(p) { + return "", fmt.Errorf("path %q must be absolute with no control characters", p) + } + clean := path.Clean(p) + for _, root := range roots { + if strings.HasPrefix(clean, root+"/") { + return clean, nil + } + } + return "", fmt.Errorf("path %q is outside the container's cache paths %v", clean, roots) +} + +func (c *incusConnector) environment(ct Container) string { + if ct.Environment != "" { + return ct.Environment + } + return c.defaultEnv +} + +func (c *incusConnector) Resolve(ctx context.Context, action string, raw jsontext.Value) (*connectorv1.ResolveResponse, error) { + var r ref + var p string + switch action { + case actionSnapshot: + if err := decode(raw, &r); err != nil { + return nil, err + } + case actionDeleteCache: + var in deleteInput + if err := decode(raw, &in); err != nil { + return nil, err + } + r, p = in.ref, in.Path + default: + return nil, fmt.Errorf("no action named %q", action) + } + ct, err := c.container(r) + if err != nil { + return nil, err + } + resp := &connectorv1.ResolveResponse{ + Target: &connectorv1.Target{Kind: targetKind, Id: key(r.Project, r.Container), Environment: c.environment(ct)}, + } + switch action { + case actionSnapshot: + resp.Effect = &connectorv1.Effect{ + Reversibility: connectorv1.Reversibility_REVERSIBILITY_UNDONE_AUTOMATICALLY, + Summary: "Takes a snapshot of the container; the snapshot can be deleted to undo it.", + } + default: + if _, err := confine(p, ct.CachePaths); err != nil { + return nil, err + } + resp.Effect = &connectorv1.Effect{ + Reversibility: c.deleteReversibility(ctx, r), + Summary: "Deletes " + path.Clean(p) + " and everything under it inside the container.", + } + } + return resp, nil +} + +// deleteReversibility is recoverable when a snapshot taken within the window +// exists, and irreversible otherwise, including when that can't be read. +func (c *incusConnector) deleteReversibility(ctx context.Context, r ref) connectorv1.Reversibility { + if c.snapshotAge > 0 { + snaps, err := c.api.Snapshots(ctx, r.Project, r.Container) + if err == nil && slices.ContainsFunc(snaps, func(s snapshot) bool { return c.now().Sub(s.Created) <= c.snapshotAge }) { + return connectorv1.Reversibility_REVERSIBILITY_RECOVERABLE + } + } + return connectorv1.Reversibility_REVERSIBILITY_IRREVERSIBLE +} + +func (c *incusConnector) Invoke(ctx context.Context, action string, raw jsontext.Value, idem string) (jsontext.Value, bool, error) { + if idem == "" { + return nil, false, errors.New("an idempotency key is required") + } + switch action { + case actionSnapshot: + var r ref + if err := decode(raw, &r); err != nil { + return nil, false, err + } + if _, err := c.container(r); err != nil { + return nil, false, err + } + return c.snapshot(ctx, r, idem) + case actionDeleteCache: + var in deleteInput + if err := decode(raw, &in); err != nil { + return nil, false, err + } + ct, err := c.container(in.ref) + if err != nil { + return nil, false, err + } + return c.deleteCache(ctx, ct, in.Path) + } + return nil, false, fmt.Errorf("no action named %q", action) +} + +// snapshotName derives the snapshot's name from the idempotency key, so a +// retry finds the snapshot instead of taking another. +func snapshotName(idem string) string { + sum := sha256.Sum256([]byte(idem)) + return "archie-" + hex.EncodeToString(sum[:8]) +} + +func (c *incusConnector) hasSnapshot(ctx context.Context, r ref, name string) (bool, error) { + snaps, err := c.api.Snapshots(ctx, r.Project, r.Container) + if err != nil { + return false, err + } + return slices.ContainsFunc(snaps, func(s snapshot) bool { return s.Name == name }), nil +} + +func (c *incusConnector) snapshot(ctx context.Context, r ref, idem string) (jsontext.Value, bool, error) { + name := snapshotName(idem) + have, err := c.hasSnapshot(ctx, r, name) + if err != nil { + return nil, true, fmt.Errorf("list snapshots: %w", err) + } + if !have { + if err := c.api.Snapshot(ctx, r.Project, r.Container, name); err != nil { + // The create may have landed before the error. + if have, lerr := c.hasSnapshot(ctx, r, name); lerr != nil || !have { + return nil, true, fmt.Errorf("snapshot %s: %w", key(r.Project, r.Container), err) + } + } + } + out, err := json.Marshal(map[string]any{"snapshot": name}) + return out, false, err +} + +// deleteCache resolves symlinks inside the container before removing, so a +// link under an allowed path can't lead outside it. Removing a path that is +// already gone succeeds, which makes a retry safe. +func (c *incusConnector) deleteCache(ctx context.Context, ct Container, p string) (jsontext.Value, bool, error) { + if _, err := confine(p, ct.CachePaths); err != nil { + return nil, false, err + } + id := key(ct.Project, ct.Name) + res, err := c.api.Exec(ctx, ct.Project, ct.Name, []string{"realpath", "-m", "--", path.Clean(p)}) + if err != nil { + return nil, true, fmt.Errorf("resolve %s in %s: %w", p, id, err) + } + if res.Exit != 0 { + return nil, false, fmt.Errorf("resolve %s in %s: exit %d", p, id, res.Exit) + } + real, err := confine(strings.TrimSpace(res.Stdout), ct.CachePaths) + if err != nil { + return nil, false, fmt.Errorf("%s resolves outside the cache paths: %w", p, err) + } + res, err = c.api.Exec(ctx, ct.Project, ct.Name, []string{"rm", "-rf", "--one-file-system", "--", real}) + if err != nil { + return nil, true, fmt.Errorf("remove %s in %s: %w", real, id, err) + } + if res.Exit != 0 { + return nil, false, fmt.Errorf("remove %s in %s: exit %d", real, id, res.Exit) + } + out, err := json.Marshal(map[string]any{"deleted": real}) + return out, false, err +} diff --git a/connectors/incus/incus_test.go b/connectors/incus/incus_test.go new file mode 100644 index 0000000..ae8ce2c --- /dev/null +++ b/connectors/incus/incus_test.go @@ -0,0 +1,196 @@ +package main + +import ( + "context" + "encoding/json/jsontext" + "fmt" + "slices" + "strings" + "testing" + "time" + + connectorv1 "github.com/samcharles93/archipelago/sdk/connector/v1" +) + +type fakeIncus struct { + execs [][]string + realpaths map[string]string + snaps map[string][]snapshot + created []string + failSnap bool +} + +func (f *fakeIncus) Instances(context.Context, string) ([]instance, error) { + return []instance{{"web-1", "Running"}, {"other", "Stopped"}}, nil +} + +func (f *fakeIncus) Snapshots(_ context.Context, project, name string) ([]snapshot, error) { + return f.snaps[key(project, name)], nil +} + +func (f *fakeIncus) Snapshot(_ context.Context, project, name, snap string) error { + f.created = append(f.created, snap) + f.snaps[key(project, name)] = append(f.snaps[key(project, name)], snapshot{Name: snap, Created: time.Now()}) + if f.failSnap { + return fmt.Errorf("connection reset") + } + return nil +} + +func (f *fakeIncus) Exec(_ context.Context, _, _ string, argv []string) (execResult, error) { + f.execs = append(f.execs, argv) + if argv[0] == "realpath" { + p := argv[len(argv)-1] + if r, ok := f.realpaths[p]; ok { + p = r + } + return execResult{Stdout: p + "\n"}, nil + } + return execResult{Stdout: "ok"}, nil +} + +func newTestConnector(t *testing.T, f *fakeIncus) *incusConnector { + t.Helper() + c, err := configure(map[string]string{ + "containers": `[{"project":"default","name":"web-1","environment":"prod","cache_paths":["/var/cache/app","/srv/tmp/"]},{"project":"default","name":"app-1","cache_paths":["/var/cache/app"]}]`, + "commands": `[{"name":"disk_usage","argv":["/usr/bin/df","-h"]}]`, + "default_environment": "staging", + "snapshot_window": "24h", + }, f) + if err != nil { + t.Fatal(err) + } + return c +} + +// TestConfinement guards the two security boundaries: a command runs only +// when allow-listed with its fixed argv, and a deletion only removes what is +// strictly under the container's cache paths, after symlinks are resolved. +func TestConfinement(t *testing.T) { + tests := []struct { + name string + lookup string // a lookup, else the delete_cache action + input string + real map[string]string + err string // empty means allowed + want []string + }{ + {name: "delete under cache path", input: `{"project":"default","container":"web-1","path":"/var/cache/app/pkg"}`, + want: []string{"rm", "-rf", "--one-file-system", "--", "/var/cache/app/pkg"}}, + {name: "path cleaned before use", input: `{"project":"default","container":"web-1","path":"/var/cache/app//x/./y/"}`, + want: []string{"rm", "-rf", "--one-file-system", "--", "/var/cache/app/x/y"}}, + {name: "second path with trailing slash root", input: `{"project":"default","container":"web-1","path":"/srv/tmp/a"}`, + want: []string{"rm", "-rf", "--one-file-system", "--", "/srv/tmp/a"}}, + {name: "allowed command", lookup: "run_command", input: `{"project":"default","container":"web-1","command":"disk_usage"}`, + want: []string{"/usr/bin/df", "-h"}}, + + {name: "outside every cache path", input: `{"project":"default","container":"web-1","path":"/etc/passwd"}`, err: "outside"}, + {name: "dot-dot escape", input: `{"project":"default","container":"web-1","path":"/var/cache/app/../../etc"}`, err: "outside"}, + {name: "sibling sharing a prefix", input: `{"project":"default","container":"web-1","path":"/var/cache/app-evil/x"}`, err: "outside"}, + {name: "the cache path itself", input: `{"project":"default","container":"web-1","path":"/var/cache/app"}`, err: "outside"}, + {name: "relative path", input: `{"project":"default","container":"web-1","path":"var/cache/app/x"}`, err: "absolute"}, + {name: "control character", input: "{\"project\":\"default\",\"container\":\"web-1\",\"path\":\"/var/cache/app/x\\ny\"}", err: "control"}, + {name: "another container's path", input: `{"project":"default","container":"app-1","path":"/srv/tmp/a"}`, err: "outside"}, + {name: "symlink leading out", input: `{"project":"default","container":"web-1","path":"/var/cache/app/link"}`, + real: map[string]string{"/var/cache/app/link": "/etc"}, err: "resolves outside"}, + {name: "undeclared container", input: `{"project":"default","container":"db-1","path":"/var/cache/app/x"}`, err: "isn't configured"}, + {name: "undeclared project", input: `{"project":"other","container":"web-1","path":"/var/cache/app/x"}`, err: "isn't configured"}, + {name: "command off the allow-list", lookup: "run_command", input: `{"project":"default","container":"web-1","command":"cat_shadow"}`, err: "allow-list"}, + {name: "command argv smuggled in", lookup: "run_command", input: `{"project":"default","container":"web-1","command":"disk_usage","argv":["sh"]}`, err: "input"}, + {name: "command on undeclared container", lookup: "run_command", input: `{"project":"default","container":"db-1","command":"disk_usage"}`, err: "isn't configured"}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + f := &fakeIncus{realpaths: tt.real, snaps: map[string][]snapshot{}} + c := newTestConnector(t, f) + var err error + if tt.lookup != "" { + _, _, err = c.Lookup(t.Context(), tt.lookup, jsontext.Value(tt.input)) + } else { + _, _, err = c.Invoke(t.Context(), "delete_cache", jsontext.Value(tt.input), "k1") + _, rerr := c.Resolve(t.Context(), "delete_cache", jsontext.Value(tt.input)) + if tt.real == nil && (err == nil) != (rerr == nil) { + t.Errorf("Invoke err = %v but Resolve err = %v", err, rerr) + } + } + if tt.err != "" { + if err == nil || !strings.Contains(err.Error(), tt.err) { + t.Fatalf("error = %v, want one containing %q", err, tt.err) + } + for _, argv := range f.execs { + if argv[0] != "realpath" { + t.Fatalf("refused call still ran %v", argv) + } + } + return + } + if err != nil { + t.Fatal(err) + } + if got := f.execs[len(f.execs)-1]; !slices.Equal(got, tt.want) { + t.Errorf("ran %v, want %v", got, tt.want) + } + }) + } +} + +// TestSnapshotIdempotent guards a retried run taking a second snapshot, or +// reporting a failure for one that landed. +func TestSnapshotIdempotent(t *testing.T) { + in := jsontext.Value(`{"project":"default","container":"web-1"}`) + f := &fakeIncus{snaps: map[string][]snapshot{}} + c := newTestConnector(t, f) + first, _, err := c.Invoke(t.Context(), "snapshot_container", in, "key-1") + if err != nil { + t.Fatal(err) + } + second, _, err := c.Invoke(t.Context(), "snapshot_container", in, "key-1") + if err != nil || string(first) != string(second) || len(f.created) != 1 { + t.Fatalf("retry: %s %v, snapshots created %v", second, err, f.created) + } + if _, _, err := c.Invoke(t.Context(), "snapshot_container", in, "key-2"); err != nil || len(f.created) != 2 { + t.Fatalf("a new key must take a new snapshot: %v %v", err, f.created) + } + + f = &fakeIncus{snaps: map[string][]snapshot{}, failSnap: true} + c = newTestConnector(t, f) + if _, unknown, err := c.Invoke(t.Context(), "snapshot_container", in, "key-3"); err != nil || unknown { + t.Errorf("a create that landed before the error: unknown=%v err=%v", unknown, err) + } +} + +// TestResolve guards the judged declaration: the target, its environment, and +// that only a recent snapshot makes a deletion recoverable. +func TestResolve(t *testing.T) { + del := jsontext.Value(`{"project":"default","container":"%s","path":"/var/cache/app/x"}`) + tests := []struct { + name string + container string + age time.Duration // zero means no snapshot + env string + rev connectorv1.Reversibility + }{ + {"recent snapshot", "web-1", time.Hour, "prod", connectorv1.Reversibility_REVERSIBILITY_RECOVERABLE}, + {"stale snapshot", "web-1", 48 * time.Hour, "prod", connectorv1.Reversibility_REVERSIBILITY_IRREVERSIBLE}, + {"no snapshot, default environment", "app-1", 0, "staging", connectorv1.Reversibility_REVERSIBILITY_IRREVERSIBLE}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + f := &fakeIncus{snaps: map[string][]snapshot{}} + if tt.age > 0 { + f.snaps[key("default", tt.container)] = []snapshot{{Name: "s", Created: time.Now().Add(-tt.age)}} + } + c := newTestConnector(t, f) + r, err := c.Resolve(t.Context(), "delete_cache", jsontext.Value(fmt.Sprintf(string(del), tt.container))) + if err != nil { + t.Fatal(err) + } + if r.Target.Kind != "container" || r.Target.Id != "default/"+tt.container || r.Target.Environment != tt.env || r.Target.Disposable { + t.Errorf("target = %v", r.Target) + } + if r.Effect.Reversibility != tt.rev { + t.Errorf("reversibility = %v, want %v", r.Effect.Reversibility, tt.rev) + } + }) + } +} diff --git a/connectors/incus/main.go b/connectors/incus/main.go new file mode 100644 index 0000000..ddcf21f --- /dev/null +++ b/connectors/incus/main.go @@ -0,0 +1,14 @@ +// Command incus is the Incus connector: it lists containers, runs read-only +// commands from an allow-list inside them, takes snapshots, and deletes cache +// directories confined to per-container allowed paths. It talks to a remote +// Incus over HTTPS with a client certificate and a pinned server certificate. +// Nothing inside a container is declared disposable. +package main + +import "github.com/samcharles93/archipelago/sdk/connector" + +func main() { + connector.Serve(func(cfg connector.Config) (connector.Connector, error) { + return newIncus(cfg) + }) +} diff --git a/connectors/incus/package.yaml b/connectors/incus/package.yaml new file mode 100644 index 0000000..011263d --- /dev/null +++ b/connectors/incus/package.yaml @@ -0,0 +1,11 @@ +apiVersion: dev.archie.package.v1 +displayName: Incus +description: Lists Incus containers, runs allow-listed read-only commands inside them, snapshots them, and deletes cache directories confined to per-container paths. Settings name the endpoint, pinned server certificate, containers, commands and snapshot window; the client credential slot holds the certificate and key. +version: 0.1.0 +contributes: + extensions: + - surface: connector + path: bin/incus +files: + - path: bin/incus + mode: 493 diff --git a/go.mod b/go.mod index 176ec11..79ee707 100644 --- a/go.mod +++ b/go.mod @@ -17,6 +17,7 @@ require ( github.com/google/go-github/v78 v78.0.0 github.com/hashicorp/go-plugin v1.8.0 github.com/hashicorp/vault/api v1.23.0 + github.com/lxc/incus/v6 v6.23.0 github.com/prometheus/alertmanager v0.35.0 go.yaml.in/yaml/v3 v3.0.5 golang.org/x/crypto v0.58.0 @@ -39,6 +40,7 @@ require ( filippo.io/edwards25519 v1.2.0 // indirect filippo.io/hpke v0.4.0 // indirect github.com/42wim/httpsig v1.2.4 // indirect + github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect @@ -49,6 +51,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.58.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.58.0 // indirect github.com/ProtonMail/go-crypto v1.4.1 // indirect + github.com/apex/log v1.9.0 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/aws/aws-sdk-go-v2 v1.47.3 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 // indirect @@ -72,14 +75,19 @@ require ( github.com/aws/smithy-go v1.28.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver v3.5.1+incompatible // indirect + github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/cloudflare/circl v1.6.4 // indirect github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect + github.com/containerd/log v0.1.0 // indirect + github.com/containerd/platforms v0.2.1 // indirect github.com/coreos/go-systemd/v22 v22.7.0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect + github.com/cyphar/filepath-securejoin v0.6.1 // indirect github.com/davidmz/go-pageant v1.0.2 // indirect + github.com/docker/go-units v0.5.0 // indirect github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect github.com/fatih/color v1.19.0 // indirect @@ -104,6 +112,8 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.18 // indirect github.com/googleapis/gax-go/v2 v2.23.0 // indirect + github.com/gorilla/securecookie v1.1.2 // indirect + github.com/gorilla/websocket v1.5.3 // indirect github.com/goware/prefixer v0.0.0-20160118172347-395022866408 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect @@ -128,6 +138,8 @@ require ( github.com/jpillora/backoff v1.0.0 // indirect github.com/json-iterator/go v1.1.13-0.20220915233716-71ac16282d12 // indirect github.com/klauspost/compress v1.20.3 // indirect + github.com/klauspost/pgzip v1.2.6 // indirect + github.com/kr/fs v0.1.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/lib/pq v1.12.3 // indirect github.com/mattn/go-colorable v0.1.15 // indirect @@ -138,21 +150,30 @@ require ( github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/moby/sys/user v0.4.1 // indirect + github.com/moby/sys/userns v0.1.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/muhlemmer/gu v0.3.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect github.com/oklog/run v1.2.0 // indirect github.com/oklog/ulid/v2 v2.1.2 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/opencontainers/image-spec v1.1.1 // indirect + github.com/opencontainers/runtime-spec v1.3.0 // indirect + github.com/opencontainers/umoci v0.6.1-0.20251213054154-70fc5ee1f4df // indirect github.com/pierrec/lz4/v4 v4.1.33 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect + github.com/pkg/sftp v1.13.10 // indirect github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect github.com/prometheus/client_golang v1.25.0 // indirect github.com/prometheus/client_model v0.6.3 // indirect github.com/prometheus/common v0.72.1 // indirect github.com/prometheus/exporter-toolkit v0.20.0 // indirect github.com/prometheus/procfs v0.22.0 // indirect + github.com/rootless-containers/proto/go-proto v0.0.0-20260207013450-f6ee952d53d9 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect @@ -163,6 +184,10 @@ require ( github.com/twmb/franz-go/pkg/kmsg v1.15.0 // indirect github.com/twmb/franz-go/plugin/kslog v1.0.0 // indirect github.com/urfave/cli v1.22.17 // indirect + github.com/vbatts/go-mtree v0.7.0 // indirect + github.com/zitadel/logging v0.7.0 // indirect + github.com/zitadel/oidc/v3 v3.45.5 // indirect + github.com/zitadel/schema v1.3.2 // indirect go.mongodb.org/mongo-driver v1.17.9 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect @@ -191,4 +216,5 @@ require ( google.golang.org/genproto v0.0.0-20260720171339-e059f2f05d78 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc // indirect gopkg.in/ini.v1 v1.67.3 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 71689ff..cae58f5 100644 --- a/go.sum +++ b/go.sum @@ -38,6 +38,8 @@ filippo.io/hpke v0.4.0 h1:p575VVQ6ted4pL+it6M00V/f2qTZITO0zgmdKCkd5+A= filippo.io/hpke v0.4.0/go.mod h1:EmAN849/P3qdeK+PCMkDpDm83vRHM5cDipBJ8xbQLVY= github.com/42wim/httpsig v1.2.4 h1:mI5bH0nm4xn7K18fo1K3okNDRq8CCJ0KbBYWyA6r8lU= github.com/42wim/httpsig v1.2.4/go.mod h1:yKsYfSyTBEohkPik224QPFylmzEBtda/kjyIAJjh3ps= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 h1:aokoqcHvaGjiM3VpjKDfMMnF/8epJ+Q1HLJ7CudztqE= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0/go.mod h1:/WYEx9pcM9Y+Dd/APJaNlSvVSvzl54rrMdZT5+Oi2LM= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0 h1:CU4+EJeJi3TKYWEcYuSdWsjzw0nVsK/H0MSQOiPcymU= @@ -78,8 +80,14 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy 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/apex/log v1.9.0 h1:FHtw/xuaM8AgmvDDTI9fiwoAL25Sq2cxojnZICUU8l0= +github.com/apex/log v1.9.0/go.mod h1:m82fZlWIuiWzWP04XCTXmnX0xRkYYbCdYn8jbJeLBEA= +github.com/apex/logs v1.0.0/go.mod h1:XzxuLZ5myVHDy9SAmYpamKKRNApGj54PfYLcFrXqDwo= +github.com/aphistic/golf v0.0.0-20180712155816-02c07f170c5a/go.mod h1:3NqKYiepwy8kCu4PNA+aP7WUV72eXWJeP9/r3/K9aLE= +github.com/aphistic/sweet v0.2.0/go.mod h1:fWDlIh/isSE9n6EPsRmC0det+whmX6dJid3stzu0Xys= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go-v2 v1.47.3 h1:HRoT/MkNi3bjO5xF4dCzLzvVmkvRGHj3/cLINDnJejk= github.com/aws/aws-sdk-go-v2 v1.47.3/go.mod h1:xSl+OSI5ZUw6bSMupWc218zE5Pl+65MCCu3ySWFY99A= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 h1:3IZY0XAJquT3aHzbkHfPzy4ACPcEjVG0x87KOwtpqGY= @@ -120,12 +128,17 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.51.4 h1:OKEfbf2tcfsF2pBk/S9QqNpo6ala github.com/aws/aws-sdk-go-v2/service/sts v1.51.4/go.mod h1:mCd6qGo9b8hTtfjgsmNkFlzwjyce4owd7HDVFnCLXhM= github.com/aws/smithy-go v1.28.5 h1:OqbqKtzY9NUnr2yAe9+hiTdFb20tNaK/lI0PMOGXX9k= github.com/aws/smithy-go v1.28.5/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I= 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/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= +github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= +github.com/bmatcuk/doublestar/v4 v4.10.0 h1:zU9WiOla1YA122oLM6i4EXvGW62DvKZVxIe6TYWexEs= +github.com/bmatcuk/doublestar/v4 v4.10.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bradleyfalzon/ghinstallation/v2 v2.19.0 h1:KQfD+43pRw9NUJhGycGrFr9vF1MubZacksKol1gomFI= github.com/bradleyfalzon/ghinstallation/v2 v2.19.0/go.mod h1:fe5ECIhCdEnxwLiBlNTxx9CP455wt42BELnlDVMvaAA= github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= @@ -152,10 +165,16 @@ github.com/containerd/errdefs v1.0.0 h1:tg5yIfIlQIrxYtu9ajqY42W3lpS19XqdxRQeEwYG github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M= github.com/containerd/errdefs/pkg v0.3.0 h1:9IKJ06FvyNlexW690DXuQNx2KA2cUJXx151Xdx3ZPPE= github.com/containerd/errdefs/pkg v0.3.0/go.mod h1:NJw6s9HwNuRhnjJhM7pylWwMyAkmCQvQ4GpJHEqRLVk= +github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= +github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= +github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpSBQv6A= +github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw= github.com/coreos/go-systemd/v22 v22.7.0 h1:LAEzFkke61DFROc7zNLX/WA2i5J8gYqe0rSj9KI28KA= github.com/coreos/go-systemd/v22 v22.7.0/go.mod h1:xNUYtjHu2EDXbsxz1i41wouACIwT7Ybq9o0BQhMwD0w= github.com/cpuguy83/go-md2man/v2 v2.0.7 h1:zbFlGlXEAKlwXpmvle3d8Oe3YnkKIK4xSRTd3sHPnBo= github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/cyphar/filepath-securejoin v0.6.1 h1:5CeZ1jPXEiYt3+Z6zqprSAgSWiggmpVyciv8syjIpVE= +github.com/cyphar/filepath-securejoin v0.6.1/go.mod h1:A8hd4EnAeyujCJRrICiOWqjS1AX0a9kM5XL+NwKoYSc= 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= @@ -191,18 +210,22 @@ github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJP github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.3.3 h1:MVQghNeW+LZcmXe7SY1V36Z+WFMDjpqGAGacLe2T0ds= github.com/envoyproxy/protoc-gen-validate v1.3.3/go.mod h1:TsndJ/ngyIdQRhMcVVGDDHINPLWB7C82oDArY51KfB0= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho= github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= github.com/getsops/gopgagent v0.0.0-20241224165529-7044f28e491e h1:y/1nzrdF+RPds4lfoEpNhjfmzlgZtPqyO3jMzrqDQws= github.com/getsops/gopgagent v0.0.0-20241224165529-7044f28e491e/go.mod h1:awFzISqLJoZLm+i9QQ4SgMNHDqljH6jWV0B36V5MrUM= github.com/getsops/sops/v3 v3.13.3 h1:saYczbT88kD1saNChe1cAbFQe5mrRhTIfEw3TaEcmK0= github.com/getsops/sops/v3 v3.13.3/go.mod h1:3mUuUtKnJ63IzIvU4LQoDXdp0ZvorY5s2hEc7UVNfx8= +github.com/go-chi/chi/v5 v5.2.5 h1:Eg4myHZBjyvJmAFjFvWgrqDTXFyOzjj7YIm3L3mu6Ug= +github.com/go-chi/chi/v5 v5.2.5/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0= github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI= github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM= github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA= @@ -252,6 +275,7 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 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.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= @@ -274,18 +298,25 @@ github.com/google/go-github/v88 v88.0.0/go.mod h1:rufTDgn2N45wjhukLTyxmvc9nilSp3 github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0= github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU= 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/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc= github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0= github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= +github.com/google/uuid v1.1.1/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/enterprise-certificate-proxy v0.3.18 h1:hvVi34VucdrV1IIsiWuqYM8kutw/92MxNEFxCJZEh0k= github.com/googleapis/enterprise-certificate-proxy v0.3.18/go.mod h1:rSEsBUemEBZEexP2y6jPp16LUmUbjmSbcPMQizR0o4k= github.com/googleapis/gax-go/v2 v2.23.0 h1:Tchl7qkvE7Ip3y+ztvNufYFvkfqTe7NfLTYGIdJRLuE= github.com/googleapis/gax-go/v2 v2.23.0/go.mod h1:rBQKOVJCdb8IFEzg+FCwlt1LP/xMDGuqUXhUG+XMXEg= +github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA= +github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= +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/goware/prefixer v0.0.0-20160118172347-395022866408 h1:Y9iQJfEqnN3/Nce9cOegemcy/9Ai5k3huT6E80F3zaw= github.com/goware/prefixer v0.0.0-20160118172347-395022866408/go.mod h1:PE1ycukgRPJ7bJ9a1fdfQ9j8i/cEcRAoLZzbxYpNB/s= github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 h1:/Tnpcb2E0Pz/tN9s3bfEY2Q8ePCEX9iuS+cneUwncnw= @@ -337,10 +368,15 @@ github.com/hashicorp/vault/api v1.23.0 h1:gXgluBsSECfRWTSW9niY2jwg2e9mMJc4WoHNv4 github.com/hashicorp/vault/api v1.23.0/go.mod h1:zransKiB9ftp+kgY8ydjnvCU7Wk8i9L0DYWpXeMj9ko= 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/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.207 h1:lgMtpjpIWPw0gbCAko23dRKl66ZPUmeAOidjKFkub2E= github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.207/go.mod h1:M+yna96Fx9o5GbIUnF3OvVvQGjgfVSyeJbV9Yb1z/wI= +github.com/jeremija/gosubmit v0.2.8 h1:mmSITBz9JxVtu8eqbN+zmmwX7Ij2RidQxhcwRVI4wqA= +github.com/jeremija/gosubmit v0.2.8/go.mod h1:Ui+HS073lCFREXBbdfrJzMB57OI/bdxTiLtrDHHhFPI= 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/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= 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= @@ -356,22 +392,37 @@ github.com/keybase/go-keychain v0.0.1/go.mod h1:PdEILRW3i9D8JcdM+FmY6RwkHGnhHxXw github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.20.3 h1:zWNoFqq/lSuYQRim3dUXlXeA0IqwuZGicdG5ZTfY5j4= github.com/klauspost/compress v1.20.3/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= +github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU= +github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= 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 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= +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.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +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/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/lib/pq v1.12.3 h1:tTWxr2YLKwIvK90ZXEw8GP7UFHtcbTtty8zsI+YjrfQ= github.com/lib/pq v1.12.3/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= +github.com/lxc/incus/v6 v6.23.0 h1:2/AONSg7XUkNTSRXqyP4jd2kYpafRvKctcCIXPsw1ws= +github.com/lxc/incus/v6 v6.23.0/go.mod h1:efEbxmSexfg8VyYQnBgNQz0dZZLci3s90xcU+VXoCYc= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 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.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy0/jY= github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +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.23 h1:cYwCQTQf3HB6xUC+BtyCLZNr7IzbOmoZbmssVNzSyiQ= @@ -381,6 +432,7 @@ github.com/mdlayher/socket v0.6.0 h1:ScZPaAGyO1icQnbFrhPM8mnXyMu9qukC1K4ZoM2IQKU github.com/mdlayher/socket v0.6.0/go.mod h1:q7vozUAnxSqnjHc12Fik5yUKIzfZ8ITCfMkhOtE9z18= github.com/mdlayher/vsock v1.3.0 h1:bqQfZ1OznI03y6YiXp2sze05RVdzLn/zsfjnjd4+ivI= github.com/mdlayher/vsock v1.3.0/go.mod h1:WsuksavOvwCnV5UqGHUkvAvCy+Dqy81y4goKQTzxxNY= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/miekg/dns v1.1.73 h1:uhT8nJxmTrPJYClxVxTCX+CVn6qnzSiybRk72Z6DgrE= github.com/miekg/dns v1.1.73/go.mod h1:RW2Obtfd5NZHvOFe3zYG0W8koWOQtAzyHaLo8vASBuQ= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= @@ -397,6 +449,8 @@ github.com/moby/moby/client v0.5.0 h1:5XhyPk2fuOWf6RlSFa3MkIIgDZkF25xToXW8Q/BH7c github.com/moby/moby/client v0.5.0/go.mod h1:rcVpF8ncl9vo5gaIBdol6CnbEtSj1uxMvEV/UrykF/s= github.com/moby/sys/user v0.4.1 h1:RgjRlaDKi/Xmyrz4t8lyzXT6v2ooFeO/7xtchmhVWE0= github.com/moby/sys/user v0.4.1/go.mod h1:E9QsW5WRe1kUAf7kW8hXKwu1uhsZEAdPLYHYSDudF4Y= +github.com/moby/sys/userns v0.1.0 h1:tVLXkFOxVu9A64/yh59slHVv9ahO9UIev4JZusOLG/g= +github.com/moby/sys/userns v0.1.0/go.mod h1:IHUYgu/kao6N8YZlp9Cf444ySSvCmDlmzUcYfDHOl28= github.com/moby/term v0.5.2 h1:6qk3FJAFDs6i/q3W/pQ97SX192qKfZgGjCQqfCJkgzQ= github.com/moby/term v0.5.2/go.mod h1:d3djjFCrjnB+fl8NJux+EJzu0msscUP+f8it8hPkFLc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -406,7 +460,13 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN 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/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= +github.com/muhlemmer/gu v0.3.1 h1:7EAqmFrW7n3hETvuAdmFmn4hS8W+z3LgKtrnow+YzNM= +github.com/muhlemmer/gu v0.3.1/go.mod h1:YHtHR+gxM+bKEIIs7Hmi9sPT3ZDUvTN/i88wQpZkrdM= +github.com/muhlemmer/httpforwarded v0.1.0 h1:x4DLrzXdliq8mprgUMR0olDvHGkou5BJsK/vWUetyzY= +github.com/muhlemmer/httpforwarded v0.1.0/go.mod h1:yo9czKedo2pdZhoXe+yDkGVbU0TJ0q9oQ90BVoDEtw0= 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= @@ -416,12 +476,18 @@ github.com/oklog/run v1.2.0 h1:O8x3yXwah4A73hJdlrwo/2X6J62gE5qTMusH0dvz60E= github.com/oklog/run v1.2.0/go.mod h1:mgDbKRSwPhJfesJ4PntqFUbKQRZ50NgmZTSPlFA0YFk= github.com/oklog/ulid/v2 v2.1.2 h1:IEclFb9JNvzYA6MW2SCxbLzcHTVsfqm3PrqGQJH5zec= github.com/oklog/ulid/v2 v2.1.2/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= github.com/opencontainers/runc v1.3.6 h1:SLGIymCtsk80iNPWgbc8dtjI30r+5mTVV+4dN8/17Sk= github.com/opencontainers/runc v1.3.6/go.mod h1:o1wyv76EDlTkcf0KTFgN8bMWLPvgF/HfX709lDv+rr4= +github.com/opencontainers/runtime-spec v1.3.0 h1:YZupQUdctfhpZy3TM39nN9Ika5CBWT5diQ8ibYCRkxg= +github.com/opencontainers/runtime-spec v1.3.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opencontainers/umoci v0.6.1-0.20251213054154-70fc5ee1f4df h1:9hvwN64VeuL1L0Jgp8bxTPmd5IZQoHmeXGWrVqsEhN0= +github.com/opencontainers/umoci v0.6.1-0.20251213054154-70fc5ee1f4df/go.mod h1:s6d/s4QJAZTF92hEU6ozuHjE0+VRc6kVe1QIWfvL7KY= github.com/ory/dockertest/v3 v3.12.0 h1:3oV9d0sDzlSQfHtIaB5k6ghUCVMVLpAY8hwrqoCyRCw= github.com/ory/dockertest/v3 v3.12.0/go.mod h1:aKNDTva3cp8dwOWwb9cWuX84aH5akkxXRvO7KCwWVjE= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= @@ -435,6 +501,8 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE 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/sftp v1.13.10 h1:+5FbKNTe5Z9aspU88DPIKJ9z2KZoaGCu6Sr6kKR/5mU= +github.com/pkg/sftp v1.13.10/go.mod h1:bJ1a7uDhrX/4OII+agvy28lzRvQrmIQuaHrcI1HbeGA= github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -468,18 +536,29 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.22.0 h1:6q9+/JL9IKAPbCmBrv9n5O5Ty3NKnciV5X7YGw0oics= github.com/prometheus/procfs v0.22.0/go.mod h1:CvmFr/GVhIjIvWJZW3tgkODBQMRIf0EyWMQLHCHab58= +github.com/rogpeppe/fastuuid v1.1.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.16.0 h1:O9DK+vNMDVGLr2BeZqmpLeMjiMNkuXfcqntWbZV6S5g= +github.com/rogpeppe/go-internal v1.16.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs= +github.com/rootless-containers/proto/go-proto v0.0.0-20260207013450-f6ee952d53d9 h1:3w2GInbYbp08pUeQoM3qI1L4v8htpwHQN9AkfILlUSw= +github.com/rootless-containers/proto/go-proto v0.0.0-20260207013450-f6ee952d53d9/go.mod h1:LLjEAc6zmycfeN7/1fxIphWQPjHpTt7ElqT7eVf8e4A= +github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= +github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= 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.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= +github.com/smartystreets/assertions v1.0.0/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= +github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM= +github.com/smartystreets/gunit v1.0.0/go.mod h1:qwPWnhz6pn0NnRBP++URONOVyNkPyr4SauJk4cUOwJs= github.com/spiffe/go-spiffe/v2 v2.8.1 h1:eXZMLsu+3MLEPJyGJkolqtVrteZfQdUpOWj6LTiDl/E= github.com/spiffe/go-spiffe/v2 v2.8.1/go.mod h1:47Q0Q9/AqGha8QLHp+kxpH4Wca7X7EnOtlIJy3mxZ3U= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -490,6 +569,7 @@ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/ 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.6.1/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= @@ -499,6 +579,13 @@ github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= +github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLDRpvE+3b7gP/C2YyLFYxNmcLnPTMe0= +github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= +github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= +github.com/tj/go-buffer v1.1.0/go.mod h1:iyiJpfFcR2B9sXu7KvjbT9fpM4mOelRSDTbntVj52Uc= +github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= +github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= +github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho= github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= @@ -512,6 +599,8 @@ github.com/twmb/franz-go/plugin/kslog v1.0.0 h1:I64oEmF+0PDvmyLgwrlOtg4mfpSE9Gwl github.com/twmb/franz-go/plugin/kslog v1.0.0/go.mod h1:8pMjK3OJJJNNYddBSbnXZkIK5dCKFIk9GcVVCDgvnQc= github.com/urfave/cli v1.22.17 h1:SYzXoiPfQjHBbkYxbew5prZHS1TOLT3ierW8SYLqtVQ= github.com/urfave/cli v1.22.17/go.mod h1:b0ht0aqgH/6pBYzzxURyrM4xXNgsoT/n2ZzwQiEhNVo= +github.com/vbatts/go-mtree v0.7.0 h1:ytmOc3MTRidZiBi9VBCyZ2BHe4fZS47L5v7BVXDWW4E= +github.com/vbatts/go-mtree v0.7.0/go.mod h1:EjdpFC+LZy1TXbRGNa1MKKgjQ+7ew3foMFJK8o4/TdY= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= @@ -523,6 +612,12 @@ github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17 github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zitadel/logging v0.7.0 h1:eugftwMM95Wgqwftsvj81isL0JK/hoScVqp/7iA2adQ= +github.com/zitadel/logging v0.7.0/go.mod h1:9A6h9feBF/3u0IhA4uffdzSDY7mBaf7RE78H5sFMINQ= +github.com/zitadel/oidc/v3 v3.45.5 h1:CubfcXQiqtysk+FZyIcvj1+1ayvdSV89v5xWu5asrDQ= +github.com/zitadel/oidc/v3 v3.45.5/go.mod h1:MKHUazeiNX/jxRc6HD/Dv9qhL/wNuzrJAadBEGXiBeE= +github.com/zitadel/schema v1.3.2 h1:gfJvt7dOMfTmxzhscZ9KkapKo3Nei3B6cAxjav+lyjI= +github.com/zitadel/schema v1.3.2/go.mod h1:IZmdfF9Wu62Zu6tJJTH3UsArevs3Y4smfJIj3L8fzxw= go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo= go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU= go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ= @@ -568,6 +663,7 @@ go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/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-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= @@ -583,6 +679,7 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91 golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= 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-20181114220301-adae6a3d119a/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-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -614,8 +711,10 @@ golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= 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-20181116152217-5ac8a444bdc5/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-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-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -696,21 +795,28 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= google.golang.org/protobuf v1.36.12/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-20190902080502-41f04d3bba15/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/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.3 h1:iM9Lhz5MRSGhHVGGwCuzG9KO8PoirCXj/m/qTmOJJQw= gopkg.in/ini.v1 v1.67.3/go.mod h1:x/cyOwCgZqOkJoDIJ3c1KNHMo10+nLGAhh+kn3Zizss= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 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.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.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-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=