Skip to content
Menu

Production checklist

View .md

Go through this list before the first real user signs in. Each line links to where it is explained. For complete example configurations see the hardening guide; for every security setting in one table see the security settings reference.

  • Beacon:EncryptionKey comes from a secret store or environment variable, never a file in source control; its backup is stored separately from database backups. → Secrets and keys
  • You know how to rotate it: move the old key to Beacon:PreviousEncryptionKeys:0, set the new one, set Beacon:Mcp:CallerHashKey to the old key first if you want MCP caller hashes to stay comparable, run the re-encryption job, then remove the old key once it reports nothing left under it: pending changes of recipients, data-source connections and the LLM connection made under the old key can keep it needed until they are decided. Set Beacon:Audit:IntegrityKey before the first rotation: while it is unset, security audit events are signed under a key derived from the caller hash key or the encryption key, and verify as unknown key once that secret leaves the configuration. → Keys and rotation
  • Beacon:DataProtection:ApplicationName is set (one value per environment), and the key ring is encrypted at rest (ProtectKeysWithCertificate / ProtectKeysWithAzureKeyVault), otherwise the host does not start outside Development. → Host wiring
  • OIDC client secrets, LLM API keys and SMTP passwords come from the secret store.
  • Beacon:UserManagement:SetupToken is set for multi-instance first runs, and removed afterwards.
  • TLS terminates at the proxy, and the host runs UseForwardedHeaders with only your proxies listed, first in the pipeline. The per-address request limits (Beacon:RateLimits: login 10 / 60 s, anonymous refusals 30 / 60 s) and the cookie’s Secure flag depend on it.
