# Security and access control

> AmunCore is a controlled access layer in front of your data. Every channel (REST, GraphQL, MCP, agents, apps and webhooks) goes through the same keys, permissions, row and column rules, approvals and audit log, and each company is isolated from every other.

## Hosting

- Self-hosted: installed on your own servers, behind your firewall. Data never leaves your environment.
- Managed cloud: AmunCore's hosted service with strict per-company isolation.

In both, AmunCore never copies, exports or stores your database records.

## API keys

- A primary key per application, plus scoped keys: read-only, write-only or full access.
- Expiry dates, revoke at any time, rotate safely.
- Optional IP allow list and CORS settings (Pro and Enterprise), and rate limits.

## Who sees which rows and columns

- Row rules: limit an endpoint by up to 5 columns (for example branch or company). Each person, API key and AI connection sees only the rows for its own values.
- Column rules: hide chosen columns from chosen callers.

## Approvals and AI writes

- Approval policies hold a change until a responsible person approves it, for every caller including AI. Approved changes are saved once, in the name of the person who asked.
- Required fields stop an assistant saving a record with details missing.

## Accounts

- Roles: Viewer, Developer and Admin.
- TOTP two-factor sign-in with recovery codes, sign-in lockout after repeated wrong passwords, and a list of signed-in devices that can be ended.
- Google and Microsoft sign-in.

## Encryption and queries

- Passwords hashed with BCrypt; connection strings and secrets encrypted with AES-256.
- Every database query is parameterized, which protects against SQL injection.
- Webhooks are signed with HMAC-SHA256.

## Audit

- Every API and AI action is logged, filterable and exportable.
- Events can be forwarded as they happen to Splunk, Microsoft Sentinel, Datadog, Elastic or any HTTPS event collector.

## Related

- [Security and data page](https://amuncore.com/security.html)
- [AI access over MCP](https://amuncore.com/docs/mcp.md)
- [AmunCore overview](https://amuncore.com/llms.txt)
