{
 "usage": {
  "what": "The provisions that bear on a component you are building, in the publisher's own words, with a citation line to paste into a code comment.",
  "call": "https://referencesource.org/api/requirements?component=database&regime=hipaa",
  "parameters": {
   "component": "Required. One of the words below, or any of its also_accepted spellings. Up to 6 separated by commas.",
   "regime": "Optional. hipaa or nist (aliases accepted: hipaa security rule, nist 800-53). Left out, both documents answer.",
   "limit": "Optional. Provisions per component, default 5, most 20.",
   "format": "Optional. `text` for plain text a terminal or a code comment can take; JSON otherwise."
  },
  "components": {
   "database": {
    "concerns": [
     "encryption at rest",
     "backup",
     "audit logging",
     "access review"
    ],
    "also_accepted": [
     "db",
     "datastore",
     "data store",
     "postgres",
     "postgresql",
     "mysql",
     "mariadb",
     "sql",
     "sqlite",
     "mongodb",
     "mongo",
     "dynamodb",
     "rds",
     "data warehouse",
     "warehouse"
    ]
   },
   "object storage": {
    "concerns": [
     "encryption at rest",
     "backup",
     "access review"
    ],
    "also_accepted": [
     "blob storage",
     "file storage",
     "bucket",
     "buckets",
     "s3",
     "gcs",
     "r2",
     "filesystem",
     "file system",
     "disk",
     "volume",
     "storage",
     "uploads",
     "attachments"
    ]
   },
   "logging": {
    "concerns": [
     "audit logging"
    ],
    "also_accepted": [
     "logs",
     "log store",
     "logging pipeline",
     "audit log",
     "audit",
     "siem",
     "observability",
     "telemetry",
     "monitoring"
    ]
   },
   "web app": {
    "concerns": [
     "session timeout",
     "audit logging"
    ],
    "also_accepted": [
     "frontend",
     "front end",
     "ui",
     "portal",
     "dashboard",
     "spa",
     "website",
     "web application",
     "browser app"
    ]
   },
   "api": {
    "concerns": [
     "audit logging",
     "access review",
     "session timeout"
    ],
    "also_accepted": [
     "api gateway",
     "rest api",
     "graphql",
     "service",
     "microservice",
     "backend",
     "back end",
     "endpoint",
     "server"
    ]
   },
   "authentication": {
    "concerns": [
     "session timeout",
     "access review"
    ],
    "also_accepted": [
     "auth",
     "login",
     "log in",
     "sign in",
     "sso",
     "identity",
     "oauth",
     "saml",
     "mfa",
     "session",
     "sessions"
    ]
   },
   "secrets management": {
    "concerns": [
     "key rotation",
     "encryption at rest"
    ],
    "also_accepted": [
     "secrets",
     "secret store",
     "key management",
     "kms",
     "vault",
     "keys",
     "credentials",
     "certificates",
     "encryption keys"
    ]
   },
   "backups": {
    "concerns": [
     "backup"
    ],
    "also_accepted": [
     "backup",
     "snapshot",
     "snapshots",
     "disaster recovery",
     "dr",
     "restore",
     "replication",
     "replica",
     "business continuity"
    ]
   },
   "access control": {
    "concerns": [
     "access review",
     "audit logging"
    ],
    "also_accepted": [
     "iam",
     "permissions",
     "roles",
     "rbac",
     "authorization",
     "user accounts",
     "accounts",
     "admin access",
     "offboarding",
     "joiners and leavers",
     "least privilege"
    ]
   },
   "employee device": {
    "concerns": [
     "session timeout",
     "encryption at rest"
    ],
    "also_accepted": [
     "laptop",
     "laptops",
     "workstation",
     "workstations",
     "mobile app",
     "mobile",
     "phone",
     "endpoint device",
     "byod"
    ]
   }
  },
  "how_the_order_was_decided": "`provisions_matched` is every provision in these records whose published text carries one of the phrases in `matched_on`; `provisions_returned` is how many of them are printed. Which ones are printed is OURS and is decided only by how directly each provision's own words name the concern: Each document in turn, the one with more matches on this concern leading, so the smaller document is never crowded out; inside a document, by how directly the provision's own words name the concern — first the ones whose own published name carries one of the matched phrases, then by how direct that phrase is, with a base provision before its enhancement, and last the ones whose own text narrows them to another subject (mobile devices, physical entry to a building, an off-site storage location). Ties keep catalogue order, so the same call always answers the same way. A provision narrowed to another subject is ranked down, never dropped: it says so in `narrower_subject` when it is printed, it is still counted in `provisions_matched`, and the MCP tool controls_for on that concern lists it in this same order. Ask with the component the subject belongs to and it is no longer narrower — `component=laptop` ranks the mobile-device controls up, not down. To read the documents whole, https://referencesource.org/security-compliance-controls/data.json.",
  "examples": [
   "https://referencesource.org/api/requirements?component=database&regime=hipaa",
   "https://referencesource.org/api/requirements?component=database,logging&format=text",
   "https://referencesource.org/api/requirements?component=postgres&regime=nist&limit=3"
  ],
  "how_components_are_mapped": "The component vocabulary is OURS, not the publisher's: no document says which provisions govern 'a database'. Each component word is mapped to the concerns named in `concerns`, and each concern is matched by the literal phrases in `matched_on` appearing in the published title or text. If you disagree with a mapping, ask for the concerns directly with the MCP tool controls_for, or read the whole document at https://referencesource.org/security-compliance-controls/.",
  "not_held": "SOC 2 (AICPA), ISO/IEC 27001 and PCI DSS are deliberately not in this dataset: that text is copyrighted by the bodies that sell it, so it cannot be republished here.",
  "attestation": "Each provision below is the publisher's own text out of our records, with the sentence we read it from and a link to it. A provision being listed says that its document contains it, NOT that it applies to your system and not how to satisfy it. Nothing here is legal advice.",
  "dataset_page": "https://referencesource.org/security-compliance-controls/",
  "answered_by": "referencesource.org /api/requirements (automated service)"
 }
}
