Repository navigation
feat(account): an agent the person approves only reads unless they choose more - #44
Merged
Merged
Conversation
…oose more The account page every starter ships now ticks "Only let it read" by default when a person approves an agent's sign-in, and offers "Only read" first when they give an agent access themselves. An agent that only reads cannot change anything by mistake; the person unticks the box (or picks "Do everything you can do") to let it make changes. The ceiling is unchanged: an agent never does more than its person can.
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.
What
The account page every starter ships (
toolkits/*/template/a2app-account.html) now defaults to read-only access for agents:#approve/<code>): "Only let it read" is ticked by default. The label says to untick it to let the agent make changes too.Why
The CraftBot team wants other people's agents to be able to join shared multi-user apps with scoped access, and to be read-only unless the person chooses more. An agent that only reads cannot change anything by mistake. The ceiling is unchanged: an agent never does more than its person can.
The Marketplace's PocketBase kit gets the same behaviour on its own account page in CraftOS-dev/agent-app-collection#85.
Tested
node toolkits/blueprint-react-node/test/account-page.test.mjs: every starter ships the same page.