Context pack

Select latest-version context options and export them as a ZIP file.

Latest options DMBServerHelper

configuration-keys

Configuration and secrets
configuration-keys website saas game configuration secrets environment-variables
Context text
DMB package configuration keys must use the logical form DMB:{Package}:{Section}:{Name}.
Environment variables must replace each ':' with '__', for example DMB:Stripe:SecretKey becomes DMB__Stripe__SecretKey.
Keep secret keys and non-secret runtime settings in the same DMB:{Package}:... namespace when they belong to the same feature.
Do not introduce new package variables under implementation class names when a DMB:{Package}:... key exists or can be introduced.

configuration-lifecycle

Configuration lifecycle
configuration-lifecycle website saas game configuration startup generic-configuration
Context text
Use GenericConfiguration<T> and package-level configuration classes for DMB package startup.
Load ServerHelperConfiguration before package configuration that depends on server defaults, secrets, localization, URL composition, cookies, or sessions.
Keep configuration loading deterministic and document when new behavior runs: before file loading, during file loading, after file loading, or during application middleware registration.

cookie-session-contracts

Cookies and sessions
cookie-session-contracts website saas game cookies sessions security
Context text
Cookie and session names, default values, groups, duration, security flags, serialization formats, and parsing behavior are externally observable.
Prefer additive changes and keep global cookie/session registries deterministic.
Review compatibility before changing existing definitions, deletion behavior, SameSite policy, Secure policy, or serialization formats.
Treat cookies, sessions, data protection, validation messages, and user-provided URL values as security-sensitive areas.

domain-url-composition

Domain and URL composition
domain-url-composition website saas game domain url security
Context text
Use DMBServerHelper domain and URL composition helpers when host, domain, localhost, subdomain, or HTTPS URL behavior is involved.
Document accepted input formats, localhost handling, subdomain handling, and generated HTTPS URL format for domain APIs.
Treat user-controlled URL values as security-sensitive input and keep fallback behavior explicit.

localization-composition

Localization
localization-composition website saas game localization resources lookup-order
Context text
Use WebLocalizer and CombinedStringLocalizer for shared localization lookup.
Keep localizer registration order, fallback behavior, and debug behavior explicit and deterministic.
Do not hide localization lookup-order changes behind generic wording; document downstream impact when lookup behavior changes.
Follow the local localization nomenclature before adding new keys.

secret-management

Secret management
secret-management website saas game secrets security validation
Context text
Feature packages must register required secrets through ServerHelperConfiguration.Config.Secrets.Require(...).
Read secret values through the central SecretManager instead of custom IConfiguration lookups scattered through feature code.
Validate all registered secrets from one central host point after package configuration calls have completed.
Never log secret values; diagnostics may show missing keys and setup instructions only.
PreProduction and Production must fail closed when required secrets are missing.