Portfolio lab for markjanowski.dev. Security only · Availability / Confidentiality / AIUC-1 coming soon.

← All of Section 4

CC7.1

Infrastructure Development and Change Management

Infrastructure changes are authorized, tested, and approved.

PRE-13
Terraform change management
preventive
Test of operating effectivenessPass

Selected production Terraform merges and verified PR approval, successful plan artifact in CI, OIDC role assumption (no static keys), and apply restricted to protected environments.

Sample: 20 of 63 infrastructure PRs

EV-TF-PLAN-01Terraform plan artifact (excerpt)GitHub Actions

Plan for adding a GuardDuty publishing destination; no destroys; apply gated on environment approval.

Collected
2028-03-18T16:05:22Z
Kind
terraform-plan
Hash
sha256:55aa66bb77cc88dd99ee00ff11223344556677889900aabbccddeeff00112233
Terraform used the selected providers to generate the following execution plan.

Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

# aws_guardduty_publishing_destination.security_logging will be created
+ resource "aws_guardduty_publishing_destination" "security_logging" {
    + destination_arn  = "arn:aws:s3:::praeparo-gd-findings"
    + destination_type = "S3"
    + detector_id      = "abc123"
    + kms_key_arn      = "arn:aws:kms:us-east-1:999988887777:key/gd"
  }

Plan: 1 to add, 0 to change, 0 to destroy.

Workflow: terraform-prod.yml
OIDC role: arn:aws:iam::999988887777:role/gha-terraform-plan
Static keys in workflow: none
EV-GH-PR-01Infrastructure pull request approvalGitHub

PR

Collected
2028-03-18T16:28:01Z
Kind
github-pr
Hash
sha256:abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789
repository: praeparo/infra
pull_request: 842
title: "feat(gd): publish GuardDuty findings to security-logging"
author: j.ortiz
base: main
required_checks:
  - terraform-plan (pass)
  - tflint (pass)
  - checkov (pass)
reviews:
  - reviewer: a.nguyen
    state: APPROVED
    submitted_at: 2028-03-18T16:21:10Z
merged_by: a.nguyen
merged_at: 2028-03-18T16:27:58Z
environment_approval: production (approved by platform-oncall)

Conclusion: Sampled changes followed PR + plan + approval. One change had a late approval after plan; still prior to apply. No static AWS keys in workflows.

CC7.2

Acquired Software Development and Change Management

Acquired software and models are evaluated before use and update.

PRE-14
Acquired software and model update review
preventive

Control listed; full evidence package forthcoming.

CC7.3

Internally Developed Software Development and Change Management

Internally developed software changes follow review and testing.

PRE-15
Agent code and Rego change control
preventive
Test of operating effectivenessPass

Sampled merges to agent and policy repositories. Confirmed required reviewers, CI policy unit tests, and branch protection preventing direct pushes to main.

Sample: 18 policy/agent PRs

EV-GH-PR-REGO-01Rego policy pull requestGitHub

Agent-authored PR adding S3 CMK Rego with human approval and passing policy tests.

Collected
2028-05-03T10:15:09Z
Kind
github-pr
Hash
sha256:0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20
repository: praeparo/customer-acme-policies
pull_request: 128
title: "policy: require S3 bucket CMK encryption"
author: agent:praeparo-grc
opened_via: agent-orchestrator
files:
  - policies/s3_cmk.rego
  - policies/s3_cmk_test.rego
checks:
  - opa-test (pass)
  - rego-fmt (pass)
reviews:
  - reviewer: m.chen
    state: APPROVED
    submitted_at: 2028-05-03T10:12:44Z
merged_by: m.chen
merged_at: 2028-05-03T10:14:50Z
EV-REGO-TEST-01OPA unit test results for S3 CMK policyGitHub Actions / OPA

opa test output showing pass and fail fixtures for bucket encryption rules.

Collected
2028-05-03T10:08:33Z
Kind
policy
Hash
sha256:deadbeefcafebabe0123456789abcdef0123456789abcdef0123456789abcdef
$ opa test policies/ -v
policies/s3_cmk_test.rego:
  data.policies.s3_cmk_test.test_deny_unencrypted PASS (0.2ms)
  data.policies.s3_cmk_test.test_allow_cmk PASS (0.1ms)
  data.policies.s3_cmk_test.test_deny_aes256_only PASS (0.1ms)
--------------------------------------------------------------------------------
PASS: 3/3

Conclusion: Branch protection and required checks were enforced. All sampled merges had passing Rego tests and at least one approving review.

PRE-17
Human approval before agent merges
preventive
Test of operating effectivenessDeviation

Inspected agent-opened PRs for required human approval rules and sampled merges to confirm the merging actor was a human reviewer, not the agent identity.

Sample: 30 agent-authored PRs

EV-GH-PR-APPROVAL-01Branch protection requiring human approval for agent PRsGitHub

Repository ruleset preventing the agent identity from merging and requiring human review.

Collected
2028-02-01T11:00:00Z
Kind
github-pr
Hash
sha256:11223344556677889900aabbccddeeff00112233445566778899aabbccddeeff
repository: praeparo/customer-acme-policies
ruleset: agent-human-gate
enforcement: active
rules:
  - required_approving_review_count: 1
  - dismiss_stale_reviews: true
  - require_code_owner_reviews: true
  - block_merges_by:
      - agent:praeparo-grc
  - required_status_checks:
      - opa-test
last_verified: 2028-06-28
EV-MCP-LOG-01Agent session telemetry excerptSecurity Logging Account / CloudWatch

Logged prompt, tool calls, evidence pulls, and human approval for a Rego proposal session.

Collected
2028-05-03T09:41:55Z
Kind
mcp-log
Hash
sha256:9c8b7a695847362514a3b2c1d0e9f8a7b6c5d4e3f2a190817263544556677889
session_id: agt-20280503-0941
engagement_id: eng-acme-q2-2028
events:
  - ts: 2028-05-03T09:41:12Z
    type: prompt
    actor: agent:praeparo-grc
    preview: "Draft Rego to require S3 bucket CMK encryption for in-scope buckets"
  - ts: 2028-05-03T09:41:18Z
    type: tool_call
    tool: mcp.aws.config.get_compliance
    resource: s3-cmk-required
    outcome: ok
  - ts: 2028-05-03T09:41:33Z
    type: evidence_pull
    object: s3://praeparo-evidence/eng-acme-q2-2028/20280503/config-s3.json
    sha256: 9c8b7a6958473625...
  - ts: 2028-05-03T09:44:02Z
    type: pr_opened
    repo: praeparo/customer-acme-policies
    pr: 128
  - ts: 2028-05-03T10:12:44Z
    type: human_approval
    actor: user:m.chen
    decision: approve
    pr: 128

Conclusion: Required human approvals were present prior to merge for 29 of 30 PRs. One PR was merged by a human without the secondary reviewer due to break-glass; documented as a deviation with compensating ticket.

Deviation: 1 of 30 agent PRs merged with single human approval under documented break-glass; ticket PRE-17-DEV-01 closed within SLA.

PRE-19
Rego policy testing before proposal
detective

Control listed; full evidence package forthcoming.