Skip to content

Releases

v0.1.0-beta.2

Choose a tag to compare

@github-actions github-actions released this 19 Nov 21:55
Immutable release. Only release title and notes can be modified.

Added

  • rancher app install and rancher app uninstall install and remove a chart from a ClusterRepo through Rancher. Rancher runs Helm in its own pod, as you or as the service account the ClusterRepo names, and records the release as an App, as the Rancher UI does. The preview is built from what the command reads from the server. Add --apply to install, and --apply --yes to uninstall. Values from your --values files are never printed, except a registry host. The namespace must already exist.
  • rancher app install also sends values that describe the cluster, under global.cattle, as the Rancher UI does. It adds each global.cattle value only where your values files set none, and the preview shows them. When the command cannot read them, it leaves them out with a warning.
  • rancher app install --system-default-registry <host> sets the image registry for a chart that declares one. Without the flag, the registry comes from your values files or the chart's defaults. If they set none, it comes from the cluster's registry, else from Rancher's system-default-registry setting, as in the Rancher UI. --no-system-default-registry sends no registry. Either flag on a chart that declares no registry is refused with VALIDATION (exit 2). app upgrade takes both flags too.
  • rancher app install --wait and rancher app uninstall --wait wait until Helm's run ends and report how it ended. An install returns the release's revision and the status deployed, and an uninstall returns once the App is gone. A failed run ends with GENERIC (exit 1, not retryable). The error names the command to run next, and Helm's exit code when Rancher reports one. --timeout alone also waits. The timeout defaults to 55m, the longest allowed. Ctrl-C ends the wait with INTERRUPTED (exit 130) while Helm's run goes on in Rancher.
  • rancher app upgrade changes a release that Rancher shows as an App. It calls Rancher's upgrade action to change the chart version, the values, or both. It starts from the release's current values and merges each --values file over them. --reset-values skips the release's values and sends only your files, plus the cluster and registry values the CLI adds. The preview is built from what the command reads from the server. Add --apply --yes to upgrade, and --wait to wait for Helm's result.
  • rancher create project --display-name <name> with no id creates a project with an id Rancher generates. Without an id, --display-name is required. The dry-run preview shows p-* instead of the id, because Rancher generates a different id when you run the command with --apply. The --apply result shows the generated id (data.metadata.name with -o json). With an id, --display-name defaults to the id.
  • rancher get, patch and delete projectroletemplatebinding take --cluster and --project, as grant and revoke do. They find the project's backing namespace themselves. You no longer type -n <cluster>-<project>. Pass both --cluster and --project. --project takes the project's id or display name. Giving only one of them is refused with VALIDATION (exit 2).
  • rancher get, patch and delete managedchart show, change and delete Rancher's ManagedCharts. A ManagedChart installs a Helm chart through Fleet on its target clusters. get shows the chart, version and ready clusters, and hides the Helm values. patch and delete need --apply --yes. A delete makes Fleet uninstall the chart from every target cluster, unless its target sets keepResources: true. A create resource preview of a ManagedChart warns that Rancher installs the chart on every target cluster.
  • rancher get authconfig lists and shows Rancher's auth configs, with their credentials hidden. It shows each one's type, whether it is enabled, its access mode, the number of allowed users and groups, and its cleanup setting. The command hides credential fields and references to the Secrets that hold credentials. No flag shows them. Rancher before v2.16 keeps an auth config for every auth provider it supports, most of them disabled. patch, delete and creating one from a manifest are refused, with the reason.
  • rancher create password-change-request --current-password-stdin sends your current password with the new one. With --password-stdin, the command reads two lines from stdin: the current password, then the new one. Rancher asks for the current password when you change your own password without permission to change every user's password. In PowerShell, use PowerShell 7.1 or later: Windows PowerShell 5.1 sends a byte order mark before piped text, and the CLI then receives a different password.
  • rancher get role, rolebinding, clusterrole and clusterrolebinding list and show Kubernetes RBAC objects. They show the columns the cluster's API server returns, and completion offers their names. They are read-only. patch, delete and creating one from a manifest are refused before any request. The error points to kubectl (through rancher kubeconfig) and to rancher grant or rancher revoke.
  • rancher inspect cluster --registration builds the node registration commands of a custom cluster, with the options the Rancher UI offers. Pass --etcd, --controlplane and --worker (all three when none is given), --node-name, --address, --internal-address, --label and --taint. --windows builds the Windows command for clusters where the Rancher UI shows one. These commands are under registration.withOptions. The registration commands Rancher returns still appear as before. A value with a character the Rancher UI would remove is refused before any request.
  • rancher cluster upgrade <cluster> --k8s-version <version> upgrades an RKE2 or K3s cluster that Rancher provisions or that is imported. It accepts the versions the Rancher UI offers: a release of the cluster's own distribution that the server lists, not lower than the current one. The preview comes from a server dry-run and names the newest successful etcd snapshot, because the upgrade cannot be reversed with this command. Add --apply --yes; the command waits until Rancher reports the upgrade done (--wait=false returns at once). Completion offers only the clusters and versions the command accepts.
  • rancher cluster save-etcd-snapshot <cluster> takes an etcd snapshot of an RKE2 or K3s cluster that Rancher provisions, as the Rancher UI does. The preview comes from a server dry-run; add --apply --yes. The command waits until Rancher reports the snapshot taken, then lists the cluster's snapshots (--wait=false returns once the server accepts the request). It refuses while another operation is in progress on the cluster and while the cluster is not ready. If you run the command again while its own snapshot is in progress, it changes nothing and waits for that snapshot.
  • rancher node drain <node> --cluster <cluster> drains a node through Rancher, as the Rancher UI does, and rancher node stop-drain stops a drain. Rancher cordons the node and evicts its pods. The preview lists the pods on the node and what the drain does to each; add --apply --yes to drain. The command waits until Rancher reports the drain done or failed; --wait=false returns once Rancher accepts the request. It works on worker nodes that are active or cordoned. Both commands need access to Rancher's local cluster; without it they end with RBAC (exit 6).
  • rancher get management-node --cluster <cluster> shows the management node Rancher keeps for each node, with its drain state. It shows the columns NODE, DRAINED, REQUEST and WORKER. The argument is the management node's id. If you pass a node's name instead of the id, the error names the management node's id. patch and create resource of a management node are refused, and it has no delete. Like node drain, it needs access to Rancher's local cluster.

