Skip to content

feat(maturity): GRC self-assessment POC, plan archive, lab JWT - #207

Merged
FabioLeitao merged 5 commits into
mainfrom
feature/grc-maturity-assessment-poc-a
Apr 20, 2026
Merged

FabioLeitao merged 5 commits into
mainfrom
feature/grc-maturity-assessment-poc-a

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

  • Maturity POC: gated \GET/POST /{locale}/assessment, optional YAML pack, SQLite answers with optional HMAC per row, \GET /status\ → \maturity_assessment_integrity.
  • Plans: move completed \PLAN_*\ files to \docs/plans/completed/\ with link refresh and new archive rule.
  • Lab: \scripts/issue_dev_license_jwt.py\ + \docs/private.example/licensing/\ for local \dbtier\ claims.

Commits (split)

  1. \docs(plans):\ archive completed plans
  2. \ eat(maturity):\ routes, DB, pack, integrity
  3. \chore(scripts):\ JWT issuer
  4. \ est(maturity):\ coverage
  5. \docs:\ USAGE, SECURITY, LICENSING_SPEC, plan updates

Checklist

  • .\scripts\check-all.ps1\ green locally

Made with Cursor

- Move finished PLAN_* files to completed/; refresh cross-links, PLANS_TODO, SPRINTS, PLANS_HUB.

- Add plans-archive-on-completion cursor rule; point Semgrep workflow and WABBIX baseline at new paths.

- AGENTS: document completed/ in plans hub sync and archive workflow.

Made-with: Cursor
… HMAC integrity

- Gated GET/POST /{locale}/assessment; optional maturity_assessment_pack_path; Pro+ / OPEN tier rules.

- SQLite maturity_assessment_answers with row_hmac; config api.maturity_integrity_secret_from_env / DATA_BOAR_MATURITY_INTEGRITY_SECRET.

- GET /status includes maturity_assessment_integrity summary.

Made-with: Cursor
- scripts/issue_dev_license_jwt.py issues HS256 tokens for local Pro/Enterprise simulation.

- docs/private.example/licensing/README points to script; test_scripts guards compile.

Made-with: Cursor
- Cover gated HTML/POST, YAML pack, HMAC verification, licensing tier features, route matrix, DB wipe.

Made-with: Cursor
- Document /assessment, HMAC env, GET /status maturity_assessment_integrity; LICENSING_SPEC dbtier gate note.

- SECURITY: optional assessment route in surface; PLAN_MATURITY progress + PLAN_PRODUCT_TIERS cross-link.

Made-with: Cursor
Comment thread api/routes.py
c = g.context
if c.state in ("VALID", "GRACE"):
dbtier_claim = str(getattr(c, "dbtier", "") or "").strip().lower()
except Exception:
Comment thread api/routes.py
pack = load_maturity_pack(p)
except (OSError, ValueError, yaml.YAMLError):
return None
_maturity_pack_cache = (key, mtime, pack)
from cryptography.hazmat.primitives.serialization import load_pem_private_key


def _load_private_key_pem() -> str:
@FabioLeitao
FabioLeitao merged commit 881ba90 into main Apr 20, 2026
1 check passed
@FabioLeitao
FabioLeitao deleted the feature/grc-maturity-assessment-poc-a branch April 20, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants