Skip to content

v0.46.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 13:55

0.46.0 (2026-11-18)

This release adds --sdk-major-versions to exec function and --max-result-bytes to inventory, fixes several auth scope reports, and gives embedding hosts more control over pkg/engine.

✨ Highlights

Pin SDK package versions in exec function (#760)

Ad-hoc execution (--code / -f) can now pin SDK package major versions through the function executor's sdkMajorVersions field.

dtctl exec function -f script.js --sdk-major-versions '{"@dynatrace-sdk/adhoc-utils":"1"}'
dtctl exec function -f script.js --sdk-major-versions @sdk-versions.json
  • The value is inline JSON, @file or @- (stdin), and must be an object whose values are all strings. It is validated before any network call.
  • Requires --code or -f. Without the flag the request body is byte-identical to before.
  • appengine also understands the new /sdk-versions response structure (#767).

inventory --max-result-bytes

Cap the result size of every discovery probe in bytes (0 = platform default). Negative values are rejected.

Embedding: analyse, inject, refuse

For services that embed pkg/engine:

  • engine.Parse analyses a command line without running it (#713) and reports the flags and arguments it recognized (#742).
  • engine.WithTransport injects the HTTP transport (#752).
  • engine.WithHeaderPolicy lets the host refuse request headers a caller passes to exec api -H. dtctl ships no list of its own; a refusal is a header_refused error (exit 2) raised before any request. Without a policy nothing new is refused.

🐛 Fixes

  • Auth scopes: exec slo now requires only slo:slos:read; bucket commands get the storage management scopes; verify analyzer, share and unshare report the right scopes.
  • describe actions shows the missing approval flag (#748).
  • query --include-types keeps array element types in the output (#741).

🔧 Maintenance

  • Go module path moved to github.com/Dynatrace/dtctl (and .../sdk) with the repository transfer to the Dynatrace org (#740). CLI users are unaffected; Go importers of pkg/engine or the SDK must update their imports (dynatrace-oss → Dynatrace).
  • Windows binaries are now Authenticode-signed in the release pipeline (#679).
  • Go 1.26.11 in go.mod and all workflows (#771).
  • Patched x/net, brotli and klauspost/compress (#758).
  • Homebrew cask uses postflight_steps instead of the deprecated postflight do stanza (#735).
  • dtctl is registered in the Juno/Backstage catalog (#757, #777).
  • Dependency updates: pflag 1.1.0, gojq 0.12.20, x/text 0.44.0, x/sync 0.25.0, x/sys 0.50.0 (SDK), plus the codeql-action, cosign-installer, download-artifact, upload-artifact and setup-python CI actions.

Full Changelog: v0.45.0...v0.46.0