Skip to content

v0.48.0

Latest

Choose a tag to compare

@discostu105 discostu105 released this 04 Dec 16:32
· 30 commits to main since this release

This is a cleanup release: flags, command names, output and exit codes now follow one set of rules across every command. It also adds --admin-access for workflows and safer defaults for login and config.

Most renamed flags and commands stop with exit code 2 and an error that names the new spelling. Four changes work differently without an error, so they come first.

✨ Highlights

Works differently now

  • exec workflow waits for the run to finish (#858). The exit code is the run's result (0 success, 1 error or cancelled). Add --no-wait for the old behavior; --wait is gone.
  • Command-line mistakes exit with 2 (#856, #837): missing or invalid flags, wrong argument counts, conflicting flags. Exit 1 now only means the command ran and failed.
  • -o yaml uses the JSON field names (#861): bucketName, not bucketname. Old YAML files still apply. config view, get-contexts and alias list use the config file's keys; get copilot-skills prints name/type.
  • Agent mode prints one JSON envelope (#864) on every command, including ctx token, ctx current and version. Scripts inside an agent session can add --no-agent for the plain value. Streaming (--watch, --live, --follow, --stream) isn't available in agent mode.

Consistent names and flags

Before Now
Cloud flags (#836) --roleArn, --featureSets, --clientSecret, … --role-arn, --feature-sets, --client-secret, … (--locationFiltering → --locations)
Durations (#834) exec analyzer|slo --timeout 300 --timeout 5m
Substring search (#853) get workflows|users|groups|hub-extensions --filter foo --search foo
No waiting (#838) exec analyzer --wait=false --no-wait
Skip prompts (#810) restore … --force / -f --yes / -y (-f always means --file)
Follow logs (#810) logs workflow-execution -f --follow
--context (#833) diff --context N, exec copilot --context, verify openpipeline-matcher --context --context-lines, --chat-context, --stage (--context is always the dtctl context)
Commands (#862) get wfe-task-result, edit setting, describe hub-extensions, get <cloud> monitoring get workflow-execution-task-result, edit settings, describe hub-extension, get <cloud> monitoring-configs
Aliases (#863) az, exec cp, describe set, filter-segment(s), claim share analyzer(s), copilot, settings, segment(s), claim environment-share
Cloud selectors (#860) update gcp connection --name X update gcp connection X
Removed (#857) exec dql, exec workflow --params, apply --share-environment query, --input '<json>', share document <id> --environment link,public

Also: diff -o json-patch is now diff --format json-patch, and DTCTL_EXPERIMENTAL_ACCOUNT/_SERVE are now DTCTL_DEVELOPMENT=account,serve.

Input is validated before the API call (#837): unknown --type/--state/--trigger values (the error lists valid ones), a filter or --limit combined with an ID, extra arguments, and unused or missing template variables.

Safer defaults

  • Logging in again keeps a context's safety level (#803) instead of raising it to readwrite-all. Pass --safety-level to change it.
  • ${VAR} references stay references (#701) when ctx, config set or auth login rewrite the config.
  • Profiles allow only what they list: apply extension-config no longer allows every apply -f.

Workflow admin access (#702)

--admin-access reads and changes workflows you don't own, like admin mode in the Workflows app. Works on get, describe, edit, delete, history and restore for workflows and their executions, and on apply. Needs automation:workflows:admin. Experimental.

Embedding and Go SDK

  • APIError.Error() no longer includes the response body; read it from APIError.Details (#839).
  • engine.Parse reports MinimumScopes/MaximumScopes instead of RequiredScopes (#753).
  • engine.Request.Headers are sent on every platform call, e.g. for correlation IDs.
  • Hosts running invocations concurrently keep their own telemetry: dtctl's span joins the host's trace through the new tracing.Start (#882).
  • Removed: client.NewFromConfigWithOAuth (use NewFromConfig) and document.Handler.SetDocumentPublic (use MakeDocumentPublic) (#857).

🐛 Fixes

  • Key order is preserved through apply, create and edit in JSON and YAML, e.g. notebook table columns (#806, #852).
  • Query cancel: a query cancelled under engine.WithConcurrentExecution is now also cancelled in Grail.
  • Tracing: span names and process.command_args name only the command (dtctl query), not the query text (#882).
  • GCP monitoring configs without a service account can be written again (#751).
  • get snapshots finds snapshots of new Live Debugger rules (#789).
  • inventory arrivals keeps sampling past an empty rung (#811).
  • --check-scopes reports the right scope for each CoPilot skill (#739).
  • query suggests toUid("…") when an empty result compares a uid field to a string (#795).

🔧 Maintenance

  • Deprecated, still working: --name as a selector on cloud monitoring commands (removal planned for 0.50.0) and get trash --deleted-after|--deleted-before (use the new --deleted-since|--deleted-until, #854). Set DTCTL_NO_DEPRECATED=1 to find them in your scripts.
  • Flag deprecations are recorded in the stability manifest (#866).
  • Dependency updates: the codeql-action, scorecard-action, cosign-installer, create-github-app-token and sbom-action CI actions.

Full Changelog: v0.47.0...v0.48.0