Skip to content

Reject unauthenticated when no credentials#506

Open
heyitsaamir wants to merge 5 commits intomainfrom
fix/reject-unauthenticated-when-no-credentials
Open

Reject unauthenticated when no credentials#506
heyitsaamir wants to merge 5 commits intomainfrom
fix/reject-unauthenticated-when-no-credentials

Conversation

@heyitsaamir
Copy link
Copy Markdown
Collaborator

If a server is set up without any credentials, it currently will not be able to send messages, but it will currently accept all incoming requests.
This scenario is rare, but possible, and in this PR we reject any incoming requests if creds are not setup (and if skipAuth isn't explicitly set to true)

heyitsaamir and others added 5 commits March 24, 2026 23:48
These two markdown files are all a human needs to write — the e2e testing
skill generates and manages the actual Playwright test code from here.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lowing

Previously, deploying a bot without CLIENT_ID/CLIENT_SECRET caused the SDK
to silently accept all requests with no authentication. This allowed an
attacker to send crafted activities with a malicious serviceUrl, causing the
bot to forward replies to the attacker's server (SSRF).

Now, missing credentials without explicit skipAuth: true returns 401.
A startup warning is logged to help developers diagnose the misconfiguration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@corinagum corinagum left a comment

Choose a reason for hiding this comment

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

LGTM - I noticed in PY that every request will show an error while in TS, initialize() will have an error and after that 401 is swallowed. Should we align behaviors?

@rido-min
Copy link
Copy Markdown
Member

this is breaking the integration with agentsplayground, are we ok with this state?

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