Repository navigation
feat(secrets): /secform works for a bot of another computer - #2543
Merged
Merged
Conversation
…es go over the encrypted link to its secret store
|
Caution Review failedThe pull request is closed. Walkthrough
Change: Feature
Warning Some tools did not complete. Review the errors below.
|
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.
Problem
/secformin the chat of a bot that lives on another of your computers only said "Share secrets with this bot in its chat on for now". No form opened, and the chat showed no chips for what was shared.Change
bots.secrets.share,bots.secrets.listandbots.secrets.revoke(level Use). Only a person at a Mousse window may call them. Here, the window rule refuses the command line, agents and calls that came through another device. On the bot's computer, the call must carry the router's person mark (window: person), which the router adds for a window's call only.valueskey, apart from the names. The bot rows now say which keys hold secret values (secret), and those keys are left out of what the request ledger matches a retry on, so the ledger keeps not even a hash of a value. No reply, chat line or refusal holds a value.secrets.share,secrets.shares.revoke(work) andsecrets.shares.list(view) rows from feat(secrets): /secform shares named secrets with a thread or bot, with expiry, single use and a revocable chip #2539 now have their access classes. They counted as work before, so threads behaved the same; the list is now view./secformparagraph describes the bot methods and drops "A bot of another computer is not offered the form yet".Verification
Tier 5 (secrets crossing between computers).
node scripts/verify.mjs <files> --typecheck allpassed on the published commit: 17 files, 644 tests, and both typechecks.tests/bots/botSecretShares.test.ts(new):valuesand keeps the rest;tests/renderer/botChatView.test.ts: in the chat of a bot of another computer,/secform for api keyopens the form with "Stored on Laptop". Save sends the value once by the bot's qualified id. The chip shows, and Revoke revokes it there.botMethodTable,remote/bots,remote/botDeviceAccess.botSystemInstructions,botsProtocolV2,botLocalServers,botMessagesElsewhere,netEngine/allowlist,netEngine/checks/botRouter,appSessionVectors,routed/accessClasses,secrets/secretShares,secrets/secformWiring,botCommands,secformCard.routed/accessClasses(the unclassedsecrets.*rows) and the bot chat's/command count, which is 11 since/secform. Both are fixed here.botDeviceAccesswas missing params forbots.sandbox.forward; that row is added.Notes
Refs #595
Summary by CodeRabbit
/secformto share secrets with a reachable bot on another computer. Values are stored on that computer, and you can view or revoke shares./secformguide to cover sharing with bots on another computer.