var forwarded = new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto };
forwarded.KnownProxies.Clear();
forwarded.KnownNetworks.Clear();
forwarded.KnownProxies.Add(IPAddress.Parse("10.0.0.5"));
app.UseForwardedHeaders(forwarded);
  • Beacon:PublicBaseUrl is the public origin (e.g. https://beacon.example.com), so MCP discovery documents do not echo the client’s Host header. → Connect AI clients
  • options.BaseUrl (or Admin settings → Base URL) is the public UI URL including /beacon, so notification links work.
  • HTTPS redirection applies to /beacon/mcp too, because API keys travel in headers.
  • HSTS is sent by the host (app.UseHsts()) or the proxy, and AllowedHosts lists your real host names.
  • The origin check knows your public origin (Beacon:PublicBaseUrl or Beacon:Security:AllowedOrigins); after a release without its LogOnly warnings, Beacon:Security:OriginGuard is Enforce. → Security headers and the origin check
  • Proxy and Kestrel timeouts allow long requests (AI documentation, ask): the reference host uses 5 minutes.
  • Authorization is on (options.Authorization.Enabled = true).
  • SSO admission is narrow: AllowedTenants, BlockGuests (default on), RequiredGroups or RequiredRoles; RequireMfa if your provider issues amr/acr. → Sign-in & identity · Sign-in and sessions
  • Local passwords off once SSO works, with one break-glass account in a vault; alert on event 7119 BreakGlassSignIn.
  • Beacon:Authorization:RequireProjectMembership: true; projects planned; data sources linked only where needed. → Access control
  • Few Admins; duties given as functional permissions; SeparationOfDuties on if your auditors expect it.
  • Approval workflow on with at least two Approvers, RequireApprovedVersionToRun for regulated data. → Approvals
  • API keys: decide Beacon:ApiKeys:MaxLifetimeDays and MaxOwnerInactivityDays.
  • Every data source uses a read-only login, including PostgreSQL and MySQL. → Connectors
  • Deployment locks reviewed: Beacon:Mcp:ForceReadOnly and ForcePiiDetection stay true; consider ForbidRowDataToLlm and ForceNoContentRetention. → Deployment locks
  • Beacon:Query:MaxExecutionRows (default 100,000) and StatementTimeoutSeconds (default 120) fit your workloads. → SQL execution gate
  • Beacon:Mcp:Ceilings:MaxRowLimit set if project admins must not raise the MCP row limit.
  • Data-source connections verify the server over TLS, Beacon:DataSources:AllowedHosts lists the hosts they may name, and Beacon:DataSources:Transport:EnforceOnExisting is on once the stored connections pass. → Data-source connections
  • Beacon:Migrations:Enabled stays false unless you need data migration. It is the only write path.
  • Notification destinations restricted as needed: Beacon:Notifications:AllowedHosts:*, DisabledTypes; private networks stay unreachable unless listed in AllowedPrivateNetworks. → Notifications
  • Data retention reviewed: Beacon:Retention:Days set (nothing is purged while it is 0, the default; 90 recommended) and its targets match your policy, ContentDays set (30 recommended for regulated data), Locked on where no data may be kept forever, and IDataRetentionService.RunAsync scheduled daily. → Data retention
  • Beacon:Mcp:Audit:RetentionDays set to your retention policy (kept forever while unset; 365 recommended) and the purge job scheduled; Audit:Required: true if a tool result must never be returned without its audit row. → MCP observability & audit
  • Security log events (structured log events 7101 to 7123: membership, roles, sessions, break-glass, access refused, row data to LLM) are shipped to your log pipeline and alerted on. The log events themselves are not stored in Beacon’s database; the actions most of them report are also recorded in the security audit trail. → Security model
  • Security audit trail: Beacon:Audit:IntegrityKey set from a secret store (before you change the encryption key or the caller hash key), the verification job (ISecurityAuditVerificationService.VerifyNewEventsAsync, hourly) and the retention purge (ISecurityAuditRetentionService.PurgeExpiredAsync) scheduled, Beacon:Audit:RetentionDays set to your retention policy (at least 365; events are kept forever while it is unset), the Beacon.Audit events 9104 to 9116 shipped to your SIEM, and alerts on any increment of beacon.security_audit.write_failures and beacon.security_audit.verification_failures. → Security audit trail
  • To make the trail append-only at the database as well, Beacon’s connection uses a role that cannot update or delete security_audit_events rows other than through the purge, or triggers do the same. → What the trail does and does not prove
  • Where MCP audit content is retained, the SQL of every statement a call ran is stored with it: reviewed against your privacy policy; Beacon:Mcp:Audit:RequireContent pins retention on if the evidence must be kept. → MCP observability & audit
  • Structured JSON console logs (Logging:Console:FormatterName=json, IncludeScopes=true) if your platform correlates by trace id.
  • OpenTelemetry: add AddBeaconInstrumentation() to your tracer and meter providers, and AddBeaconMcpSdkTracing() to the tracer provider for the MCP SDK’s tools/call spans (their status descriptions cleared); you choose the exporter. Keep notification HTTP calls out of traces (their URLs carry secrets), and the REST API connector’s (their paths and queries can carry identifiers or a credential). NotificationRequests.IsNotificationRequest and ApiConnectorRequests.IsApiConnectorRequest identify them.
  • Health check GET /beacon/api/health (anonymous, checks the database within 5 s) wired to your load balancer. It answers before the first administrator exists too, so a brand-new deployment passes the probe while setup is still pending. The route is limited to 120 requests per minute per remote IP (429 with Retry-After), shares one database check for two seconds, and names no cause in a 503 to an anonymous caller. Behind a proxy, run UseForwardedHeaders so the limit is per client, not per proxy.
  • The OpenAPI document needs a signed-in Beacon caller outside Development when mapped with MapBeaconOpenApi(). List /openapi in Beacon:Authentication:AdditionalPaths so the Beacon session reaches it, or set Beacon:OpenApi:Anonymous to true to publish it.
  • Regular expressions: every pattern Beacon runs on user, catalog or model text carries its own match timeout (250 ms to 1 s), so no setting is needed. For your own host code, you can add a process-wide backstop with AppContext.SetData("REGEX_DEFAULT_MATCH_TIMEOUT", TimeSpan.FromSeconds(2)) (or the same name under configProperties in runtimeconfig.json) before the first regex is built; it applies only to patterns that set no timeout of their own.
  • Several instances: shared Data Protection key ring (Beacon’s database does this), a SignalR backplane (ConfigureSignalR), session affinity for /beacon/mcp (legacy MCP clients hold an Mcp-Session-Id in memory), and a job runner that fires each recurring job once.
  • Settings saved on one instance (admin settings, MCP settings) reach the others within about a minute: each instance checks the settings history for a newer change at most once every 60 seconds, on its next settings read, then drops its cached copies and applies the stored base URL and LLM configuration again. The instance that saved applies the change at once and, because its own history rows move the stamp, applies the stored settings once more within the minute (harmless: it applies what is stored). A re-apply that fails is tried again at the next check.
  • Beacon shares the host’s IMemoryCache: its keys start with beacon: and every entry has a size of 1, so a host MemoryCacheOptions.SizeLimit counts each Beacon entry as one.
  • Migrations run once per deployment, not from every replica at the same time. → Metadata database
  • Database pool sized for job workers plus web traffic.
  • All Moberg.Beacon.* packages on the same version.
  • Read the release notes of every version you upgrade to: a release can change defaults, and the notes say what to do.
  • Back up the metadata database before migrating; migrations are append-only and run forward.
  • After upgrading every instance, run one-off jobs the release notes name (for example recipient-secret encryption).