Skip to content

Releases

v2.4.1

Choose a tag to compare

@kke kke released this 24 Nov 11:09
8c55a58

What's Changed

  • feat(initsystem): read and stream OpenRC service logs by @kke in #525
  • test: cover the Service API in the integration suite by @kke in #527
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #526
  • build(deps): Bump actions/setup-go from 7.0.0 to 7.1.0 in the github-actions group by @dependabot[bot] in #524

Full Changelog: v2.4.0...v2.4.1

v2.4.0

Choose a tag to compare

@kke kke released this 19 Nov 10:25
271ac3b

What's Changed

  • feat(cmd): report a failed command's exit status by @kke in #518
  • test(ssh): adapt tests for x/crypto v0.59.0 ValidPrincipals requirement by @kke in #522
  • feat(remotefs): add DownloadFile helper to fetch files from hosts by @kke in #523
  • build(deps): Bump golang.org/x/crypto from 0.58.0 to 0.59.0 by @dependabot[bot] in #520
  • build(deps): Bump github.com/davidmz/go-pageant from 1.0.2 to 1.1.0 by @dependabot[bot] in #521

Full Changelog: v2.3.0...v2.4.0

v2.3.0

Choose a tag to compare

@kke kke released this 12 Nov 09:59
36f7460

What's Changed

  • fix(remotefs): fix whole-file reads and writes on Windows by @kke in #479
  • refactor(remotefs): track the Windows file position in Go by @kke in #480
  • perf(remotefs): send Windows file writes in 4 MiB rigrcp commands by @kke in #482
  • fix(remotefs): treat PosixFile handles opened with O_RDWR as writable by @blacksoxx in #487
  • Fix/posix block size by @ftarasenko in #467
  • Lower minimum go to v1.26 and run govulncheck with the latest Go by @kke in #495
  • Let dependabot update the schema generator's direct dependencies by @kke in #496
  • fix(shellescape): don't emit empty segments for repeated spaces by @kke in #503
  • fix(hostkey): close known_hosts file when appending a key fails by @kke in #500
  • Add test coverage for IndexAllPartial by @magic-peach in #477
  • Add direct unit tests for patternMatch and patternMatchAll by @magic-peach in #476
  • fix(ssh): report text a server sends before its version line by @100milliongold in #486
  • fix(localhost): close child pipe ends and wait for output copiers by @kke in #499
  • fix(localhost): return an error on non-zero exit in ExecInteractive by @kke in #502
  • fix(localhost): pass argv[0] and resolve PATH in ExecInteractive by @kke in #501
  • fix(ssh): bound command start and wait by the context by @kke in #507
  • fix(ssh): bound the IsConnected keepalive by @kke in #510
  • fix(sudo): warn when sudoers requiretty rejects the sudo probe by @kke in #511
  • fix(sshconfig): expand %l and %k tokens by @kke in #505
  • feat(remotefs): add WithContext to bound filesystem operations by @kke in #509
  • fix(sshconfig): apply algorithm list modifiers to the built-in defaults by @kke in #513
  • feat(winrm)!: refuse to send a password over plain HTTP by @james-nesbitt in #516
  • feat(sudo): fall back to script(1) when sudoers sets requiretty by @kke in #514

Bumps

  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #515
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #517
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #484
  • build(deps): Bump github.com/Microsoft/go-winio from 0.6.2 to 0.6.3 by @dependabot[bot] in #488
  • build(deps): Bump github.com/Microsoft/go-winio from 0.6.3 to 0.6.4 by @dependabot[bot] in #493
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #491
  • build(deps): Bump golang.org/x/term from 0.46.0 to 0.47.0 by @dependabot[bot] in #489
  • build(deps): Bump golang.org/x/crypto from 0.57.0 to 0.58.0 by @dependabot[bot] in #490
  • build(deps): Bump github.com/santhosh-tekuri/jsonschema/v6 from 6.0.2 to 6.0.3 in /internal/jsonschema in the jsonschema group by @dependabot[bot] in #497
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #494
  • build(deps): Bump the github-actions group with 4 updates by @dependabot[bot] in #504

New Contributors

Full Changelog: v2.2.1...v2.3.0

v0.22.0

Choose a tag to compare

@kke kke released this 02 Nov 09:53
2449194

What's Changed

  • [release-0.x] Shell pipes integration test by @kke in #395
  • [Backport release-0.x] Probe stat capabilities instead of parsing help text by @twz123 in #357
  • [release-0.x] Pin GitHub Actions by @twz123 in #450
  • [release-0.x] fix: make Disconnect safe to call concurrently by @kke in #508
  • [release-0.x] fix: offer no X25519 key exchanges when the curve is unusable by @smerkviladze in #512

