-
Notifications
You must be signed in to change notification settings - Fork 263
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
Public Access for uAgents Endpoints #599
Comments
Hi @cmaliwal, thanks for raising this issue. I've checked the codebase and can confirm that an agent that exposes a REST endpoint will only be reachable from the same machine, i.e. "localhost". The intention was that these REST endpoints would primarily be used to trigger certain behaviour inside the agent or provide access to ephemeral information like cached variables etc. If this answers your question feel free to close the issue, otherwise please explain your use-case in more detail so that we can design potential new features around that. |
I'm not sure I agree with this decision - agents will need to stand on their own in the world and sometimes they'll need to be restful - I think we should allow incoming messages from any host, or at least give the dev the ability to specify 👍 |
For traceability: We're investigating implementing a whitelisting approach for the agent's REST endpoints to make this configurable, but require that a developer is knowing what they're doing, because it definitely is not the intention of the uagents framework and contradicting some of the key design elements for the uagents framework to open it up completely |
Since #612 has been merged this issue can be closed. |
Prerequisites
Feature
Currently, uAgents restrict REST API access to localhost, which limits usability in scenarios where public access is needed (e.g., testing with ngrok or Cloudflare). I suggest introducing a configurable option to allow public access for agent endpoints.
Additional Information (Optional)
No response
The text was updated successfully, but these errors were encountered: