Skip to content
provablPublic

About

Researcher training + access gating for AWS Secure Research Environments

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

97 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qualify

Compliance training and access gating for AWS Secure Research Environments.

Boundary: qualify owns the people plane — it trains researchers and records their approvals, writing the attest:* IAM tags attest's PDP reads. Where vet qualifies the software and steward governs the data, qualify qualifies the person. It does not decide access (attest does) or move data (steward does).

qualify is the training layer of the Provabl suite. Researchers complete compliance training through an interactive CLI; completion writes IAM tags to their role; attest's Cedar PDP grants or denies access based on those tags.

qualify train required                 # see what training your SRE needs
qualify train start cui-fundamentals   # interactive sections + quiz
qualify train status                   # show completion and expiry

Tests Apache 2.0


How it works

flowchart LR
    researcher["researcher<br/>completes training"] --> qualify["<b>qualify</b><br/>train + record approvals"]
    qualify --> tags["attest:* IAM role tags<br/>(cui-training, coc-check-current, …)"]
    tags -->|"principal.* attributes"| attest["<b>attest</b><br/>Cedar PDP gates access"]
Loading
  1. attest compile produces a crosswalk that maps compliance frameworks to required training modules (e.g., CMMC Level 2 → CUI Fundamentals + Security Awareness).
  2. qualify train required reads the active attest frameworks and shows which modules the user needs.
  3. qualify train start <module> presents sections of content and a quiz. Progress is saved between sessions (~/.qualify/progress/).
  4. On passing, qualify calls svc.CompleteModule() which writes an IAM tag to the user's role: attest:cui-training = true.
  5. attest's Cedar PDP evaluates that tag on the next access request. Until the tag is present (and unexpired), access to CUI environments is denied.

Completion certificates are saved to ~/.qualify/certificates/. Re-display any certificate with qualify train certificate <module-id>.


Core concepts