Changed

  • Every rancher delete now waits until the object is gone. Before, a delete returned once the server accepted the request, while a pod, a namespace or a project could still be terminating. Now it waits for up to --timeout (default 5m); --wait=false returns at once and prints deletion started, and -o json has data.waited. A timeout or interrupt is an error that says the deletion was requested and names a get command to check it.
  • rancher delete project --delete-namespaces waits until everything is gone. Before, it returned as soon as Rancher accepted the requests and refused --timeout. Now it waits for the namespaces, then deletes the project and waits for it, all within --timeout. If a namespace delete fails or a namespace is not gone in time, the project is kept.
  • Kubernetes admission refusals report VALIDATION (exit 2), not RBAC. Before, a write refused by a ResourceQuota, a LimitRanger, PodSecurity, a ValidatingAdmissionPolicy or one of several other admission plugins was RBAC (exit 6). Now it is VALIDATION with the server's message. A temporary 403 from admission is a retryable GENERIC (exit 1) error. A 409 from an admission webhook is a CONFLICT that is not retryable.
  • When Rancher denies access to a cluster or project id, the CLI reports RBAC (exit 6), not NOT_FOUND. Before, --cluster <id> for a cluster you may not read said the cluster did not exist. Now the error says you cannot read it and lists the clusters you can read. A mistyped id reports RBAC too, unless you can read every cluster or project. rancher access projects --cluster still reports NOT_FOUND.
  • Table cells and -o name names with hidden characters print in double quotes. Table and wide cells, headers and -o name names with a control character, an invisible character or an invalid UTF-8 byte now print in double quotes, with that character escaped instead of removed. A name with a zero-width space prints as "web\u200b1", not ...
Read more

v0.1.0-beta.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 22:05
Immutable release. Only release title and notes can be modified.

Added

  • rancher get clusterrepo, rancher get app and rancher get operation are new. They list and show the Helm repositories, the installed apps and the Helm operations of any cluster you name with --cluster, the local cluster included. App values, chart default values and install notes are hidden from every output. rancher-cli does not change, delete or create these objects; each of those commands is refused with a reason, and the refused patch names the rancher get command that reads the object.
  • rancher get etcd-snapshot is new. It lists and shows the etcd snapshots Rancher records for a cluster, in fleet-default by default. --selector rke.cattle.io/cluster-name=<name> lists one cluster's snapshots. It is read-only: patch, create and delete are refused.
  • rancher charts is new. It lists the charts each ClusterRepo of a cluster offers. Each shows the version the Rancher UI picks by default: the newest that is neither a prerelease nor deprecated. --repo <name> reads one repository, --all-versions lists every version in the order Rancher serves them, and --include-deprecated adds deprecated versions. Without --repo, a repository whose index cannot be read is skipped with a warning.
  • rancher get, patch and delete now take six more Kubernetes kinds. They are HorizontalPodAutoscaler (hpa), LimitRange (limits), NetworkPolicy (netpol), PodDisruptionBudget (pdb), ResourceQuota (quota) and StorageClass (sc), and create resource -f takes their manifests. A patch of a NetworkPolicy, ResourceQuota or StorageClass needs --yes. Every delete shows a preview first and needs --apply and --yes.
  • rancher get helmop and rancher get fleet-workspace are new. helmop lists, shows, patches and deletes Fleet HelmOps in a Fleet workspace (fleet-default unless you pass --namespace). Deleting a HelmOp uninstalls its chart from every target cluster unless spec.keepResources is set, and the preview says so. fleet-workspace lists, shows and patches Fleet workspaces; a patch needs --yes, and rancher-cli does not delete workspaces.
  • rancher auth login now signs in through a Generic SAML auth config. Rancher v2.16 adds this provider, type genericSAMLProvider and provider name genericsaml. The sign-in opens your browser, as it does for the other SAML providers. --auth-provider takes the provider name or the auth config's name, and TAB completion offers it.
  • rancher telemetry upload is a new command that works only in a development build. It appears in help, rancher schema and TAB completion. In a release build it fails with VALIDATION (exit 2) and sends nothing. Release builds still send no usage events.

Changed

  • get <kind> --wait now watches the object and sees a change within a fraction of a second. Before, a wait checked the object with a GET every 5 seconds. The fast wait needs the list and watch permissions on the object. With get alone, or when the server refuses a List or a watch, the wait checks every 5 seconds as before. An AUTH error (exit 3) from the List or the watch may name list or watch.

  • The OIDC client commands now watch the client and see the controller's update within a fraction of a second. Before, create oidc-client and oidc-client add-secret, rotate-secret and remove-secret checked the client with a GET every 2 seconds. The fast wait needs the list and watch permissions on oidcclients. With get alone, or when the server refuses a List or a watch, they check with a GET instead. The second GET comes 4 seconds after the List, then one every 2 seconds.

  • --auth-provider now fails with CAPABILITY_UNSUPPORTED (exit 11) when it names an auth config rancher-cli cannot sign in through. Before, it failed with NOT_FOUND (exit 4) and did not say what to do. This covers, for example, GitHub, GitHub App, Google, OIDC, Keycloak OIDC, generic OIDC and Cognito, named by auth config name, provider type or provider name. The hint logs you in with an API token you create in the Rancher UI: rancher auth login '<name>' --url '<server>' --token-stdin.

  • A message about a token rancher-cli could not delete now names who can delete it and the command to run. Before, when a login was cancelled while it waited, most logins said only that the token could not be revoked. A command that only an administrator can run now says so. A SAML login's token is called a kubeconfig token, Rancher's name for it, never a session token.

  • config status and config set-token-reuse now say who can delete a token rancher-cli left behind. Before, when the token's owner was not known, they told you to delete it and named nobody. Now they say that its owner or an administrator can delete it. For a management token, they say that an administrator can.

  • create user now binds the global roles that Rancher marks as defaults for new users, such as user. Before, it bound no global role, and the new user could not log in with rancher-cli. --global-role <id> binds the roles you name instead, and the command warns when none of the roles you name allows creating tokens. The command's output lists the bindings in globalRoleBindings.

  • A login that fails because the user may not create tokens now names the role an administrator must grant. Before, it told you to log in again, which failed the same way. The error says the user has no role that allows creating tokens. It also shows the rancher grant command that gives the user the global role user. An administrator runs it, and it names the user's id when that is known. This applies to auth login and to logins by the kubectl plugin.

  • rancher schema, its help, the environment variable descriptions and the start-up errors now use plainer words. For example, rancher schema errors say "argument" and "remove" instead of "selector" and "drop". The table of contents and a command group card say "to see one kind, run: rancher schema ". The notice for a token or secret shown once now says "shown once", as the text output and the docs already did. A capability error prints "internal error:" once.

  • Commands that errors and hints suggest now name a non-default config directory with --config. Before, they named no directory, and a pasted command could use the default one instead. Warnings, command output (the JSON and YAML of a failed logout or token delete too) and the text of the access commands name it too, and every command that errors, hints and help suggest starts with rancher. The errors for an unknown command or flag still print the plain command.

  • A command that an error or hint suggests now runs as you paste it. Before, some lacked a flag or value, had text glued after them, or changed something without a preview. A name that starts with - now gets -- before it, where it was read as a flag. A suggested change carries --dry-run: check the preview, then run it with --apply (and --yes when the change is destructive). The revoke command in the kubeconfig file header and the recovery after a failed create carry --apply --yes.

  • create kubeconfig on a server older than Rancher 2.15 now gives no hint, and its message holds the command to run. Before, the hint was a command that waited for a token on stdin. The command in the message reads an API token piped on stdin, and the message still names the Rancher version the command needs. After a kubectl plugin login, the message tells you to set RANCHER_CLI_TOKEN to an API token instead.

  • auth get-token without --cluster now tells you to pass a cluster id or name, or --user-id. Before, it said only "--cluster is required". --user-id gets a token for Rancher itself. The error stays VALIDATION (exit 2) and its hint shows how to list clusters. If you also pass --server, the error explains that rancher access clusters lists the clusters of your current server, not of the server you passed.

  • skill install now leaves a target alone and reports unchanged when it already holds the same files. Before, a repeat install reported changed for every target and rewrote every file. --force still rewrites. Each row now also shows the verdict skill status reports for that target, so a repeat install reads in-sync.

  • Completion and help no longer offer flags that a command does not take. Before, TAB completion and --help listed --dry-run, --apply, --yes and --allow-deprecated on every command, and --read-only and --project on every command group. Now a command lists a flag only when it accepts it, and a group when a command under it does. Typing a flag gives the same result as before.

  • get now shows a hint when you name a cluster role template binding or a project without --cluster. Before, it showed none, unlike delete and patch. The hint is rancher access clusters, which lists the cluster ids you can pass with --cluster. The error stays VALIDATION (exit 2).

