Security, privacy, and reliability
Security on Zenifra combines platform controls, correct project configuration, and good practices from the team operating the application. This page describes the public points to review before running important workloads in production.
Access model
CPF and CNPJ accounts operate through organizations. Inside an organization, access can be separated by roles and granular permissions.
Use organizations to:
- separate personal, company, and client projects
- invite members without sharing credentials
- limit access to projects, databases, billing, Git sources, and AI keys
- review who can edit variables, view logs, trigger deploys, or change billing
For role and permission details, see Organizations and Permissions.
Also protect each user account:
- enable two-factor authentication (2FA) with an authenticator app (TOTP)
- review the sign-in history for the last 7 days in Account
- keep sign-in and password change notifications enabled
- if you suspect unauthorized access, change your password: this ends all sessions and connected integrations of the account (the Sign out button ends only the current session)
See Account security.
Secrets and environment variables
Application secrets should stay out of source code. Use environment variables in the console to store:
DATABASE_URL- external service tokens
- private keys
- API keys
- private registry credentials
Best practices:
- do not commit production
.envfiles - use consistent names across local and production environments
- rotate credentials when someone leaves the team
- separate keys by environment, customer, or integration
- grant edit permission only to people who really need it
Warning: Environment variables can be read or changed by members with project permission. Do not place secrets in frontend code, public artifacts, public Docker images, or build logs. When you save a new secret as an environment variable, the project instances restart automatically to read the updated value; see Environment variables.
API keys
Projects and resources can expose keys used for automation or integration. Treat these keys as production secrets.
Recommendations:
- copy and store the key when it is displayed
- do not send keys in messages, public issues, or logs
- use one key per integration when possible
- restrict global API keys by IP when the automation has a fixed source
- grant only the RBAC permissions required by the automation
- remove or replace keys that may have leaked
- document internally who owns each key
Risk: Zenifra API keys allow automations over organization resources. Do not use these keys in browser-executed web applications or publicly distributed mobile clients; use them only in controlled environments such as servers, pipelines, and internal tools. If a leak is suspected, revoke the key and create a new one.
Database
Managed databases (PostgreSQL, MariaDB, and ClickHouse/Analytics) and Valkey services show connection details in the console. The application must receive these values through environment variables.
Attention points:
- the application user should not be treated as
rootorsuperuser - outside the joint template deployment,
DATABASE_URL(or the equivalent variables) must be configured manually in the HTTP project - persistent storage remains relevant even when the application is stopped
- version upgrades can cause temporary unavailability
- databases have automatic backups, but also keep your own backup routines (for example, periodic dumps) of critical data and test restores
Network and public exposure
Public HTTP projects receive a Zenifra URL and can use a custom domain according to the plan. For internal apps, admin tools, workers, or automations that do not need external traffic, create or change the project to exposure: private to avoid a public domain.
When the project must remain public, review IP access controls, available starting on the Premium Plus plan; see Network access.
Before production:
- validate DNS and domain
- use HTTPS on public endpoints
- limit administrative access
- avoid exposing internal dashboards without authentication
- treat database URLs and tokens as sensitive data
HTTP security headers
On public URLs, Zenifra applies default values for some security headers. Each default is added only when the application response does not include that header. If the application sends its own value, that value takes precedence and reaches the browser unchanged.
| Header | Default value (only when the application sends none) |
|---|---|
X-Frame-Options | SAMEORIGIN |
X-Content-Type-Options | nosniff |
Referrer-Policy | same-origin |
X-XSS-Protection | 1; mode=block |
Strict-Transport-Security (HSTS) | no default |
The rule applies header by header, on every response and on custom domains too. An application that sends only X-Frame-Options: DENY keeps DENY and receives the other defaults.
To configure them, send the headers from the application itself (in the project's framework, middleware or web server). For example:
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Security-Policy: frame-ancestors 'none'- HSTS: Zenifra does not send HSTS by default. The browser keeps the value for the whole
max-age, and it cannot be undone before that. UseincludeSubDomainsonly when every subdomain of the domain, including those hosted outside Zenifra, works over HTTPS. - Iframes: the
frame-ancestorsdirective ofContent-Security-PolicyreplacesX-Frame-Optionsand takes precedence in current browsers. To let other sites embed the application, setframe-ancestorsto the allowed origins; without it,X-Frame-Optionsapplies (yours or theSAMEORIGINdefault). - Libraries such as
helmet(Express) already send several of these headers, including HSTS withincludeSubDomains. Review the values before publishing.
Logs and operational audit
Logs help investigate failures, but they can also leak data if the application records sensitive information.
Avoid writing to logs:
- passwords
- tokens
- authorization headers
- personal documents
- complete payloads with sensitive data
The platform shows each user's sign-in history and the last access and last IP of each API Key. When formal audit trails of application operations are required, define internally what must be recorded and record those events in the application itself.
LGPD and personal data
Zenifra should be used in a way compatible with LGPD and your organization's data policy. The application published on the platform remains responsible for defining legal basis, minimization, retention, and deletion of the data it collects.
Best practices:
- collect only required data
- document retention and deletion
- protect personal data in logs and integrations
- review member permissions frequently
- keep an internal channel for data subject requests
Incidents
If you suspect a key leak, unauthorized access, or abnormal behavior:
- rotate affected keys and passwords
- review organization members and permissions
- inspect application logs
- reduce public exposure if needed
- contact support ([email protected]) with objective context
To follow platform availability and ongoing incidents, check the status page at status.zenifra.com.
Next steps
FAQ
Does Zenifra replace application security?
No. The platform provides operational controls, but application authentication, end-user authorization, input validation, and data protection remain the project's responsibility.
Can I share one account between people?
It is not recommended. Use organizations, invitations, and permissions to separate access and keep operational traceability.
Where should I store secrets?
Store secrets in the console as environment variables or in your organization's internal vault. Never version secrets in the repository.
Last updated on
Organization API Keys
Create global Zenifra organization API keys for CI/CD, the CLI, and integrations, with RBAC, expiration, IP allowlists, scopes, revocation, and rotation.
Settings
Zenifra settings: change the image of OCI-based projects and manage your account, including name, password, 2FA, notifications, Git connections, and deletion.