Skip to content

docs(spec): Recommend principle of least privilege for in-task authorization - #2066

Open
mikeas1 wants to merge 3 commits into
mainfrom
mikeas1-patch-1
Open

docs(spec): Recommend principle of least privilege for in-task authorization#2066
mikeas1 wants to merge 3 commits into
mainfrom
mikeas1-patch-1

Conversation

@mikeas1

@mikeas1 mikeas1 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Add guidance for in-task authorization to scope credentials to the least privilege required for the requested action. SHOULD is used as there is no protocol defined way of specifying the representation of an action, other than via general guidance to use TaskStatus.message, nor a protocol requirement for using specific credential types that are capable of such tight scoping.

Add guidance for in-task authorization to scope credentials to the least privilege required for the requested action. SHOULD is used as there is no protocol defined way of specifying the representation of an action, other than via general guidance to use TaskStatus.message, nor a protocol requirement for using specific credential types that are capable of such tight scoping.
@mikeas1
mikeas1 requested a review from a team as a code owner July 17, 2026 17:30
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mikeas1 mikeas1 assigned mikeas1 and unassigned mikeas1 Jul 17, 2026
@mikeas1
mikeas1 requested review from Tehsmash and darrelmiller July 17, 2026 17:50
Comment thread docs/specification.md

- Credentials SHOULD be bound to the agent which originated the request, such that only this agent is able to use the credentials. This ensures that credentials propagating through a chain of A2A requests are only usable by the requesting agent.
- Credentials containing sensitive information SHOULD be only readable by the agent which originated the request, such as by encrypting the credential.
- Credentials SHOULD grant the minimal permissions required to perform the desired action.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Credentials SHOULD grant the minimal permissions required to perform the desired action.
- Credentials SHOULD grant the minimal permissions required to process the message.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which message? In a task with multiple turns / follow up messages I think this is ambiguous

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I could just extend the wording:

... process the messages which elicited the TASK_STATE_AUTH_REQUIRED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants