> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 5.4 Control Register and Required Actions

> Security control register for Kcode Robot Suite with the status of each control and the action required.

Status values: **Met** means the repository implements the control. **Gap** means it does not. **Demo only** means a placeholder exists.

| ID | Control | Status | Evidence | Required action |
| - | - | - | - | - |
| SEC-1 | Authenticate users with unique credentials | Demo only | `DemoAuthService` accepts one fixed account. | Supply a production validator and session store. |
| SEC-2 | Protect session values | Gap | The cookie value is the constant `demo-admin`. | Issue unpredictable, server-verified session tokens. |
| SEC-3 | Enforce plugin permissions | Gap | The web runtime returns `true` for every permission. | Check `requiredPermissions` with the kernel's `PermissionService`. |
| SEC-4 | Mark session cookies `httpOnly`, `sameSite`, and `secure` in production | Met | Login server action. | None. |
| SEC-5 | Keep secrets out of source control | Met | No credentials in the repository. | Keep reviewing pull requests for secrets. |
| SEC-6 | Verify changes in CI | Met | `verify` job runs lint, typecheck, and test. | Add `pnpm build`. |
| SEC-7 | Use least-privilege workflow tokens | Met | CI uses `contents: read`. Release Please uses `contents: write` and `pull-requests: write`. | None. |
| SEC-8 | Dependency vulnerability scanning | Gap | No scanning workflow or Dependabot configuration is committed. | Enable dependency alerts and updates. |
| SEC-9 | Private disclosure of vulnerabilities | Gap | No security policy file is committed. | Add a `SECURITY.md`. |

> [!WARNING]
>
> Resolve SEC-1 to SEC-3 before the application is reachable by anyone other than its developer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.