Security

  • get bundle, get bundledeployment and get helmop now hide Helm values. Before, -o json, -o yaml and templates, the previews of patch and create resource, and the result of an apply showed the Helm values and templateValues of a bundle or bundle deployment, which often hold credentials. Now they are hidden from every output, also in each item of the targets of a bundle or HelmOp and in the options and stagedOptions of a bundle deployment. The kubectl last-applied annotation of these objects is hidden too.

  • support-bundle now leaves out an entry whose name is not a plain file name. Before, a cluster id, namespace, pod or container name with a /, .. or a newline went into the archive entry name unchanged, and a NUL byte stopped the whole bundle. A left-out entry shows as an error: item in manifest.json, counts in errors, and a warning names the value. Ordinary name...

Read more

v0.1.0-alpha.8

v0.1.0-alpha.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Oct 03:29
Immutable release. Only release title and notes can be modified.

Added

  • Each command now records a usage event in the telemetry directory of your config directory, on by default. An event holds the command's name and the names of the flags you typed, never their values, plus details such as the outcome, the exit code, the OS and the CLI version. --help, --version, completion and the telemetry commands record nothing. Nothing is recorded until your config directory exists. rancher auth login, for example, creates it. Events stay on your machine. To stop recording and delete what is recorded, run rancher telemetry off. To stop without deleting, set RANCHER_CLI_TELEMETRY=false.
  • Usage events now record the version, edition and install id of the Rancher server a command reached. After a command gets a response from Rancher, the CLI asks that server for its version and edition, with no token. Usage events of the commands you run later include the server's version and edition. With recording off, the CLI sends none of these requests.
  • Some commands also read Rancher's install-uuid setting, for the install id in usage events. These include access clusters, access projects, inspect cluster, auth status, auth login, and any command that names a cluster other than local with --cluster or a project by name with --project. auth login does not read it for a token you pasted with --no-verify. With recording on, the first auth login creates the config directory but records no usage event. It saves the server's version and edition, and the install id when it got one, under telemetry instead.
  • The kubectl plugin now reads Rancher's install-uuid setting when it creates a credential, for the install id in usage events. It uses the token you signed in with, or your stored login. When kubectl gets a cached credential, the plugin sends nothing. During a sign-in, the plugin also asks for the version and edition, and kubectl can wait up to 2 seconds longer. With recording on, the first plugin call that creates your config directory records no usage event. It saves the server's version and edition, and the install id when it got one.
  • Asking a server for its version, edition and install id can delay a command's exit by up to 2 seconds. The requests run after the command prints its output. After the server returns a value, the CLI asks it again in 24 hours. After a 403 or 404 it waits 6 hours. After any other failure it waits an hour.
  • New rancher telemetry commands turn recording on or off and show or delete the recorded usage events. status shows whether recording is on and what decides it: the RANCHER_CLI_TELEMETRY variable, the telemetry key in config.yaml, or the default. show lists the events, and show -o json prints every field. on sets the key to true. off sets it to false and deletes everything recorded. reset also deletes everything recorded, but keeps the key. A true or false in the variable overrides the key. config edit refuses an edit that turns recording on or off.
  • Each release now includes rancher-schema.json, the schema manifest of that build. It is the output of rancher schema --all -o json and lists every command and flag, the names a usage event can carry. It is listed in SHA256SUMS and has a build attestation like the binaries.
  • Requests the CLI sends to Rancher now carry a User-Agent that names the CLI, its version and how it was started. The value is cli.rancher.io/<version> (<os>/<arch>), plus exec-plugin when kubectl runs the CLI as its credential plugin, agent=<name> inside a recognized AI coding assistant's session, and ci in a CI run. When Rancher's audit log is on at level 1 or higher, it records the value.