New Contributors

Full Changelog: v0.21.11...v0.22.0

v2.2.1

Choose a tag to compare

@kke kke released this 21 Sep 11:19
502c800

What's Changed

  • fix: bound WinRM command.Wait() and remotefs upload against dead sessions by @james-nesbitt in #473
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #470
  • build(jsonschema): build the schema generator in a go workspace by @kke in #471
  • build(deps): Bump golang.org/x/crypto from 0.56.0 to 0.57.0 by @dependabot[bot] in #469
  • build(deps): Bump the github-actions group with 3 updates by @dependabot[bot] in #478

Full Changelog: v2.2.0...v2.2.1

v2.2.0

Choose a tag to compare

@kke kke released this 09 Sep 09:58
a69b40a

What's Changed

  • fix(initsystem): don't let SysVinit match systemd hosts (#409) by @vikramhh in #411
  • Fix linux detection when cluster contains windows hosts by @james-nesbitt in #420
  • feat(winrm): export ErrAuthFailed and stop marking 401/403 non-retryable by @james-nesbitt in #421
  • Promote ErrAuthFailed to protocol and tag SSH auth failures by @kke in #423
  • fix(openssh): stop Connect blocking on the daemonized control master by @kke in #424
  • fix(remotefs): stop feeding /dev/stdin to install and dd (#410) by @kke in #425
  • Fix uutils mkdirall and touch by @kke in #436
  • fix(cmd,sudo): impose a POSIX shell instead of trusting $SHELL by @kke in #433
  • fix(remotefs): don't treat WinFS stat execution failures as ErrNotExist by @kke in #439
  • fix(cmd,remotefs): classify ErrNotExist on the full stderr, not the m… by @kke in #441
  • fix(remotefs): don't report ErrNotExist when the stat command never ran by @kke in #438
  • fix(sshconfig): accept space separated Match criteria and honor exec exit status by @kke in #445
  • fix(remotefs): inspect the stat error in WinFS Remove and RemoveAll by @kke in #440
  • feat(remotefs): add HTTPHead to query URL metadata from the remote host by @kke in #448
  • feat(ssh): add ignoreSSHConfig to skip the ssh client config files by @kke in #447
  • fix(sshconfig): don't panic in Finalize on a non-string map value by @kke in #451
  • feat(remotefs): make downloads atomic and add opt-in resume by @kke in #456
  • fix(ssh): use session.WindowChange by @kke in #458
  • refactor(remotefs): split multiStat instead of suppressing cyclop by @kke in #459
  • fix(ssh): honour StrictHostKeyChecking=yes by @kke in #457
  • test(kv): cover the invalid int error path in strict mode by @magic-peach in #461
  • chore(docs): Add agent instructions by @kke in #463
  • test(openssh): widen the Connect budget to reduce flakiness under load by @magic-peach in #465

Bumps

  • ci: test against latest and previous bootloose images by @kke in #435
  • build(deps): Bump golang.org/x/crypto from 0.55.0 to 0.56.0 by @dependabot[bot] in #460
  • build(deps): Bump github/codeql-action from 4.37.8 to 4.37.9 by @dependabot[bot] in #452
  • deps(go): bump go to v1.26.7 by @kke in #437
  • deps(go): bump go to v1.26.6 by @kke in #434
  • build(deps): Bump github/codeql-action from 3 to 4.37.4 by @dependabot[bot] in #416
  • build(deps): Bump github/codeql-action from 4.37.4 to 4.37.6 by @dependabot[bot] in #422
  • build(deps): Bump github/codeql-action from 4.37.6 to 4.37.8 by @dependabot[bot] in #443
  • build(deps): Bump github.com/stretchr/testify from 1.11.1 to 1.12.1 by @dependabot[bot] in #442
  • build(deps): Bump golang.org/x/crypto from 0.54.0 to 0.55.0 by @dependabot[bot] in #430
  • chore: bump go to 1.27, golangci-lint to 2.13.1, run auto-fixes by @kke in #446
  • Pin GitHub Actions by @twz123 in #449
  • chore(deps): fix the jsonschema generator go.mod by @kke in #412
  • ci: report exported API changes on pull requests by @kke in #464

New Contributors

Full Changelog: v2.1.1...v2.2.0

v2.1.1

Choose a tag to compare

@kke kke released this 28 Jul 22:38
c83e9fc

What's Changed

  • build(deps): Bump golang.org/x/crypto from 0.53.0 to 0.54.0 by @dependabot[bot] in #402
  • build(deps): Bump actions/setup-go from 6 to 7 by @dependabot[bot] in #406
  • build(deps): Bump actions/setup-python from 5 to 7 by @dependabot[bot] in #407
  • fix(initsystem): don't fail WinSCM start/stop/restart on benign slow-start warning by @vikramhh in #408

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

Choose a tag to compare

@kke kke released this 06 Jul 11:25
aace81f

What's Changed

  • feat(cmd): add CommandGate for per-command confirmation (#400) by @kke in #401

Full Changelog: v2.0.1...v2.1.0

v2.0.1

Choose a tag to compare

@kke kke released this 05 Jul 21:29
a7ad5f5

What's Changed

  • fix(powershell): always use -EncodedCommand in Cmd() by @kke in #399

Full Changelog: v2.0.0...v2.0.1

rig v2

Choose a tag to compare

@kke kke released this 01 Jul 12:56
ec0bd48

rig v2.0.0

Rig v2 is a ground-up redesign and refactoring of this package. As per go conventions it's now imported as github.com/k0sproject/rig/v2.

Existing github.com/k0sproject/rig (v0.x) consumers are unaffected. The old v0.x still resides on the release-0.x branch like it has since main became the base for v2 development. New features, fixes or dependency bumps for v0.x may be (reluctantly) backported to that branch and tagged.

See docs/MIGRATING-from-v0.x.md for a full migration guide.

Highlights

  • Composable Client - the monolithic rig.Connection is replaced by rig.Client, built from pluggable, lazily-initialized service providers (filesystem, init system, package manager, OS detection) instead of one struct that did everything.
  • Sudo() is a client, not an option - client.Sudo() returns a cloned client whose runner transparently wraps every command with the detected privilege-escalation mechanism (sudo/doas/runas), instead of threading a exec.Sudo(h) option through call sites.
  • Expanded remotefs.OS - stdlib os-like functions available directly on the FS handle, such as LookPath, Rename, Chown/ChownTree, DownloadURL, FileContains, CreateTemp/TempDir, PatchFile (line-oriented patching) and atomic writes via WriteFileAtomic. This replaces the huge configurer interface and tricky nested struct embedding for OS support modules in cosumers.
  • Built-in sshconfig parser package - a complete OpenSSH ssh_config(5) parser that supports Match/Include directives, token/env expansion and many of the availble options are wired into the native SSH transport.
  • Built-in sh and sh/shellescape packages for building and escaping POSIX shell commands.
  • Improved redact package for efficiently scrubbing secrets from strings, readers and writers.
  • New rigtest package - mock runners and connections for unit-testing code that drives a rig.Client without a real host.
  • client.Proc() gives an os/exec.Cmd-style handle for streaming stdin/stdout/stderr, this replaces the old ExecStreams API.
  • Every Exec/ExecOutput has a new context-cancellable *Context twin.
  • Real-time log streaming for services and file following, capabilit discovery (client.Capabilities()) and command dry-run/explain tracing.

Full Changelog: v0.21.11...v2.0.0


What's Changed

  • V2 by @kke in #164
  • Add ssh keepalive support by @kke in #178
  • Detect windows SSH from server header by @kke in #177
  • Replace go-shellwords with own shellescape.Split by @kke in #179
  • Bump gopkg.in/yaml.v2 from 2.2.2 to 2.4.0 by @dependabot[bot] in #180
  • Run stat in empty env with C locale by @twz123 in #183
  • Implement an SSH config parser by @kke in #181
  • Bump dependabot/fetch-metadata from 1 to 2 by @dependabot[bot] in #185
  • Drop kevinburke/ssh_config dependency in favor of rig/v2/sshconfig by @kke in #186
  • Bump golang.org/x/crypto from 0.21.0 to 0.22.0 by @dependabot[bot] in #187
  • Bump golang.org/x/net from 0.21.0 to 0.23.0 by @dependabot[bot] in #190
  • Bump github.com/Microsoft/go-winio from 0.6.1 to 0.6.2 by @dependabot[bot] in #191
  • Bump golangci/golangci-lint-action from 4 to 5 by @dependabot[bot] in #192
  • Use go1.22, lint updates by @kke in #198
  • Add missing call to client setup in Clone() by @james-nesbitt in #199
  • Bump golangci/golangci-lint-action from 5 to 6 by @dependabot[bot] in #200
  • Bump golang.org/x/crypto from 0.22.0 to 0.23.0 by @dependabot[bot] in #201
  • Just auto-approve dependabot PRs by @kke in #202
  • Bump golang.org/x/crypto from 0.23.0 to 0.24.0 by @dependabot[bot] in #208
  • Bump golang.org/x/term from 0.21.0 to 0.22.0 by @dependabot[bot] in #211
  • Bump golang.org/x/crypto from 0.24.0 to 0.25.0 by @dependabot[bot] in #212
  • Bump golang.org/x/crypto from 0.25.0 to 0.26.0 by @dependabot[bot] in #218
  • Bump golang.org/x/term from 0.23.0 to 0.24.0 by @dependabot[bot] in #222
  • Bump golang.org/x/crypto from 0.26.0 to 0.27.0 by @dependabot[bot] in #223
  • Bump golang.org/x/crypto from 0.27.0 to 0.28.0 by @dependabot[bot] in #224
  • Bump golang.org/x/crypto from 0.28.0 to 0.29.0 by @dependabot[bot] in #229
  • Bump Go to v1.23.3 by @twz123 in #232
  • Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot[bot] in #233
  • Bump golang.org/x/crypto from 0.29.0 to 0.30.0 by @dependabot[bot] in #234
  • Bump golang.org/x/crypto from 0.30.0 to 0.31.0 by @dependabot[bot] in #236
  • Enable DCO by @jnummelin in #244
  • Bump golang.org/x/crypto from 0.31.0 to 0.33.0 by @dependabot[bot] in #243
  • Bump golang.org/x/net from 0.24.0 to 0.33.0 by @dependabot[bot] in #245
  • Use full patch version for go directives in go.mod by @twz123 in #240
  • Bump golang.org/x/crypto from 0.33.0 to 0.34.0 by @dependabot[bot] in #246
  • Bump golang.org/x/crypto from 0.34.0 to 0.35.0 by @dependabot[bot] in #248
  • Bump golang.org/x/crypto from 0.35.0 to 0.36.0 by @dependabot[bot] in #251
  • Bump golang.org/x/crypto from 0.36.0 to 0.42.0 by @dependabot[bot] in #280
  • Add license scan report and status by @fossabot in #271
  • Bump actions/setup-go from 5 to 6 by @dependabot[bot] in #277
  • Bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in #276
  • Fix integation tests by @juanluisvaladas in #263
  • Bump actions/checkout from 4 to 5 by @dependabot[bot] in #274
  • Update workflows and go.sum in main by @kke in #300
  • Try multiple authentication methods of the same type by @kke in #299
  • Use .NET to calculate SHA256 hashes on Windows by @twz123 in #295
  • Finetune v2 naming conventions by @kke in #301
  • Minor v2 connection layer improvements to help with k0sctl migration by @kke in #302
  • Validate yaml compatibility with v0.x by @kke in #303
  • Remove eager Setup() call from ClientWithConfig.UnmarshalYAML by @kke in #304
  • Add Arch() to os.Release by @kke in #305
  • Preserve PATH when running commands in an empty env by @twz123 in #309
  • Bump golang.org/x/crypto from 0.49.0 to 0.50.0 by @dependabot[bot] in #307
  • Add MachineID and SystemTime to remotefs.OS interface by @kke in #306
  • OS resolver missing os-release file fallback / guess by @kke in #313
  • WithOSIDOverride client option by @kke in #314
  • Add Service.SetEnvironment and Service.DaemonReload by @kke in #315
  • Add WithPermissions option to remotefs.Upload by @kke in #316
  • remotefs.OS Chown, Touch, DownloadURL, FileContains, IsContainer by @kke in #318
  • Add Dir, Base, CommandExist to remotefs.OS interface by @kke in #319
  • Add ChownInt, ChownTree, ChownTreeInt to remotefs.OS interface by @kke in #320
  • Bump github.com/Azure/go-ntlmssp from 0.1.0 to 0.1.1 by @dependabot[bot] in #321
  • Add CreateTemp(dir, prefix) to remotefs.OS interface by @kke in #323
  • Add http.RoundTripper to remotefs FS via curl/PowerShell by @kke in #322
  • Add cmd.Proc and rename Formatter.Command to Formatter.Format by @kke in #326
  • Fix stat variant detection for uutils on newer Ubuntu by @kke in #330
  • Improve PowerShell EncodedCommand usage by @kke in #325
  • Fix golangci-lint failures from new linter version by @kke in #331
  • WriteFileAtomic by @kke in #333...
Read more