Trusted Gateway: keep credentials away from the agent.
Local permissions decide whether a tool may run. Trusted Gateway goes further: Quasentra stores the business credential and performs a narrowly configured operation on the server.
A compromised process may attempt to use the API, database or mailbox directly.
Quasentra checks policy, injects the encrypted secret and enforces connector restrictions.
When do you need it?
Use the basic SDK wrapper first. Add Gateway when a tool reaches production data, external communication, money or a credential that should never enter the agent process.
1. Create a connector in the dashboard
- Run the secured application once so the agent and action appear.
- Open Dashboard → Trusted Gateway → Create connector.
- Select the exact agent and tool action.
- Choose HTTPS API, PostgreSQL read-only or SMTP email.
- Add the allowed route/query/domain and the credential.
- Save and validate the connector.
What Validate checks
The Validate button checks the saved fields, connector restrictions and whether encrypted credentials exist. It does not contact the remote API, database or mail server. Always complete one controlled staging execution before production.
2. Request execution from your tool
result = security.execute(
agent_id="support-agent",
session_id="ticket-100",
action="customer.read",
arguments={"route": "customer", "path_params": {"customer_id": "CUST-100"}},
idempotency_key="ticket-100-customer-read",
)
if not result["executed"]:
# DENY or REQUIRE_APPROVAL: do not treat this as a tool result
handle_security_decision(result["decision"])
else:
customer = result["output"]
Values you must customize
| Value | Meaning |
|---|---|
| agent_id | The agent selected on the connector. |
| session_id | Your conversation, job or workflow ID. |
| action | The exact registered action connected in the dashboard. |
| arguments | Only the data accepted by that connector type. |
| idempotency_key | A stable unique ID for this business operation. Reuse it only for the same retry; never generate a new one after an uncertain side effect. |