{"controls":[{"description":"Every commit that reaches a protected branch can be tied to an identified author and a recorded review, so the question of who changed what, and who agreed, has an answer that does not rest on trust alone.","domains":["change-management"],"evidence":{"assertion":"for every commit c on a protected branch: c carries a verified identity and c merged through a recorded, approved review","collector":"gitea-api","frequency":"daily","source":"the forge history of each protected branch and its review records, read through the forge API"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"preventive","id":"code.change.attribution-verifiable","mappings":{"iso-27001":["A.8.32"],"nist-800-53":["CM-5","AU-10"],"soc2":["CC8.1"]},"providers":["code"],"related":["code.repo.default-branch-protected","pipeline.deploy.traceable-to-source"],"severity":"medium","status":"planned","title":"Changes to protected branches carry a verifiable author and review","updated":"2026-11-22","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/change-attribution-verifiable/"},{"description":"Every dependency manifest in a repository is paired with a committed lockfile, so a build installs the versions that were reviewed rather than whatever resolves on the day.","domains":["supply-chain"],"evidence":{"assertion":"for every manifest m in the tree: lockfile(m) is tracked","collector":"git","frequency":"on-push","source":"git ls-files, scanned for manifest and lockfile pairs"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"preventive","id":"code.deps.lockfile-committed","mappings":{"iso-27001":["A.5.21"],"nist-800-53":["SR-3"],"soc2":["CC8.1"]},"providers":["code"],"related":[],"severity":"medium","status":"attested","title":"Dependency manifests ship with a committed lockfile","updated":"2026-10-03","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/deps-lockfile-committed/"},{"description":"Every third-party dependency a build resolves is fixed to a reviewed version from an expected source, so a build installs what was examined rather than whatever the ecosystem serves that day.","domains":["supply-chain"],"evidence":{"assertion":"for every resolved dependency d: d is pinned to a reviewed version, d carries an integrity digest, and d resolves from an expected registry","collector":"git","frequency":"on-push","source":"the committed lockfiles and manifests in the tree, read for pinned versions, integrity digests, and the registries they resolve from"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"preventive","id":"code.deps.provenance-reviewed","mappings":{"iso-27001":["A.5.21"],"nist-800-53":["SR-3","SR-4","SR-11"],"soc2":["CC8.1"]},"providers":["code","pipeline"],"related":["code.deps.lockfile-committed","pipeline.actions.pinned-references","pipeline.release.artefact-integrity"],"severity":"high","status":"planned","title":"Dependencies entering a build are the reviewed ones, from a known source","updated":"2026-11-22","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/deps-provenance-reviewed/"},{"description":"Terraform providers resolve credentials from named profiles or the ambient credential chain; no provider block, variable default, or tracked tfvars file holds a key, secret, or token.","domains":["secrets"],"evidence":{"assertion":"count(provider attributes in {access_key, secret_key, token, client_secret, credentials}) == 0 and every tracked *.tfvars matches *.example.tfvars","collector":"tflint","frequency":"on-push","source":"tflint --config .linter/.tflint.hcl over every Terraform root; git ls-files '*.tfvars'"},"frameworks":["soc2","nist-800-53"],"function":"preventive","id":"code.iac.no-static-cloud-credentials","mappings":{"nist-800-53":["IA-5(7)"],"soc2":["CC6.1"]},"providers":["code"],"related":["code.repo.no-committed-secrets","pipeline.deploy.no-long-lived-cloud-keys"],"severity":"high","status":"attested","title":"Infrastructure code carries no static cloud credentials","updated":"2026-10-03","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/iac-no-static-cloud-credentials/"},{"description":"The default branch of every repository rejects direct pushes, requires an approved pull request, and requires the CI status checks to pass.","domains":["change-management"],"evidence":{"assertion":"exists protection p for the default branch: p.enable_push == false and p.required_approvals \u003e= 1 and p.enable_status_check == true and p.block_on_rejected_reviews == true","collector":"gitea-api","frequency":"daily","source":"GET /api/v1/repos/{owner}/{repo}/branch_protections"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"preventive","id":"code.repo.default-branch-protected","mappings":{"iso-27001":["A.8.32"],"nist-800-53":["CM-3"],"soc2":["CC8.1"]},"providers":["code"],"related":[],"severity":"high","status":"attested","title":"Default branches accept changes only through reviewed pull requests","updated":"2026-10-03","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/repo-default-branch-protected/"},{"description":"No tracked file and no commit in the full history of any repository contains a credential the secret scanner recognises.","domains":["secrets"],"evidence":{"assertion":"count(findings) == 0, after the repository's committed allowlist is applied","collector":"gitleaks","frequency":"on-push","source":"gitleaks git --redact --config .linter/.gitleaks.toml \u003crepository\u003e"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"detective","id":"code.repo.no-committed-secrets","mappings":{"iso-27001":["A.8.28"],"nist-800-53":["SA-11","IA-5"],"soc2":["CC6.1"]},"providers":["code"],"related":["code.iac.no-static-cloud-credentials","pipeline.deploy.no-long-lived-cloud-keys"],"severity":"critical","status":"attested","title":"Repositories contain no committed secrets","updated":"2026-10-03","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/repo-no-committed-secrets/"},{"description":"Secrets are delivered to code at run time from a system built to hold them, never embedded in source, configuration, or images, so the place a credential lives is one designed to protect and rotate it.","domains":["secrets"],"evidence":{"assertion":"no credential is embedded in tracked source, configuration, or build output, and the secrets code uses are delivered from a managed secret capability at run time","collector":"gitleaks","frequency":"on-push","source":"the repository tree and build inputs, read for embedded credentials, and the mechanism by which code receives the secrets it needs"},"frameworks":["soc2","iso-27001","nist-800-53"],"function":"preventive","id":"code.secrets.managed-delivery","mappings":{"iso-27001":["A.8.24"],"nist-800-53":["IA-5"],"soc2":["CC6.1"]},"providers":["code","pipeline"],"related":["code.repo.no-committed-secrets","code.iac.no-static-cloud-credentials","pipeline.access.scoped-to-need"],"severity":"high","status":"planned","title":"Credentials reach the code that needs them through a managed capability","updated":"2026-11-22","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/secrets-managed-delivery/"}],"count":7,"title":"Source code","url":"https://controls.sandbox002.dev.prosyon.ca/controls/code/"}