feat(cli): add auth status, docker systemd probe, and version flag#719
Merged
Conversation
- Add `stakpak auth status` command: shows active profile, masked credentials, and pings the Stakpak API for reachability - Add `probe_docker_user_systemd` to detect stale group membership after usermod -aG docker without restarting user@UID.service - Make Docker install remediation OS-aware (amzn/rhel/fedora vs ubuntu/debian) by parsing /etc/os-release ID field - Fix autopilot timeout: use eprintln! for error output and return Err instead of silently continuing after timeout - Add `--version` flag to CLI via CARGO_PKG_VERSION - Simplify system prompt Slack setup: replace inline manifest YAML with pointer to `stakpak autopilot channel add --help`
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.
Description
Adds several CLI improvements: a new
auth statuscommand for credential verification, a smarter Docker preflight probe, and a--versionflag.Changes Made
stakpak auth statuscommand: Shows the active profile, masked credentials, and pings the Stakpak API (/v1/account) to verify reachability and identity. Supports--profilefiltering likeauth list.probe_docker_user_systemd): Detects the common failure mode whereusermod -aG docker $USERwas run but the systemd user manager still holds stale group membership. Provides a concrete remediation command (sudo systemctl restart user@$(id -u).service)./etc/os-releaseID field to recommenddnfon RHEL-family distros vsapt-geton Debian-family, instead of always suggestingapt-get.println!toeprintln!and returnsErrso the caller knows the startup actually failed.--versionflag: AddsCARGO_PKG_VERSIONto the CLI struct sostakpak --versionworks.stakpak autopilot channel add --help, reducing prompt size.Testing
cargo test --workspace)cargo clippy --all-targets -- -D warnings)cargo fmt --check)probe_docker_user_systemd(stale group, missing systemd-run, non-Linux)parse_os_release_idanddocker_install_remediationwith OS-specific branchesBreaking Changes
None