Documentation
¶
Overview ¶
Package httpserver wires the Cypra HTTP surface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTenantDeletionCleanup ¶
RunTenantDeletionCleanup permanently removes tenants whose deletion window has elapsed.
Types ¶
type Options ¶
type Options struct {
DB *sql.DB
TenantDB *db.TenantScopedDB
PublicBaseURL string
Version string
Commit string
Logger *slog.Logger
DevOpenAPI bool
StorageReady func(context.Context) error
KEKLoaded bool
MasterKey []byte
BotVerifier botmitigation.Verifier
GoogleSecret []byte
GoogleAuthURL string
DashboardFS fs.FS
DashboardDev string
Storage storage.Store
StorageBackend string
// TrustDevHeaders gates whether the auth middleware honors the
// X-Cypra-Instance-Admin / X-Cypra-Tenant-Role / X-Cypra-User-Id elevation
// headers. Tests and trusted proxies set this; production must not.
TrustDevHeaders bool
// TrustedProxyHeaders gates whether X-Forwarded-* headers are honored for
// host, scheme, and client IP. It is configured server-side only.
TrustedProxyHeaders bool
BlockTerminalEmail bool
}
Source Files
¶
- audit_handlers.go
- audit_writer.go
- auth_account_handlers.go
- auth_handlers.go
- auth_providers_handlers.go
- branding_logo.go
- handlers.go
- hosted_social_handlers.go
- hostedlogin_handlers.go
- instance_admin_login_handlers.go
- instance_summary_handlers.go
- member_handlers.go
- metrics_runtime.go
- oidc_connections_handlers.go
- oidc_handlers.go
- pat_handlers.go
- phase10_handlers.go
- profile_handlers.go
- provider_crypto.go
- ratelimit_helpers.go
- registration_handlers.go
- server.go
- session_helpers.go
- setup_handlers.go
- signing_key_handlers.go
- social_handlers.go
- storage_proxy.go
- user_action_handlers.go
Click to show internal directories.
Click to hide internal directories.