Skip to content

fix(toolbox-core)!: Throw PermissionError on unauthenticated tool invocation #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 16, 2025

Conversation

anubhav756
Copy link
Contributor

@anubhav756 anubhav756 commented May 9, 2025

Earlier a ValueError was being thrown. In case of unauthenticated tool calls, a PermissionError is more suitable.

@anubhav756 anubhav756 self-assigned this May 9, 2025
@anubhav756 anubhav756 requested a review from a team as a code owner May 9, 2025 18:49
@anubhav756 anubhav756 changed the title fix(toolbox-core)!: Throw PermissionError on unauthenticated tool inv… fix(toolbox-core)!: Throw PermissionError on unauthenticated tool invocation May 9, 2025
@anubhav756 anubhav756 force-pushed the anubhav-perm-error branch from 7c61263 to 4b52872 Compare May 13, 2025 11:42
@anubhav756 anubhav756 force-pushed the anubhav-perm-error branch from 4b52872 to 09c0de1 Compare May 14, 2025 12:42
@anubhav756 anubhav756 force-pushed the anubhav-perm-error branch from 09c0de1 to 090a02a Compare May 16, 2025 15:50
Base automatically changed from anubhav-typevar to main May 16, 2025 19:45
This change introduces a warning that is displayed immediately before a tool invocation if:
1. The invocation includes an authentication header.
2. The connection is being made over non-secure HTTP.

> [!IMPORTANT]
The purpose of this warning is to alert the user to the security risk of sending credentials over an unencrypted channel and to encourage the use of HTTPS.
@anubhav756 anubhav756 force-pushed the anubhav-perm-error branch from 090a02a to c6e67f5 Compare May 16, 2025 19:47
@anubhav756 anubhav756 merged commit 7dbf087 into main May 16, 2025
19 checks passed
@anubhav756 anubhav756 deleted the anubhav-perm-error branch May 16, 2025 19:50
@release-please release-please bot mentioned this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants