Repository navigation
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,
@fileor@-(stdin), and must be an object whose values are all strings. It is validated before any network call. - Requires
--codeor-f. Without the flag the request body is byte-identical to before. appenginealso understands the new/sdk-versionsresponse 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.Parseanalyses a command line without running it (#713) and reports the flags and arguments it recognized (#742).engine.WithTransportinjects the HTTP transport (#752).engine.WithHeaderPolicylets the host refuse request headers a caller passes toexec api -H. dtctl ships no list of its own; a refusal is aheader_refusederror (exit 2) raised before any request. Without a policy nothing new is refused.
🐛 Fixes
- Auth scopes:
exec slonow requires onlyslo:slos:read; bucket commands get the storage management scopes;verify analyzer,shareandunsharereport the right scopes. describe actionsshows the missing approval flag (#748).query --include-typeskeeps array element types in the output (#741).
🔧 Maintenance
- Go module path moved to
github.com/Dynatrace/dtctl(and.../sdk) with the repository transfer to theDynatraceorg (#740). CLI users are unaffected; Go importers ofpkg/engineor 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.modand all workflows (#771). - Patched
x/net,brotliandklauspost/compress(#758). - Homebrew cask uses
postflight_stepsinstead of the deprecatedpostflight dostanza (#735). - dtctl is registered in the Juno/Backstage catalog (#757, #777).
- Dependency updates:
pflag1.1.0,gojq0.12.20,x/text0.44.0,x/sync0.25.0,x/sys0.50.0 (SDK), plus thecodeql-action,cosign-installer,download-artifact,upload-artifactandsetup-pythonCI actions.
Full Changelog: v0.45.0...v0.46.0