Changed

  • The description of each token the CLI creates now starts with cli.rancher.io login @ <host>, where <host> is your machine's name. Before, it started with rancher-cli. Tokens created earlier keep their old description.
  • Every create, update and patch the CLI sends to a Kubernetes API now names cli.rancher.io as its field manager. Before, the token create behind a login or a kubectl plugin sign-in, and the access review requests, sent none. An object's managed fields (kubectl get <kind> <name> -o yaml --show-managed-fields) name the CLI for the fields it wrote. An ext Token still lists rancher as its manager, because Rancher's token API does not keep the request's field manager.
  • get <kind> <name> now waits when you give --for or --timeout on their own, as it does with --wait. Before, either flag without --wait failed with VALIDATION (exit 2). --timeout alone waits for the kind's default wait condition, and a kind with none refuses it and asks for --for. --wait=false together with --for or --timeout is refused.
  • An error that lists only the first 10 candidates now says how many there were. Before, nothing showed that the list was cut short. grant, revoke, inspect user, --as on the access commands and rancher schema <name> show candidates (10 of 37): ..., and the JSON error carries candidatesTotal with the size of the full list.
  • The display name column of get cluster, get project, get user, get roletemplate, get nodedriver and get cloud-credential is now headed DISPLAY NAME. Before, it read DISPLAY, or DISPLAYNAME for node drivers. get oidcclient now heads its expiry columns TOKEN-EXPIRATION and REFRESH-EXPIRATION, where it read TOKEN-TTL and REFRESH-TTL. The -o json output is unchanged.
  • The help of the generated get, patch and delete commands and several error messages now use plainer words. For each kind that has no delete, rancher schema now gives a reason that fits that kind. create resource with a management token manifest now says cannot create a management-token from a manifest and points to rancher create token.
  • create cluster now warns creatorId annotation not set when it cannot set the creatorId annotation. Before, the warning read creatorId not stamped. The help of create cluster and create machine-config now uses plainer words, and says that --apply stops when the server rejects the dry-run.
  • When a value is the id of one object and the display name of others, the warning now says which one the command uses. It uses the object with that id, and the warning says how to pick one of the others. This applies to --cloud-credential and to cluster and project names.
  • REFERENCE.md's sections on kinds, verbs and commands that combine several steps now use plain words. They also correct what happens when you delete several kinds, and use the column headers the CLI now prints.
  • README.md now uses plain words and states three facts correctly. It now says that the kubectl plugin asks you to log in to each cluster only when no rancher auth login credential is stored. It also says that delete exists only for kinds that can be deleted, and that most commands, not all, list a contract and a stability level in rancher schema.
  • The messages of create resource, get, patch, delete project and get --wait now use plainer words. For example, patch errors say patch operation instead of patch op, and an internal fault starts with internal error: instead of command bug:. Error codes and exit codes are unchanged.
  • The global flags, the skill commands, the completion scripts and several error messages now use plainer words. For example, the -o help says name prints the NAME column, the --read-only help says it applies to the run, and skill messages say what rancher-cli did or did not install. Error codes and exit codes are unchanged.
  • The cluster autoscaling and scale commands, get kubernetes-versions and the cluster registration token commands now use plainer words in their help and messages. Some texts were wrong and are fixed: delete provisioning-cluster local now gives the actual reason it refuses, and the etcd note in a patch provisioning-cluster preview now says that removing members can lose quorum, not that it always does.
  • The install scripts and the bug report form now use plainer words in their messages and fields. Before, install.sh printed (HTTP error) when its request for the release metadata got no HTTP status. It now prints no HTTP status in that case. The flags, exit codes and environment variables of both scripts are unchanged.
  • inspect, images, logs, usage and support-bundle now use plainer words in their help, text output and messages. The help of logs --container now says that without it the command reads the containers and init containers of each pod. Before, it said the main container. Error codes and JSON field names are unchanged.
  • create token, create kubeconfig, create user and create password-change-request now use plainer words in their help and messages. For example, the create token --ttl help now says token expiration. Error codes and exit codes are unchanged.
  • The command group titles, the global flag help and the usage errors now use plainer words. For example, rancher --help lists Auth commands instead of Auth operations, and a bad value for a bool flag before the command, as in rancher --debug=maybe, says the value must be true or false instead of parse error. Error codes and exit codes are unchanged.
  • The messages every command shares now use plainer words. For example, a dry-run preview in text output ends with dry-run preview - re-run with --apply to apply the change instead of dry run - re-run with --apply to execute. For a destructive change it says re-run with --apply --yes instead. Error codes and exit codes are unchanged.
  • When you give an unknown flag with no command, or with a command that takes a secret, the error now names its position. For example, rancher --bogus prints `unknown flag at argument ...
Read more

v0.1.0-alpha.7

v0.1.0-alpha.7 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 21 Oct 21:42
Immutable release. Only release title and notes can be modified.

Added

  • auth get-token, the kubectl plugin, now accepts --user-id without --name, the form Rancher v2.16 (main, not yet released) writes into kubeconfigs. Rancher writes it only when its kubeconfig-exec-get-token setting is true and kubeconfig-generate-token is false, and adds --cluster only for a cluster with an authorized cluster endpoint. The plugin uses a saved login of that user for the server. Without --cluster, it creates a token that is not tied to one cluster, and kubectl reaches the cluster through Rancher. It gives kubectl a token only if Rancher says the token belongs to that user.
  • With --user-id, the kubectl plugin now returns a token to kubectl only if it was created through the auth config you named with --auth-provider. The value must be the auth config's exact name, such as corp-ldap; without --auth-provider, only the user is checked. A value that is no auth config's name, such as the provider type openLdapProvider, fails with NOT_FOUND (exit 4) when the plugin has to sign in. When the saved login was made through another auth config, the plugin revokes the token it just created and the call fails with AUTH (exit 3).
  • A login now records the auth config its token was created through. config info shows it as tokenAuthConfig, auth status as authConfig, and the auth login result as tokenAuthConfig. A pasted token, including an API key from the Rancher UI, or a login from an earlier release has no auth config recorded. The first kubectl call with --user-id and --auth-provider records it when the saved login has a user id; you do not need to log in again.
  • rancher kubeconfig now writes --auth-provider beside --user-id when the login records its auth config.
  • auth login now warns when you log in to a server entry as a different user than the one saved for it. The login still works; the warning shows the old and the new user id.
  • auth login now warns when you log in to a server entry through a different auth config than the one saved for it. The login still works; the warning shows the old and the new auth config. It says nothing when the earlier login has no auth config recorded.
  • patch <kind> accepts -p as the short form of --patch, as kubectl does.
  • patch <kind> --type merge applies an RFC 7386 JSON merge patch. The default is still --type json, an RFC 6902 JSON array. A merge patch replaces each list it contains in full, and the dry-run warns when a list loses entries the object has.
  • Tab completion for --auth-provider now suggests the names of the server's enabled auth configs that the CLI can sign in with. It works on auth login, auth get-token and rancher token, without sending your token.
  • rancher delete project --delete-namespaces deletes every namespace in the project, even ones moved into it, then the project. Each namespace to be deleted is checked with a dry-run first, and nothing is deleted when one is refused. default, kube-system and kube-public, and local and fleet-local on the local cluster, are never deleted.
  • rancher get and rancher patch now complete role template and global role ids. Hidden and locked ones are offered too.

Changed

  • The CLI is now built against the Kubernetes 1.37 client libraries, the version Rancher v2.16 (main, not yet released) uses. Commands and output are unchanged.
  • With token reuse on (rancher config set-token-reuse on), a call with --user-id now saves one server entry for each server and user, named exec-login-<host>-<user id>. With --auth-provider there is one for each auth config too, and its name also ends in the auth config. The plugin never writes a login over an entry that holds another user's login or a login through another auth config.
  • With token reuse on, a kubectl call without --user-id now fails when the server has several exec-login- entries. The plugin looks at the exec-login- entries only when none of the server entries you created with auth login has a token it can use for the call. The error is AMBIGUOUS_SELECTION (exit 2) and shows how to log in to an entry instead.
  • auth logout, auth delete-token and config delete-server now report a certificate failure as TLS_TRUST. Before, a token they could not revoke because of the server's certificate showed Go's raw TLS error with no code. Now its notRevoked entry in the output has code: TLS_TRUST, a message that says how to fix it, and the certificate's details. Exit codes are unchanged.
  • When a revoke fails because the server's CA is unknown, the warning now tells you to save the CA before you log in again. Without the saved CA your next login fails on the same certificate and cannot retry the revoke. The warning gives the command: rancher config update-server <entry> --cacert <file>.
  • rancher auth login <entry> no longer suggests --cacert for a certificate error. That command refuses --cacert without --url. If the server's CA is unknown, the error now tells you to save it with rancher config update-server <entry> --cacert <file>. If the certificate names a different host, it tells you to check the server URL saved for the entry.
  • Certificate errors and the auth login trust prompt use plainer words. The error says to get the CA from a source you trust, and both say to confirm the fingerprint with the server's administrator, instead of "out of band" or "a trusted channel".
  • A positional argument is now used exactly as typed, spaces included. Before, the spaces around it were dropped: rancher get pod ' web' looked up the pod web. Now it looks up a pod named web.
  • A bool flag followed by a separate true or false, as in --dry-run false, now fails with VALIDATION (exit 2). Before, rancher schema --dry-run false failed with DRY_RUN_NOT_APPLICABLE (exit 2). The error shows the word that followed the flag, and 1, 0, t and f are refused the same way. Write the value joined with =, as in --dry-run=false; --dry-run=1 and --dry-run=t still work.
  • The error for words typed after a lone - now reads 'x' 'y' after a - on its own; a - on its own ends the command line. Before, it read a - on its own ends the command line, so the words after it would be ignored: 'x' 'y'. The command still fails with VALIDATION (exit 2); only the text changed.
  • A bool flag with only whitespace after =, typed as '--yes= ', is now refused even when --help or --version follows it. Before, '--yes= ' --help showed help, '--yes= ' --version showed the version, and '--yes= ' nosuch failed with the unknown-command error. Now all three fail with VALIDATION (exit 2): --yes= has an empty value; a bool flag typed with = takes true or false.
  • --auth-provider now takes an auth config name, such as corp-ldap. Without --user-id, a provider type such as openLdapProvider still works; if it matches more than one auth config, the CLI asks you to pick one or, when it cannot ask, lists them in the error. With --user-id, only the exact auth config name works. The sign-in menu lists auth configs. When a provider type has several, a password or OAuth sign-in says which one it uses.
  • Error, warning and help messages now give the fact first, then the rule, usually after a semicolon. Before, many of them joined the two with a comma and "so". The facts, flags and commands in each text are unchanged; a script that matches the old wording of one of these messages must match the new one.
  • Commands that take a user, project, role template, global role or node driver now take its id as the argument. That is get and patch for all five and delete for a user or project. The argument shows as <id> ([id] on get). If what you typed is the username or display name of exactly one object, the NOT_FOUND error gives that object's id, lists it in candidates and suggests rancher get <kind> '<id>'. A project member who types a project's display name gets the same, and the code stays RBAC.
  • When patch refuses a patch, the error now says in plain words why. Before, the VALIDATION (exit 2) message quoted Go's JSON decoder. If you give a JSON object without --type merge, the error now tells you to pass --type merge. patch now reads a patch file that starts with a UTF-8 byte-order mark.
  • rancher delete project now lists the namespaces Rancher deletes with the project and the ones it keeps. Before, its warning said namespaces created through Rancher are deleted with the project and namespaces moved into the project are kept. Rancher deletes the namespaces that carry the field.cattle.io/creatorId annotation and keeps the others. The dry-run and the result list them, and -o json has every one in data.objects.
  • A namespace is now part of a project only if its field.cattle.io/projectId annotation names it; the project label alone is no longer enough. This applies wherever --project narrows a command to a project's namespaces, and to usage --by project and project add-namespace. The one exception is project remove-namespace: it still accepts a namespace that has the project label but no annotation, and it removes the label.
  • Live completion now shows a user, project, cluster, role or node driver id with its name beside it. For example, rancher delete user <TAB> lists u-abc12 with alice (Alice Smith). The inserted value is still the id. bash shows names on the second TAB, on bash 4 and later only.
  • rancher get now prints built-in kinds with the same columns and cells as kubectl get. This covers nodes, pods, deployments, services and the other 13 Kubernetes kinds. The table comes from the cluster's API server, and a node shows NotReady, or Ready,SchedulingDisabled when cordoned, as kubectl does. -o wide adds the server's extra columns, and a list of a namespaced kind ...
Read more

v0.1.0-alpha.6

v0.1.0-alpha.6 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 15 Oct 04:44
Immutable release. Only release title and notes can be modified.

Added

  • create project --container-default-resource-limit sets default CPU and memory requests and limits for the project's containers. Give it as limitsCpu=500m,limitsMemory=512Mi,...; completion offers the keys. The limits apply to containers in the project's namespaces.
  • create user takes --description and --must-change-password. --must-change-password makes the user set a new password at their next Rancher UI login. It is a bool flag: pass it alone, or with = (--must-change-password=false). The result includes description and mustChangePassword when the server stored them.
  • With --user-id, auth get-token gives kubectl a token only if Rancher reports that it belongs to that user. If a stored login belongs to another user, the command refuses it before sending any request. If a token created from a stored login turns out to belong to someone else, the command revokes it and does not cache it, and it checks a new sign-in the same way. If a login entry the kubectl plugin created belongs to another user, the command skips it without an error, unless --name names that entry.
  • Without ext tokens on the server, auth get-token --user-id refuses stored logins. Rancher cannot report their owner, so the command fails with CAPABILITY_UNSUPPORTED (exit 11). Login entries the kubectl plugin created itself are not affected.
  • rancher kubeconfig writes --user-id into the exec entry when the login has its owner recorded. If someone later logs that entry in as a different user, kubectl calls through the file fail instead of running as that user. When the login has no owner recorded, a notice tells you which login to run so the owner is recorded, and then to run rancher kubeconfig again.
  • access clusters shows which clusters you, or the user named with --as, can reach. It prints one row per cluster you can see, marked reachable, refused, or unknown when the check failed, with the cluster, project and global role bindings that grant access. Reachable means Rancher's proxy accepts their requests to the cluster; access list shows what they may do there. The command exits 13 when any row is unknown.
  • access projects shows which projects you, or the user named with --as, can see and belong to. The output groups projects by cluster, and the cluster lines are the same ones access clusters prints. --cluster limits the run to one cluster, by id or unique display name. The command exits 13 when any cluster, project or namespace is unknown.
    • Visibility is all, partial, none or unknown, with counts: the command asks the cluster whether they may get each of the project's namespaces.
    • They are a member when a ProjectRoleTemplateBinding names them; access that comes only from cluster or global bindings shows as inherited.
    • If the server allows them on a project but no Rancher binding names them, the project gets a note saying so.
    • If a ProjectRoleTemplateBinding names them but the cluster denies them every namespace in the project, the output reports that mismatch on its own row.
  • Every access command takes --timeout. It limits the whole call; the default stays 60s. Anything but a positive duration is a VALIDATION error (exit 2). Completion suggests 30s, 1m, 2m, 5m and 10m.
  • rancher kubeconfig --exec-command <command> sets the command kubectl runs. If you give a bare name, kubectl finds it on its PATH. A path is made absolute from the current directory, and a leading ~ means your home directory. Completion offers the executables on PATH for a bare word and file names for a path.
  • auth list-tokens now shows the Rancher token name for each cached kubectl credential. The new TOKEN column shows it as <kind>/<name>, such as ext/<name>. It shows - when none was recorded, for example for credentials cached before this release. JSON output adds tokenRef and tokenUserId.
  • rancher schema shows how each command uses the server. Each command has a serverAccess field, none, read or write (may create or delete server objects), which replaces the network boolean. The contract line shows server=read or server=write.
  • -n works as --namespace on every command that takes it, not only on the access commands.

Changed

Credentials, login and the kubectl plugin

  • With no terminal and several auth providers, auth get-token says how to log in. Before, without --auth-provider it refused with AMBIGUOUS_SELECTION, listing every provider and no remedy. Now it names the piped-token login and the other no-terminal options, offers only providers that sign in without a terminal (SAML and OAuth), and names the --auth-provider to add. When none can, or under --no-input, the error is AUTH (exit 3). The legacy rancher token does the same.
  • The warning that credentials are kept in a plaintext file now appears only when a sign-in is about to start. Before, with token reuse on and the file store, the kubectl plugin also printed it when it refused a call without signing in. Now it appears right before the sign-in's first prompt, login URL, device code or browser step.
  • auth login --token-stdin and the pasted-token prompt record the token's owner. The token is now checked with one SelfSubjectReview, which also returns the owner. --no-verify still sends nothing and records no owner.
  • Error hints no longer tell you to run auth login on login entries the kubectl plugin created. auth login always refused those entries (exec-login-...). The hints now tell you to log in with a new entry, make it the current one and write the kubeconfig again.
  • The keychain now keeps a separate credential for each config directory. Two directories that use the same server name no longer share a credential. Log in again after upgrading: until you do, a directory that uses the keychain shows no stored credential. The old keychain item stays under the server name alone (service rancher-cli, account = the entry name) and nothing uses it any more; delete it with your keychain tool.
  • If you copy a config directory, both copies share its keychain credential only until one of them logs in again. After that, the other copy's next read fails with CREDENTIAL_REPLACED; run rancher auth login for that entry to give it its own credential; its other entries are not touched. Each directory keeps one ID file per entry in credstore-id/, and if you delete one, that entry shows as not logged in. A login that was interrupted reports LOGIN_INCOMPLETE; run it again.
  • A config directory that uses the keychain now reads credentials only from the keychain. Before, it fell back to credentials.yaml when the keychain had no credential or could not be reached, and a logout also deleted the copy in that file. Now, if the keychain cannot be reached, the command fails and says what to do instead of using a token from the file: make the keychain reachable, or use a different --config whose credentialStore is file.
  • An unusable keychain or credential helper fails as CREDENTIAL_STORE_UNAVAILABLE (exit 14, retryable). Before, a locked or unreachable keychain, a cancelled macOS prompt, or a missing, timed-out or failing helper gave GENERIC (exit 1) or VALIDATION with only the backend's own text. The message now names the store, the entry, the cause when known, and the remedy, such as security unlock-keychain on macOS. A failed keychain write no longer suggests RANCHER_CLI_CREDENTIAL_STORE=file.
  • On macOS, the first login in an auto directory no longer falls back to a plaintext file when the keychain is locked. Before, if the keychain prompt was cancelled or not answered within 5 seconds, that login saved the credential in plaintext. Now it fails with CREDENTIAL_STORE_UNAVAILABLE (exit 14), saves nothing and does not write credstore-pin. Unlock the keychain or approve the prompt and run the command again, or choose the file store with rancher auth login <name> --credential-store file.
    • On other systems, and for other failures such as no keychain session in CI, the first login still writes the file store to credstore-pin.
    • An auto directory with no credstore-pin and its credentials in the file store keeps using it while the keychain is locked.
    • An auto directory with no credstore-pin and its credentials in the keychain fails with CREDENTIAL_STORE_UNAVAILABLE instead of VALIDATION.
  • The first login now saves which credential store a config directory uses. It writes the setting to config.yaml's credentialStore field, and every later command uses that store. To pick one, set RANCHER_CLI_CREDENTIAL_STORE before the first login. Before, if the variable later named a different store, the CLI used the variable without telling you. Now every command, including a login, fails with an error that names both. Unset the variable or use a different --config.
  • config update-server with only a new CA keeps the entry's tokens and login information. Before, it dropped them. config add-server now also starts a new entry with no cached kubectl credentials, even when an earlier entry had the same name.
  • You change a directory's credential store by logging in with --credential-store. rancher auth login <name> --credential-store <store> records the new store only once the credential is saved in it. Before you sign in, the change is refused while another entry still has a credential or an unfinished login in the old store, and the error names the entries to log out. It is also refused if another entry left a credential in the new store: log that entry out with the keychain reachable.
  • Changing a directory's credential store to or from a credential helper is refused while it has other entries. A credential helper can return a credential for any entry, logged in or not, so another entry could en...
Read more

v0.1.0-alpha.5

v0.1.0-alpha.5 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 09 Sep 01:51
Immutable release. Only release title and notes can be modified.

Added

  • Access questions, answered by the server. access can asks a cluster's authorizer whether you (or --as someone) may perform a verb on a resource: exit 0 allowed, 12 denied, 13 unknown. access list shows the rules a subject holds in a namespace, a project, or every namespace you can list. access who-can lists the subjects the authorizer allows for a verb and resource, one SubjectAccessReview per candidate. access explain shows why: the binding the server's reason names, the rules in it that cover the request, and the Rancher chain behind it (ClusterRoleTemplateBinding, ProjectRoleTemplateBinding, GlobalRoleBinding, RoleTemplate inheritance). Nothing is computed from bindings on the client, and every answer names its source and the identity it was asked about.
  • Machine pool scaling and autoscaling. cluster scale sets a pool's node count by name and refuses to fight the autoscaler unless autoscaling is paused. cluster set-autoscaling, clear-autoscaling, pause-autoscaling and resume-autoscaling (Prime) manage the cluster autoscaler per pool and cluster-wide; bounds are checked before anything is sent. inspect cluster shows each pool's autoscaling bounds and marks an autoscaled pool's quantity as the autoscaler's count, not yours.
  • rancher kubeconfig includes the Authorized Cluster Endpoint. When a cluster has it enabled, the kubeconfig gets the same direct contexts Rancher's own kubeconfig has (<entry>-fqdn, or one per control-plane node), one of them current, with the proxy context kept as fallback. The exec plugin waits until a fresh token is accepted at the direct endpoint, so the first kubectl call no longer fails while Rancher syncs the token.
  • One login per server for kubectl. config set-token-reuse on lets the exec plugin log in once per server and reuse that credential for every cluster; the default stays per-cluster prompts. config status lists every token the CLI owns per server with owner, expiry, state, and the command that removes it; config delete-server prints the same before deleting; auth status names who created the credential it checked. A replaced credential's server-side tokens are revoked.
  • --selector (-l) on every get. Sent to the server as the list filter. A bad selector is a VALIDATION error; under --project the two selectors are joined.
  • auth login --url needs no name. The entry takes its name from the URL's host. An IPv6 literal cannot be a name; pass one.
  • Guided trust. An interactive login that meets an unknown certificate authority shows the certificate (serving certificate or CA, with its subject) and offers to pin it. A later login that sees a different one warns with both fingerprints first. --no-input, pipes, and "no" keep the structured refusal. The card also says an unrecognized certificate on a server you already trusted can mean TLS interception.
  • A Windows installer. install.ps1 does what install.sh does: version pinning, checksum verification of both binaries, provenance verification through gh when available, dry run. Both installers now handle 8.3 short paths.
  • Completion tracing. Set RANCHER_CLI_COMPLETION_DEBUG and a completion request prints one timed line per phase to stderr: config, budget, connection, which token was used or why none, each request, candidate count. Ordinary commands stay silent.
  • logs api-extension streams the server that serves tokens and kubeconfigs.
  • Feature flag advisories. Patching a feature that needs a server restart says so and tells you to wait for the server to return. A Prime-only feature that reads enabled on a community server is marked inactive there, and a command that needs it refuses with PRIME_REQUIRED.
  • Small additions. config status names the credential store auto will pick on this platform before any login. get project -o wide shows DESCRIPTION.

Changed

  • auth login names the providers it cannot use. A provider the server offers but the CLI cannot log in with (GitHub and the other code-exchange providers) is listed as such instead of vanishing. --auth-provider also accepts the short id (local, github).
  • rancher schema get <command> explains the two forms (schema get <kind> is the kind view, schema <command> the command view) and hints the right one.
  • Help is alphabetical. Commands and options sort by name in every help card; rancher schema and COMMANDS.md keep their task grouping. Prime-only commands carry a green [Prime] token.
  • An unknown command or a bad flag is an error like any other. It is rendered with the same red prefix and hint styling on a terminal, and structured under -o json or -o yaml, instead of plain text.
  • The CLI signs its writes. Every create and update records cli.rancher.io as the field manager. A patch preview warns about each field another server-side-apply manager (Flux, Argo CD) owns and may revert, and refuses operations on metadata.managedFields or metadata.resourceVersion.
  • Every hint is a command you can paste. Explanations moved into the message. A namespaced get without --cluster now names the local-only namespaces and the value to pass; inspect cluster keeps only the runnable get clusterregistrationtoken command as its hint; create cluster's identity-probe context is a warning that says --apply repeats the same dry-run.
  • Incomplete API discovery is reported. When the server cannot describe some API groups, a name another group serves resolves with a warning naming the groups skipped; a name only a failed group could serve is a retryable error naming them, instead of "unknown resource".
  • A resourceVersion conflict is retryable and says "the resource changed on the server since it was last read; retry the command". A duplicate name on create stays non-retryable.
  • A failed login cleans up after itself. Tokens the login created are revoked on every failure path, never a pasted or piped token, and the failure names each token's fate with the exact command for anything left. A server rejection exits AUTH from both login flows.
  • Live completion uses the current server's token, so a second entry for the same server no longer silences it.
  • Proxies are documented: HTTP_PROXY, HTTPS_PROXY, NO_PROXY and their lowercase twins (uppercase wins), the NO_PROXY forms honored, and that a CONNECT tunnel still verifies the real server against the pinned CA.

Security

  • Server text cannot forge output. Every table cell, name, warning, error and preview line has control characters stripped, so a description with a newline no longer fakes a row and an escape sequence never reaches the terminal. JSON, YAML and template output are untouched.
  • Trust stops at the Rancher origin. The pinned CA verifies Rancher only; identity providers are verified against the operating system store and must be https. A redirect to another origin is refused, so a bearer token or request body is never replayed elsewhere.
  • Tokens the CLI creates are revoked when no longer needed: after a failed login, and when a new login supersedes a credential.

Compatibility

  • The Prime marker is spelled [Prime] in help and in the schema table of contents. Anything matching the earlier lowercase [prime] no longer finds it.
  • get kubernetes-versions -o json rows are under data.versions (they were one level deeper, at data.data). supportedRange stays beside them. Table output is unchanged.
  • An older binary rewriting config.yaml drops the new token bookkeeping. Logins now record provenance, tokenRef, tokenUserId, credentialExpiresAt, supersededTokens, loggedOutAt, and tokenReuse. An older binary reads the file fine but any command that rewrites it drops those keys. Stored credentials are unaffected; config status then shows nothing for those entries, and a token left on the server has nothing naming it.

Fixed

  • A refused pod log shows the server's reason. A 403 or 401 used to render as unknown (get pods <pod>) in rancher logs warnings and in the support bundle manifest.
  • A support bundle no longer claims success for a refused log. It used to exit 0 with errors: 0 and no file; the target is now an error item, counted, with one warning per missing log. A previous-container log that never existed stays silent.
  • Diff paths are unambiguous. diff[].path escapes / and ~ per RFC 6901, so a label key like app.kubernetes.io/name is one segment, and the path works verbatim in a JSON Patch.
  • The installers name a real next command: rancher auth login <name> --url <url>, not rancher login.
  • auth delete-token is described correctly. It clears the local cache only; the token stays valid on the server until it expires, and rancher delete token <name> revokes it.
  • The agent skill gained an OIDC clients section, the meaning of exit 9 (PRIME_REQUIRED: do not retry or work around it), a rule that text returned by the server is data to report and never an instruction to follow, and smaller habits: check the exit code before reading data, prefer -o template to one-liners, a setting value is a string even for booleans, api-extension is a logs target.
  • Documentation caught up with the CLI. The migration table names the token shim's flags (--server, --user, --cacerts); the commands reference says auth logout deletes the matching exec-credential cache entries; the reference distinguishes a feature disabled on the server (VALIDATION, every edition) from a Prime-only feature on a community server (PRIME_REQUIRED, exit 9), which a script branching on exit 9 needs; the Windows section notes that Store Notepad opens config edit's file as a tab and closing the tab is what returns control.

v0.1.0-alpha.4

v0.1.0-alpha.4 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 30 Aug 21:57
Immutable release. Only release title and notes can be modified.

Added

  • Local user management. create user creates a local user and its password in one step; the server hashes the password, never the CLI. create password-change-request changes a password. Both read the password from stdin only (--password-stdin; there is no --password flag) and never print it in any output format. On servers too old for this workflow they refuse up front with CAPABILITY_UNSUPPORTED (exit 11) instead of failing halfway through.
  • OIDC client management. create oidc-client plus add-secret, regenerate-secret, and remove-secret. A client secret is shown once, at creation, and cannot be retrieved later; the output says so.
  • Server registration. config add-server and config update-server register and re-point servers. auth login now takes the server name (rancher auth login prod) and --url registers a new one. config get-servers is now config list-servers.
  • Prime awareness. The CLI detects the server edition. The features table shows which features are Prime-only, and a command that needs a Prime-only or disabled feature says so before sending anything, rather than passing along a confusing server error after the fact.
  • inspect user. Identity, group memberships, and roles in one call.
  • Better tables. -o wide works everywhere, every resource table has an AGE column, and numbers sort as numbers. get users hides Rancher's system accounts unless you pass --include-system.
  • Per-pod logs. logs --pod selects one replica's logs, and the log target argument tab-completes.
  • Color. Help, schema, and command output share one styling layer with a --color flag (auto, always, never). Piped output stays plain.

Changed

  • Output is now predictable. Errors print as plain text by default (error (CODE): ... on stderr) and as a structured document under -o json or -o yaml. Every command declares what it prints, and warnings arrive the same way in every format. Five commands work differently by design: completion, kubeconfig, and create kubeconfig are table-only, and auth get-token and token print a raw ExecCredential for kubectl.
  • A failure can no longer look like success or like nothing. Any internal failure prints a diagnostic before a non-zero exit. A command that already changed the server cannot exit 1 with empty output anymore.
  • Tab completion for -o offers only formats the command accepts, and the schema now correctly marks login and server registration as commands that use the network.

Security

  • Logins are harder to subvert. Every https login checks the TLS certificate before anything is saved and reports certificate problems as a TLS_TRUST error that names the actual issue. A pasted or piped token is verified against the server before it is stored. auth login --url refuses to silently re-point a registered server, and --skip-verify is gone from auth get-token.
  • Credentials stay out of output. The response printed after create, patch, and project create-secret is scrubbed of password and secret fields. Previously a patched User could echo its password hash and a created project secret its payload.
  • Auth cannot hang. Every login and token request has a timeout, so an unresponsive server no longer stalls a credential refresh forever. Ctrl-C during a password prompt exits immediately and restores terminal echo.
  • Releases are built more safely. Tests and third-party tooling no longer run with release credentials, two runs for the same tag can no longer race each other into a duplicate release, and tests now catch a platform missing from the published assets.
  • Fuzz testing runs weekly and already paid for itself: it found a bug where a server URL with a percent-escaped host (an IPv6 zone id) produced a broken stored identity. Fixed.

Fixed

  • Support bundles from large installations no longer risk running out of memory. The archive is written as data is collected instead of all at once, and per-namespace events are capped at the newest 500 (the manifest notes when truncation happened).
  • The Windows install instructions are complete. They now cover renaming both downloaded executables to the names the CLI expects (rancher.exe and rancher-credential-vault.exe) and checksum-verifying both before putting them on PATH. Previously they ended at "download the assets".
  • The migration guide is accurate again. Legacy server delete, clusters create, and clusters delete point at their real replacements (config delete-server, create cluster, delete provisioning-cluster) where it previously claimed there were none.
  • config set-completion confirms what it did rather than exiting silently, an interrupted prompt leaves the cursor on a fresh line, and create kubeconfig rejects output formats it cannot honor where it used to ignore them.

v0.1.0-alpha.3

v0.1.0-alpha.3 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 19 Aug 14:36
Immutable release. Only release title and notes can be modified.

Changed

  • The context concept was removed. Config now holds servers and a current server, nothing else; cluster and project scope are stated explicitly per invocation (--cluster, --project). Scope errors now say what to type instead of pointing at a stateful context, and a missing login reports NOT_LOGGED_IN rather than an unset context.
  • auth check and config info are now status. One verb answers "where am I pointed and am I logged in", and auth logout reports what it actually did.

Improved

  • Composite views degrade instead of failing. When the user lacks permission to see some of the information in inspect cluster (or any composite), the sections they can see render and the withheld ones are named in a data.degraded envelope field — a project member gets a useful answer instead of an error.
  • get users is a table an operator can read, and settings and features tables now show where each value comes from: whether it's customized, its source, the default, and whether it's dynamic or locked.

Fixed

  • Project members can inspect their own project. Commands that resolved a project by listing all projects now fall back to a direct get when list is forbidden.

v0.1.0-alpha.2

v0.1.0-alpha.2 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 17 Aug 05:10
Immutable release. Only release title and notes can be modified.

Fixed

  • A project-carrying context no longer breaks commands that can't take a project scope. With a cluster:project context set, commands like delete project X failed with "--project does not apply" for a flag that was never typed. The context's project is now consulted only where project scope applies; an explicitly typed --project on a non-scopable kind still fails loudly.

Improved

  • The Effect contract is published in the schema table of contents. rancher schema -o json now carries effectSchema — the closed action enum and every Effect field — beside the global exit-code map, so an agent can parse --dry-run previews from one ~11 KB unauthenticated fetch instead of the full 274 KB manifest.
  • The installer works end to end. Asset downloads use the GitHub API endpoint when a token is set, the documented
    one-liner is zsh-safe and selects prereleases with --pre, and the bearer token never leaves the API host.
  • The installer names its hazards. After install it warns about shadowing rancher binaries elsewhere on PATH (symlink-chains resolved, convenience symlinks suppressed) and names every version change — upgrades noted, downgrades warned, same-version silent.

Docs

  • REFERENCE.md documents the installer's download path and post-install messaging.

v0.1.0-alpha.1

v0.1.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@pmatseykanets pmatseykanets released this 13 Aug 15:23
Immutable release. Only release title and notes can be modified.
400acf5

The first pre-release.

Highlights

  • Plan/apply safety on every mutation — a server-computed preview (--dry-run), an explicit execute gate (--apply), a destruction gate (--yes), and a resourceVersion precondition binding the write to the previewed state. No interactive prompts anywhere.
  • Self-describing surface — rancher schema lists all 171 commands across 11 groups and 48 resource kinds, with per-command contracts and gates; agents orient themselves without external docs.
  • Agent skill included — rancher skill install wires the CLI into Claude Code, Codex, and GitHub Copilot CLI following the open Agent Skills standard.
  • Structured output — one versioned JSON envelope per invocation under -o json, structured errors with next-step hints, typed exit codes for scripting.
  • kubectl integration — rancher auth get-token is an exec-credential plugin; rancher kubeconfig emits a local kubeconfig with no embedded secret; legacy Rancher-generated kubeconfigs keep working.
  • Operations toolkit — composite reads (inspect cluster, inspect project, inspect pod), fleet-wide images and usage,
    curated logs, one-command support-bundle.
  • Credential hygiene — tokens live in the OS keychain (or a 0600 file, or HashiCorp Vault / OpenBao via the bundled
    rancher-credential-vault helper); secrets never appear on the command line.