GhaylStackDocumentationv1.0.2
العربيةWebsite
Security and access

Security and access

Prepare a production installation

Review the actual production requirements, access boundaries and acceptance checks for your deployment.

Record the deployment being accepted

Start from a reviewed release, identify its source revision and record which images and configuration you will operate. A working local Aspire session establishes development functionality; production also needs actual domains, credentials, mail delivery, data retention and recovery procedures.

Run migrations as an explicit deployment operation before starting the matching API. Keep migration credentials and runtime access scoped to their jobs. Read deployment and migrations for the shipped execution paths.

Supply production-only credentials

Setting Validation or operating requirement
JwtOptions:SigningKey At least 32 characters; sample replace-with values are rejected
HangfireOptions:UserName At least 3 characters
HangfireOptions:Password At least 12 characters
DatabaseOptions:ConnectionString Required in Production
CachingOptions:Redis Required in Production
FrontendOptions:DefaultOrigin Required absolute HTTP(S) URL; use the actual HTTPS dashboard origin

Generate deployment-specific secrets and inject them through your operating environment. Do not reuse the public development passwords. For Compose, set the initial root password through SEED_ADMIN_PASSWORD; demo seeding is not part of that production startup.

Configure the public edge

Use valid TLS for the public web and API endpoints. Configure TrustedProxyOptions for the proxies you actually control so forwarded scheme and client-address information is interpreted correctly. Avoid allowing arbitrary forwarding sources merely to remove a redirect problem.

Set both CORS origins and identity-link origins. Confirm a password-reset or confirmation email links to the real frontend, not the API. Production sets OpenApiOptions:Enabled=false and enables rate limiting. If exposing API documentation, make that a deliberate access decision.

The jobs dashboard at /jobs uses separate configured credentials. Keep its exposure appropriate to operators. Check that security headers survive the reverse proxy and that required browser flows still work.

Preserve data and isolation

Persist PostgreSQL, object-storage data and Data Protection keys. The Redis key prefix must be consistent across instances of one installation and distinct where unrelated applications share the service. Changing it on an existing installation requires preserving the old key ring; see caching.

Validate public and private file access separately. Public object keys should be the intended public material; a successful anonymous avatar load does not justify public access to all attachments. Check two tenants and two permission levels when testing reports and exports.

For PDF, retain the non-root account and Chromium sandbox. If using a private worker, document its network boundary and the fact that report HTML is sent to it. See PDF rendering.

Perform operational acceptance

From the deployment host, check the actual API origin:

sh
curl -i https://api.example.com/health/live
curl -i https://api.example.com/health/ready

Replace the example domain. Expect successful readiness only after dependencies are healthy. Complete sign-in, tenant access, mail delivery, attachment upload/download, a background task and an Arabic/English report. Restart services and repeat the critical paths to expose missing persistence.

Restore a backup into an isolated target and verify application access there. Record tested behavior, failures and exclusions with the release revision. Configure monitoring and a private contact process before handing the installation to its operators.

Sources

Production defaults, startup validation, JWT checks, jobs credentials and security reporting.

View MarkdownBack to top

Search documentation

Use ↑ ↓ to move, Enter to open and Esc to close.