Security notes
Credentials and variables
Section titled “Credentials and variables”- Variables are encrypted with AES-256-GCM. The key comes from
WEFTRA_SECRET_KEYor the key file. See Deployment. - Credential values are never returned by the API. Generic values are.
- Secret fields reach components as secrets. They never appear in errors, parameters, events or results, and the model clients read credentials only from component fields, never from the environment on their own.
- MCP server configurations are encrypted at rest. Their secrets are masked when you read them back.
- Paused human-in-the-loop runs store their state, including request variables, encrypted with the server key.
Users and sessions
Section titled “Users and sessions”- Passwords are hashed with bcrypt (cost 12). Standard
$2b$bcrypt hashes are accepted. - Sessions are HS256 JWTs in HttpOnly,
SameSite=Laxcookies: access 1 hour, refresh 7 days. - Refresh tokens rotate. Replaying an old refresh token fails and revokes the session.
- Password changes, deactivation and demotion end every token of that user.
- After 10 failed logins per username or per client address in 5 minutes, the server answers 429 with
Retry-After. Unknown usernames are checked against a dummy hash, so timing does not reveal which accounts exist. - Tokens and passwords are never logged.
- Flows, projects, variables, API keys, files, messages, builds and jobs are filtered by owner in the SQL itself. Another user’s id answers 404.
- Roles beyond superuser and ownership are out of scope.
Outbound calls (SSRF guard)
Section titled “Outbound calls (SSRF guard)”MCP probes, MCP tool servers and A2A destinations go through a destination policy:
- only
httpandhttps - no loopback, private, link-local, CGNAT or cloud-metadata addresses, and no internal names
--allow-private-destinations (WEFTRA_ALLOW_PRIVATE_DESTINATIONS) turns this off, for example when your MCP server runs on the same machine.
Host names are not resolved by the policy, so DNS rebinding is not covered.
The URL and API Request components block loopback, private and link-local hosts by default. The SQL component refuses private hosts by default.
MCP stdio servers
Section titled “MCP stdio servers”A stdio MCP server runs a local command on the server. Only superusers can register stdio servers, and only when the server runs with --allow-mcp-stdio (WEFTRA_ALLOW_MCP_STDIO). Stdio servers are not started for status checks.
Python bridge
Section titled “Python bridge”The opt-in Python bridge (WEFTRA_PYTHON_COMPONENTS) runs Python custom component code as the server’s operating-system user. It is not a sandbox. See Custom components for the safeguards. The server refuses to start with the bridge on, auto-login on, and a network bind.
Uploads
Section titled “Uploads”- Uploaded file names are reduced to their base name.
- ZIP imports are limited to 100 entries and 50 MiB uncompressed, read only
.jsonentries, and refuse absolute or..paths. - The upload size limit is
WEFTRA_MAX_FILE_SIZE_UPLOAD(MiB, default 100).
Public flows
Section titled “Public flows”- A PUBLIC flow can be read and run without login, and runs as its owner.
- The public flow JSON leaves out the owner and project, and blanks every
passwordfield value. - Public builds are limited to 10 starts per minute.
CORS is off unless you configure origins with --cors-origin or WEFTRA_CORS_ORIGINS.
Known limits
Section titled “Known limits”- The inbound webhook trigger route has no rate limit yet.
- DNS rebinding is not covered by the outbound policy (see above).
- The Python bridge is not a sandbox.
Weftra is open source under Apache-2.0. Made by Liceron.