Skip to content

v0.11.0

Choose a tag to compare

@CyberarkReleaser CyberarkReleaser released this 14 Sep 07:24
· 8 commits to main since this release
120fe06

idsec-cli-golang - v0.11.0 (September 14, 2026)

120fe06

Features

  • New subcommand: idsec status — reports, per configured authenticator, whether you are authenticated along with username, endpoint, token expiry and time left. It reads local state only (profile plus cached keyring token), so it never triggers a login or a network call. Supports --json, and --quiet for exit-code-only scripting (0 authenticated, 2 profile missing, 3 no authenticators, 4 not authenticated, 5 token expired).
  • New subcommand: idsec query — runs a jq expression against JSON produced by an idsec command, read from --path or stdin, evaluated in-process so the jq binary is not required. Supports -n/--null-input, repeatable --arg/--argjson bindings, and --raw.
  • Credentials file for idsec login — an INI .idsecrc with one section per profile supplies <authenticator>_username / <authenticator>_secret for non-interactive logins. Auto-discovered from ./.idsecrc, ./.idsec/.idsecrc, ~/.idsec/.idsecrc or ~/.idsecrc, or named explicitly with --credentials-file / IDSEC_CREDENTIALS_FILE.

Enhancements

  • idsec exec: new --query with repeatable --arg/--argjson variable bindings applies a jq expression to a command's JSON output, taking precedence over --format and service-defined formatters.
  • idsec exec: new --dry-run prints a JSON plan — operation, profile, resolved arguments with secrets masked, and the list of secret fields — without authenticating, loading a profile, or executing the action; --request-file values are merged into the plan.
  • idsec login: new --query (implies --show-tokens) filters the JSON token output, so a single value such as a token or expiry can be captured directly.
  • idsec login: credentials can now be supplied through IDSEC_<AUTHENTICATOR>_USERNAME, IDSEC_<AUTHENTICATOR>_SECRET, and IDSEC_<AUTHENTICATOR>_SECRET_FILE (a 0600 file, preferred over putting the secret in the environment); resolution order is flag → environment variable → .idsecrc → profile.
  • idsec login: failures now exit non-zero and print a stable, greppable line to stderr — idsec: login failed reason=<REASON> with reasons including PROFILE_NOT_FOUND, USERNAME_REQUIRED, SECRET_REQUIRED, CONFIG_ERROR, MFA_REQUIRED, ENDPOINT_UNREACHABLE, CERTIFICATE_ERROR and KEYRING_FAILURE — so scripts can branch without parsing prose.
  • idsec login: new --no-credentials-file disables .idsecrc auto-discovery, so a credentials file is read only when you name it explicitly.
  • idsec configure: new --dry-run validates and prints the profile that would be saved without writing it, and new --query/--arg/--argjson filter the profile JSON; the two flags compose.
  • idsec profiles list: new --query/--arg/--argjson filter the listed profiles, and an empty result set is always a valid [] rather than null.
  • --raw: in addition to disabling colored output, it now prints a top-level string result unquoted when used with --query (like jq -r), which keeps a captured scalar clean.

Install

docker pull cyberark/idsec-cli-golang:0.11.0

Full diff: v0.10.0...v0.11.0