Added the key commands, uppercase list headers, and dropped send - #6
Merged
Conversation
…, tail -n, clearer wording
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The client half of the per-fleet key cycle (server PR: siliconwitchery/superstack-next#17), on the 0.0.3 version matching the server's gate.
Key commands
key create <fleet_id> <label>prints the secret once with a keep-it-safe note; the label is mandatory.key list [fleet_id]shows key id, fleet id and name, the last five characters, and the label;--jsonfor machines.key revoke <key_id>revokes without a prompt, matchingmember remove(a revoked key is replaceable, unlike a deleted fleet).Headers
ID FLEET FLEET NAME KEY LABEL,ID NAME ROLE,EMAIL ROLE), the docker/kubectl convention, so adjacent id columns read unambiguously.--jsonoutput and the empty-state messages are unchanged.Send
sendstub is gone per the design decision: posting data is the user's own HTTP client against the data endpoint with a fleet key, so the CLI never goes near it. The help section it lived in is now "Logs", holdingtail.Tests gained a stdout-capture helper, so list rendering and the printed secret are now asserted, and the mocks pin the exact paths requested. Verified with vet, the full suite, and an end-to-end smoke against a locally running server.