kylon-cli 0.7.4 → 0.7.5-next.1055

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -616,6 +616,20 @@ subsequent commands are plain `kylon workspace ...` with no npx.
616
616
  The collection keeps credentials separately by server and workspace, and
617
617
  `--scope-workspace` selects the matching entry.
618
618
 
619
+ App source checkouts configure a Git credential helper automatically. After
620
+ `kylon workspace app checkout`, ordinary `git push origin draft/<slug>` uses
621
+ the current credential without a manual token export. Environment credentials
622
+ (including `KYLON_GIT_TOKEN`) take precedence; human CLI checkouts can fall back
623
+ to the saved credential matching the checkout's API server and workspace.
624
+ The helper reads the current file on every request, so login rotation takes
625
+ effect without re-exporting a key. The default file is
626
+ `~/.kylon/workspace-auth.json`; with `XDG_CONFIG_HOME` set it is
627
+ `$XDG_CONFIG_HOME/kylon/workspace-auth.json`. Kylon Agent runtimes and
628
+ Agent-created checkouts never fall back to the operator's saved identity.
629
+ Credentials are returned only for the exact checkout remote, never written
630
+ into Git configuration. Re-run checkout from its non-Git parent directory to
631
+ upgrade an existing checkout's helper.
632
+
619
633
  Each installation credential expires after 90 days. Re-running `kylon auth
620
634
  login` for the same installation and workspace rotates that credential, making
621
635
  the previous value invalid. Use `kylon status` to inspect the active user,
@@ -640,25 +654,18 @@ kylon workspace connection list --toolkit custom-api-key --scope-workspace <WORK
640
654
  kylon workspace connection run --connection <CONNECTION_ID> -- curl https://api.example.com/resource
641
655
  ```
642
656
 
643
- The `kylon workspace secret` noun is retired: every verb only prints its
644
- Connection replacement, accepts no secret value, and changes nothing.
645
-
646
- There is intentionally no top-level `kylon secret` command. The namespace
647
- selects the resource and identity without inspecting unrelated local credential
648
- state:
649
-
650
- - Use `kylon workspace connection list|create|credential set|access request|run`
651
- for API-key Connections with browser authorization; the retired
652
- `kylon workspace secret` verbs only print those replacements.
653
- - Use `kylon gateway secret list|delete --agent <agent-id>` for agent-local
654
- records, authenticated by this installation's saved runtime credential
655
- through agent-scoped runtime routes. There is no `set`: a credential is
656
- stored as a Custom API Service from the agent's setup card or from
657
- Connections in Kylon, and the agent reads it from its environment.
657
+ Use `kylon workspace connection list|create|credential set|access request|run`
658
+ for API-key Connections. There is no secret command any more:
658
659
 
659
- This separation prevents browser credentials from reaching the
660
- daemon-authenticated secret endpoints and avoids state-dependent command
661
- routing.
660
+ - There is intentionally no top-level `kylon secret` command.
661
+ - The `kylon workspace secret` noun is retired: every verb only prints its
662
+ Connection replacement, accepts no secret value, and changes nothing.
663
+ - `kylon gateway secret` is retired too: an agent keeps no secrets of its
664
+ own, so `list`, `set` and `delete` make no request and only print the
665
+ Connection command that replaced them. A credential is stored as a Custom
666
+ API Service from the agent's setup card or from Connections in Kylon, the
667
+ agent reads it from its environment, and the person who manages the
668
+ service removes it.
662
669
 
663
670
  ```bash
664
671
  kylon auth logout --workspace <WORKSPACE_ID>
@@ -799,7 +806,10 @@ back to another saved identity.
799
806
  `onboard`) report anonymously only when they fail, with the setup session id
800
807
  from the link inspection and the stage they reached, and switch to the
801
808
  credential they obtain. Other commands never fall back to anonymous
802
- submission when authentication fails.
809
+ submission when authentication fails. An anonymous report goes to
810
+ `--server-url` when given; without it, `agent link` reports to the server its
811
+ link names, and the other anonymous commands to the default server (the
812
+ server env vars, then the URL the install script recorded, then production).
803
813
 
804
814
  Telemetry initialization calls the installation store's `ensure()`:
805
815
  `install.json` in the CLI configuration directory holds the random `installId`,
@@ -807,7 +817,13 @@ sent as `install_id` on every record. It is created before login and reused
807
817
  across runs; deleting the file resets it, copying the configuration can
808
818
  duplicate it. It identifies an installation, not a device or a person, so these
809
819
  are pseudonymous diagnostics. If the installation cannot be read or created,
810
- telemetry stays off.
820
+ records go out without `install_id`; anonymous ones require it and stay local.
821
+ An entry that cannot be read, is not a regular file, or does not hold a valid
822
+ `cli_…` id counts as damaged and is never replaced, because a saved computer
823
+ connection records the id. Commands that need it (`agent link`, `connect`,
824
+ `onboard`, `login`) stop, name the file, and print commands that first rename
825
+ the entry aside (which never follows a link), then restore the recorded id or
826
+ start over. A link to a valid file is read through, never written.
811
827
 
812
828
  Set `KYLON_TELEMETRY_DISABLED=1` in the CLI/daemon process environment to turn
813
829
  the whole channel off; local diagnostic logs are unchanged. Restart a running
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.4",
3
- "fingerprint": "6ec1a3a1fb80b0bd5013a9f91fe0e8f6c2decf1fd35e978e354e4fa7858ea743",
4
- "source_commit": "6d43cb57011dd3a168a04a1c631acfc018c9a5c3"
2
+ "version": "0.7.5-next.1055",
3
+ "fingerprint": "e86142fe5ecf522a341ac9f57899e62f47e2792e9cf51d6e4b1e946e43ff1f5f",
4
+ "source_commit": "44ff32fc976468563b5e923680f37ce8f888d775"
5
5
  }