Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
🦋 Changeset detectedLatest commit: 3e2937c The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This branch has not been deployed
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.
Summary
When an agent working in a customer's repo hits missing CipherStash credentials, the
stash-cliandstash-authskills now tell it to start the login itself and show the user the approval link. Before, nothing in the skills said this, so agents tended to stop, ask the user to pasteCS_*values, or runstash env, which creates a new access key each time it runs.Changes
skills/stash-cli/SKILL.md: after the agent login loop, two new sections:NOT_AUTHENTICATED, or a profile with no key for the workspace, runstash auth login --json --region <slug>in the background, read its first event, give the user theverificationUriCompletelink and user code, and wait fordevice_bound.stash auth regions. Without--region, a non-interactive login fails with "Cannot resolve a region without a prompt".skills/stash-auth/SKILL.md: the first quick-diagnosis item points at that loop, and says never to runstash envto get variables..changeset/skills-agent-starts-device-login.md:stashpatch, becauseskills/ships in thestashtarball.Verification
npx stash auth login --json --region ap-southeast-2in the background printed the link and code. The user approved it in a browser, the command reporteddevice_bound, and the Go SDK then encrypted and decrypted against ZeroKMS with that profile.--regionthe same command failed with "Cannot resolve a region without a prompt", which is why the region section exists.stash manifest --jsonagainst the new text. The skill names onlyauth login,--json,--regionandauth regions, which the existing skill text already uses.Related
None. This came out of verifying #1773, where an agent stopped on missing credentials.