You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5ac96c
Browse filesBrowse the repository at this point in the historyBrowse files
warning:=fmt.Sprintf("Are you sure you want to rotate API key '%s'? The current key stops working after its grace period.", in.ID)
335
+
ifin.ExpireInDays.Set&&in.ExpireInDays.Value==0 {
336
+
warning=fmt.Sprintf("Are you sure you want to rotate API key '%s' immediately? Browser sessions attributed to the current key will end asynchronously and unsaved profile changes will be discarded.", in.ID)
337
+
}
334
338
ok, err:=c.prompter.Confirm(
335
339
fmt.Sprintf("rotate API key '%s'", in.ID),
336
-
fmt.Sprintf("Are you sure you want to rotate API key '%s'? The current key stops working after its grace period.", in.ID),
fmt.Sprintf("Are you sure you want to delete API key '%s'?", in.ID),
369
+
fmt.Sprintf("Are you sure you want to delete API key '%s'? Browser sessions attributed to it will end asynchronously and unsaved profile changes will be discarded.", in.ID),
366
370
)
367
371
iferr!=nil {
368
372
returnerr
@@ -584,14 +588,15 @@ var apiKeysUpdateCmd = &cobra.Command{
584
588
varapiKeysRotateCmd=&cobra.Command{
585
589
Use: "rotate <id>",
586
590
Short: "Rotate an API key",
587
-
Long: "Issue a replacement API key. The rotated key keeps working for a grace period (7 days by default) so callers can migrate; use --expire-in-days 0 to revoke it immediately.",
591
+
Long: "Issue a replacement API key. The rotated key keeps working for a grace period (7 days by default) so callers can migrate. Use --expire-in-days 0 to expire it immediately; browser sessions attributed to the old key then end asynchronously and unsaved profile changes are discarded. Grace-period and natural expiry do not end existing browser sessions. If immediate cleanup cannot be scheduled, the rotation is not completed.",
588
592
Args: cobra.ExactArgs(1),
589
593
RunE: runAPIKeysRotate,
590
594
}
591
595
592
596
varapiKeysDeleteCmd=&cobra.Command{
593
597
Use: "delete <id>",
594
598
Short: "Delete an API key",
599
+
Long: "Delete an API key and asynchronously end browser sessions attributed to it, discarding unsaved profile changes. A key cannot delete itself; use a different key. If browser cleanup cannot be scheduled, the key is not deleted.",
595
600
Args: cobra.ExactArgs(1),
596
601
RunE: runAPIKeysDelete,
597
602
}
@@ -625,7 +630,7 @@ func init() {
625
630
626
631
addJSONOutputFlag(apiKeysRotateCmd)
627
632
apiKeysRotateCmd.Flags().Int64("days-to-expire", 0, "Lifetime in days for the new key (1-3650); omit to reuse the rotated key's lifetime")
628
-
apiKeysRotateCmd.Flags().Int64("expire-in-days", 0, "Grace period in days before the rotated key expires; 0 expires it immediately, omit for the default 7 days")
633
+
apiKeysRotateCmd.Flags().Int64("expire-in-days", 0, "Grace period in days before the rotated key expires; 0 expires it immediately and asynchronously ends its browser sessions, omit for the default 7 days")
pterm.Info.Println("credential type link_pay_token: invoke fill without field bindings; KERNEL supplies the Link Pay Token through the checkout's Link WebMCP tool.")
pterm.Info.Println("credential type card: invoke fill with the field bindings advertised by the item.")
673
+
caseitem.State.Status=="ready":
674
+
pterm.Info.Println("no credential type was returned; a ready Link item without state.credential_type fills like card, so use the advertised card field bindings.")
675
+
}
665
676
pterm.Info.Println("fill never submits payment; submit the checkout yourself. if the result of submitting payment is unclear, check the merchant's order confirmation or order history before paying again. if authorization is declined or expires, delete this purchase item and create a new one.")
666
677
ifitem.Spec.JSON.Recurring.Valid() {
667
678
pterm.Info.Println("this recurring Link purchase remains ready for merchant-scheduled charges until it expires or is deleted; do not create a new card each period, or a new payment_request for the same recurring purchase. deleting the item, wallet, or vault revokes the Link credential but does not cancel the merchant subscription. if deletion returns 409 provider_revocation_pending, retry deletion.")
0 commit comments