The handful of ideas to hold (terms link to the suite glossary):

  • Training-as-tool — qualify embeds the security education in the access workflow: completing a module is what unlocks access, not a side errand.
  • attest:* tags — on completion, qualify writes IAM role tags (attest:cui-training, attest:coc-check-current, …) — the lowered attribute attest's PDP reads. The namespace is attest:* because it's attest's integration interface.
  • evidence kernel lowering — completion is appraised through the kernel (a principal:// pair) and lowered to those tags, so the tag carries provenance, not a bare assertion.
  • qualify the person, not the data — qualify governs the people plane (training, approval records); the data plane (DUA-gated dataset access, ingestion) is attest/ground/steward.

Included training modules

Module ID Title Frameworks
security-awareness Security Awareness All
data-classification Data Classification All
cui-fundamentals CUI Fundamentals CMMC L1/L2, NIST 800-171
hipaa-privacy-security HIPAA Privacy & Security HIPAA
ferpa-basics FERPA Basics FERPA
itar-export-control ITAR Export Control ITAR
nih-research-security NIH Research Security NIH GDS
countries-of-concern-awareness Countries of Concern NIH GDS

Each module has 3 sections and a 5-question quiz (80% to pass, 2 attempts).


Install

go install github.com/provabl/qualify/cmd/qualify@latest

Requires Go 1.24+ and a PostgreSQL database (for progress tracking and IAM tag writes).


Quick start

# 1. Start the backend (PostgreSQL required)
make docker-up          # starts PostgreSQL on localhost:5433
make build-backend      # builds ./bin/qualify-backend
DB_HOST=localhost DB_PORT=5433 DB_USER=qualify \
  DB_PASSWORD=qualify_dev_password DB_NAME=qualify \
  ./bin/qualify-backend &

# 2. Run migrations
qualify lab setup       # runs golang-migrate up

# 3. Register your IAM role for tag writes
qualify lab register-role --role-arn arn:aws:iam::123456789012:role/ResearchRole

# 4. Check what training is required
qualify train required --framework cmmc-level-2

# 5. Start a module
qualify train start cui-fundamentals

# 6. Check status
qualify train status

Architecture

qualify CLI                 qualify backend (HTTP)     attest Cedar PDP
─────────────────           ──────────────────────     ─────────────────
train start                 POST /api/training/         evaluates:
  ├── reads module            complete                    attest:cui-training
  ├── runs quiz             GET /api/training/            attest:cui-training-expiry
  ├── svc.CompleteModule      progress                    (written by qualify)
  └── writes IAM tag        GET /api/dashboard/
                              stats
qualify agent (local)
─────────────────────
  intercepts AWS CLI
  checks training tags
  blocks unqualified ops

Key packages

Package Purpose
cmd/qualify/cmd/ CLI commands (train, lab, onboard, s3, credentials)
internal/training/ Module storage, quiz scoring, completion records
internal/localaudit/ JSONL audit log at ~/.qualify/audit.log
cmd/qualify-backend/ HTTP API for dashboard and training progress
cmd/qualify-agent/ Local agent intercepting AWS operations
web/ React + Radix UI + Tailwind dashboard (TypeScript, Vite, optional)

Integration with attest

qualify writes IAM tags in the format attest:<training-id> = true with a companion attest:<training-id>-expiry = <ISO8601>. attest's Cedar PDP reads these during access evaluation. Tags are written to the role registered via qualify lab register-role.

The attest:* tag contract is a versioned schema shared with attest (qualify#32). The canonical, machine-readable schema is internal/training/attest-tags-schema.json — byte-identical to attest's pkg/schema/attest-tags-schema.json. A conformance test (internal/training/tags_schema_test.go) locks qualify's tag constants, moduleTagMap, and ModuleExpiryTag to that schema, and checks SchemaVersion matches, so any key drift fails CI instead of silently breaking Cedar evaluation. To change a key: edit the schema in both repos (keep them byte-identical), update the constants, bump SchemaVersion in both, and release together. Full contract: attest's docs/integrations/qualify.md.

Integration with ground

ground's external_services config declares that qualify is deployed. ground exports this to ground-meta.json; attest reads it to know that training-gated access is in effect.


Configuration

qualify reads database connection settings from environment variables:

Variable Default Description
DB_HOST localhost PostgreSQL host
DB_PORT 5432 PostgreSQL port
DB_USER qualify Database user
DB_PASSWORD (required) Database password
DB_NAME qualify Database name
DB_SSLMODE disable SSL mode (disable, require, verify-full)
MIGRATIONS_PATH ./migrations Path to migration files
PORT 8080 Backend HTTP port

Set these in your shell or use a .env file for local development.


Local audit log

Every training event is written to ~/.qualify/audit.log in JSONL format regardless of backend availability:

{"ts":"2026-04-30T14:22:00Z","event":"module_completed","user":"[email protected]","module":"cui-fundamentals","details":{"score":80}}
{"ts":"2026-04-30T14:22:01Z","event":"iam_tag_written","user":"[email protected]","module":"cui-fundamentals","details":{"tag":"attest:cui-training"}}

Development

git clone https://github.com/provabl/qualify
cd qualify

# Install tools
make install-tools

# Run all checks (fmt, vet, staticcheck, short tests)
make check

# Run full test suite
make test

# Start dev environment (PostgreSQL)
make docker-up

# Build all binaries
make build

See CONTRIBUTING.md for the full development guide.


Suite

Tool Role
ground Deploys the AWS org foundation (OUs, networking, logging, Identity Center)
attest Compiles compliance frameworks → SCPs, Cedar policies, Config rules
qualify Training and access gating for researchers
vet Software supply chain verification (sign, verify, sbom, gate)

Open-core model

The CLI, backend API, training engine, IAM tag integration, and basic web dashboard are open source (Apache 2.0, always free).

The commercial tier (qualify Cloud) adds expert-validated compliance content packs, advanced web dashboard, SSO/LDAP integration, multi-institution management, and compliance report generation.

See COMMERCIAL.md for the full boundary.


License

Apache 2.0. Copyright 2026 Playground Logic LLC.

About

Researcher training + access gating for AWS Secure Research Environments

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages