# Data classification standard

This standard sets what HKB may show, and to whom. Each piece of information about the environment belongs to one of four tiers, and the tier decides where it may live, who may read it and what enforces that. The site exists to show the work, so most of it is public. The standard draws the line where showing more would help an attacker more than it helps a reader.

> [!NOTE]
> A tier is a rule about need to know, not a promise of secrecy. The test for the shared tier is that a leaked link must not hurt: nothing in it would help someone get into the environment.

## The tiers

| Tier | Who may read it | Examples | Where it lives |
| --- | --- | --- | --- |
| **Public** | Anyone | Architecture, policies as deployed, decision records (ADRs) and the reasons pages give, controls and their evidence, cost, risks, runbooks, the rebuild steps, and ticket keys, summaries, statuses, owners and dates | This site, every environment |
| **Shared** | A named recruiter or engineer, by a personal link | The decision working record (options weighed, leans and rulings), the build plan's full notes, pull request descriptions and reviews, deeper evidence | This site, behind the shared-tier gate (planned) |
| **Internal** | The accountable owner and the build tooling | Account, organization, root and OU IDs, Identity Center, KMS, CloudFront and hosted zone IDs, the alert mailbox address, contact details, the private repository | The private repository, SSM parameters, the organization itself |
| **Restricted** | The owner only | Credentials, keys, recovery codes, MFA seeds | A password manager. 4 long-lived credentials exist, all stored there |

## How each tier is enforced

**Public.** Every page is generated from the repository and checked before it ships. The site build fails on anything that looks like an account, organization, root or OU ID, an Identity Center, KMS key or GuardDuty detector ID, a CloudFront distribution, hosted zone or access key, an EC2 resource ID (instance, network, volume or machine image), a public IP address in either version, or an email address, and on a page that links somewhere that doesn't exist. It reads each file three ways: as written, with HTML entities and URL escapes undone (so a value inside a link or attribute shows), and with tags removed as well, so an ID split by a tag or written as entities is still caught. Images are read for metadata, and a PNG carrying any text fails. It also fails on inline scripts and styles, which the site's content security policy would block. What it can't catch is a value in a form no pattern describes, such as an ID spelled out in words; for that, review is the control. Templates take IDs from SSM parameters at deploy time, so the current tree holds none (DQ-02). Three days of early history, in October 2026, did; the repository is private, and that history is rewritten before the repository is ever shared or made public (DQ-298). Machine image IDs are held back too, public ones included: runbooks write `<ami-id>` (DQ-303).

**Shared.** The plan (DQ-223) is a personal link per reader that expires after 7 days by default. A CloudFront Function checks the link's token against a key-value store and sets a cookie, so there is no sign-up and no user database. Each token names one reader, every use appears in the CloudFront logs, and deleting the token revokes it at once. Use is shown per reader on the traffic page, which sits behind the same gate (DQ-297). The first shared release is the decision working record: the options weighed, the leans and the rulings. The decision records (ADRs) and the reasons pages give stay public; the build plan's notes, pull request text and deeper evidence follow. Until the gate is built, shared-tier content stays unpublished, and the public pages say where it would be.

**Internal.** The repository is private. Account, organization, root and OU IDs are masked in the control tests' published output, and the site build rejects those and the other ID families on every page. The alert mailbox address is held in an SSM parameter in the Security account (DQ-80), never in a file. gitleaks scans every pull request.

**Restricted.** 4 long-lived credentials can't be designed away: the management account's root user, the email account behind it, the GitHub account and the owner's own Identity Center user, which signs in at the AWS access portal with a password and MFA. All 4 are stored in a password manager that only the owner opens. The SSH key that pushes to GitHub and the GitHub CLI's token sit on the owner's workstation; both act only as the GitHub account and are revoked from it, so they're counted under it. The password manager's own master password guards the 4 and reaches nothing in AWS by itself. Everything else is short-lived. People sign in through IAM Identity Center with short sessions and MFA. There are no IAM users and no access keys (SCP-04). Member accounts have no root password (centralized root access). Machines get roles, never secrets.

## Moving information between tiers

Information moves to a more open tier only by a pull request that changes what the build publishes, reviewed like any other change. Moving it the other way is a takedown: the next deploy removes it from every environment, and CloudFront caches are invalidated by the pipeline.

> [!WARNING]
> Anything that reaches the public tier should be treated as permanent. Search engines and archives keep copies after a page changes.

## The service desk follows the standard

The [service desk](/tickets/) publishes the public fields of every ticket: key, summary, status, owner, dates and the links between tickets. Each build ticket names what its shared-tier detail would add; risks and incidents are published in full.
