Skip to content
Get started
Operational Security

Controls that are actually live

This page is the operator-facing companion to Bastionary's broader security page. It only covers controls that are already built into the running product, with no roadmap padding and no trust-by-marketing.

Live command surface
399
Security hardening items
8
Admin routes
55+
Audit posture
RBAC + logs

Security is only useful when it survives day-two operations

Bastionary hardens the boring edges that break real deployments: wildcard CORS, unsafe admin search, exception swallowing in auth hooks, and missing audit context when privileged flows run.

Privileged actions stay attributable

Impersonation sessions are tracked for later revocation, tenant boundaries are enforced in audit reads, and superadmin-only operations are intentionally separated from normal user flows.

Abuse controls are explicit

Invalid bearer tokens and login-adjacent requests are rate-limited instead of silently hammering the backend. That lowers brute-force and enumeration risk without inventing a separate edge appliance story.

Every shipped hardening item from the current build

These map directly to the `FEATURES.md` security hardening section and intentionally avoid speculative claims.

Review
Code review with adversarial debate is documented
Critical, high, and medium findings were captured through a proposer-vs-devil's-advocate review loop instead of a single optimistic pass.
Injection
Admin user search escapes SQL LIKE metacharacters
Search input now treats `%` and `_` as data instead of wildcard control characters, closing a practical admin-surface injection bug.
Transport
CORS is hardened to explicit methods and headers
Cross-origin access is declared intentionally rather than left on wildcard defaults that are easy to overexpose in production.
Hooks
Blocking auth hooks fail closed instead of silently continuing
If a pre-login or policy hook throws a blocking error, Bastionary surfaces that failure instead of letting the login continue in an undefined state.
Exposure
Interactive API docs can be disabled in production
Operators can remove the `/docs` surface from production deployments through environment configuration when that exposure is not acceptable.
Rate limit
Invalid bearer tokens are rate-limited per IP
Repeated bad-token traffic is throttled early, reducing brute-force and noisy credential stuffing against privileged API surfaces.
Sessions
Impersonation sessions are tracked for later revocation
Support or admin impersonation is not a fire-and-forget shortcut; the session is marked so it can be audited and explicitly invalidated later.
Audit
Audit log reads are tenant-scoped
Operators do not get accidental cross-tenant visibility through shared audit queries; results stay bounded to the correct tenant context.
These are operational controls, not certifications. Bastionary still distinguishes between what is code-complete today and what depends on external audit programs, payment credentials, or production rollout decisions.

Where to go next

Security architecture

Use the main security page for token models, encryption, adaptive MFA, and broader architecture posture.

Developer implementation details

Use the developers guide for command-by-command integration, SDK quickstarts, and API ceremony details.