Security CI gates
A gate is a release decision
Continuous integration (CI) regularly combines changes and runs checks. A security gate is a documented rule that decides whether an artifact can proceed. In a simple bookstore pipeline, required authorization tests must pass, the findings review must be complete, and an unresolved blocking issue prevents release. Continuous delivery can prepare a release without automatically publishing it.
Explicit policy and missing evidence
Use this teaching rule: if any required check fails or a blocking issue is confirmed, return BLOCK; otherwise, if a required check is missing or review is incomplete, return REVIEW; otherwise return PASS. PASS permits consideration for release, not deployment approval. This model has no exceptions and is not a universal industry rule. A skipped or timed-out check is missing evidence, not a passed check.
Worked release decisions
Build A: authorization tests PASS, review complete, no blocking issue → PASS. Build B: authorization tests FAIL, review complete → BLOCK. Build C: tests missing, no confirmed blocker → REVIEW. If Build D has both missing tests and a confirmed blocker, BLOCK takes precedence. Remediate the cause, then rerun the relevant tests on the new artifact; do not carry the old pass to a changed build.
Secure the workflow itself
Restrict CI permissions and protect release approval and credentials. Do not pass real secrets to untrusted build steps or print them in reports. Store evidence with the artifact identifier and policy version. If an organization allows exceptions, require authorized risk ownership, justification, a compensating control, expiry and follow-up; this exercise does not implement exceptions. Monitor released software and use rollback or a tested fix when justified.
Practice: review a candidate
A candidate passes functional tests, but its ownership regression check was not run and dependency review is incomplete. Decide the gate result and identify the work needed before reconsideration. Then compare a new candidate with a confirmed blocking ownership defect. Use the explicit rule, not a guessed severity threshold.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Security CI gates — knowledge check
Apply secure development concepts to fictional bookstore records.
Required authorization checks fail. Review is complete. What is the teaching gate result?
A required test was not run and no blocking issue is confirmed. What result?
All checks pass and review is complete with no blocker. What does PASS mean?
A build has missing evidence and a confirmed blocking issue. What takes precedence?
After correcting a confirmed issue, what should be done?