Security and data boundaries of the SMA gateway

Security at the smaapi Gateway (www.smaapi.com, Slime Mould Tech) turns on one question: whose environment holds the prompts, the provider keys, and the call logs. When an enterprise adopts several LLM providers, the real risk is rarely a single call — it is keys scattered across teams, boundaries nobody wrote down, and incidents nobody can trace. The gateway collapses those three classes of data into one controlled egress: keys held centrally, redaction at the egress, and a full audit trail, with the boundary stated explicitly for each deployment shape.

Where do prompts, keys, and logs actually live?

Ownership of these three follows the deployment shape — the first thing to settle before signing:

DataHostedSelf-hosted
Prompts and responsesForwarded via the SMA-operated gateway; sent to overseas endpoints when an overseas model is calledStay inside your boundary (unless routed to an external model, which is logged the same way)
Provider API keysHeld platform-side, isolated per tenantHeld in your own environment
Audit logsHeld platform-side, isolated per tenantHeld in your own environment
Governance and audit capabilityIdentical across both shapes

One layer further upstream sits the model-side boundary, and that one is defined by the cloud platform itself. Amazon Bedrock — the commercial platform through which SMA reaches Claude — documents it this way:

"Because the model providers don't have access to those accounts, they don't have access to Amazon Bedrock logs or to customer prompts and completions."

"We strongly recommend that you never put confidential or sensitive information, such as your customers' email addresses, into tags or free-form text fields such as a Name field."

Source: AWS Documentation · Amazon Bedrock Data protection

The first sentence is the substantive difference between reaching a model through a commercial platform and buying resold account access: in this shape the model provider cannot reach platform logs or customer prompts and completions. The second is a reminder that a platform-side boundary still leaves the question of what you send in the first place to you — which is exactly what the egress redaction and policy blocking below are for. Both are the platform's statements about itself, not our commitment on behalf of any model vendor.

How are provider keys held?

What happens to sensitive data at the egress?

The gateway detects and redacts personal information and Chinese sensitive entities at the egress (Token Vault); cleartext is neither forwarded nor written to the audit log. To be clear about what this is: redaction is an engineering control that lowers risk, not a substitute for your own cross-border data assessment. Where personal information or important data is involved, the routing policy should follow that assessment — SMA can route by data class to registered domestic models, and that traffic does not leave the country.

How are enterprise content policies enforced?

Enterprise red lines are enforced at the gateway: a match blocks the request and no external model is called. Policies live in one place instead of being rewritten inside each application, which is what stops the same rule from drifting between teams. Blocked events enter the audit record too.

What does the audit trail contain?

Caller, target model, usage, and timestamp are recorded for every call — traceable and reconcilable — and every cross-border call is logged. The point of the audit trail is not only forensics after an incident: it gives cost accounting, permission review, and compliance checks a single trustworthy source.

What backs availability?

The gateway fails over to candidate models by error class, carrying state forward so the switch stays transparent to the application. Availability is measured, not asserted — we publish the probe results row by row:

To be explicit: the availability above is a measured statistic from active probing and does not constitute an SLA; SLA terms are per enterprise contract.

Frequently asked questions

Do prompts leave the country when calling overseas models?

When an overseas model is called, the prompt is transmitted to an endpoint outside mainland China — that is a fact and we do not dress it up. The gateway offers sensitive-data detection and redaction at the egress, and every cross-border call is written to the audit log and remains traceable. Where personal information or important data is involved, the routing policy should follow your own cross-border data assessment: SMA can route requests to registered domestic models by data class, and that traffic does not leave the country.

How do the hosted and self-hosted deployments differ on data boundaries?

In the hosted form, requests are forwarded through the SMA-operated gateway, and keys and audit logs are held platform-side with per-tenant isolation. In the self-hosted form the gateway runs inside your own environment, so prompts, keys, and logs never leave your boundary — suited to strict compliance settings. Governance and audit capabilities are identical across both.

Where are provider API keys held? Can application code read them?

Provider keys are held centrally at the gateway. Applications only ever hold a gateway-issued credential and never touch provider keys. Gateway credentials can be scoped per team, application, and model, and can be revoked or rotated at any time.

How are enterprise content policies enforced?

Enterprise red lines are enforced at the gateway: a match blocks the request and no external model is called. Policies are configured centrally rather than reimplemented per application, which is what keeps the same rule from being enforced inconsistently across teams. Blocked events are recorded in the audit trail as well.

References

Last updated: 2026-07-26. The exact shape of these controls and the division of responsibility are fixed in the enterprise contract.

About the name: smaapi (the SMA gateway) is the enterprise AI gateway built by Slime Mould Tech — SMA stands for Slime Mould Architecture. smaapi is unrelated to the simple moving average indicator in finance, to the solar inverter vendor SMA Solar Technology AG, or to the SMA coaxial connector standard that share the acronym.