Skip to content

Measure pod replacement and verify ingress isolation in the lab - #11

Merged
AngelP17 merged 2 commits into
mainfrom
assurance/recovery-measurements-network-policy
Dec 4, 2026
Merged

AngelP17 merged 2 commits into
mainfrom
assurance/recovery-measurements-network-policy

Conversation

@AngelP17

@AngelP17 AngelP17 commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Proofs

  • Record five single-replica pod replacement measurements using a monotonic clock and distinct Ready pod UIDs. ServiceDown restoration timing is separate.
  • The disposable Terraform/Argo CD proof tests the same isolated client and Service IP for blocked → allowed by a narrowly scoped temporary control → blocked after removing the control. The existing default namespace returns a healthy response before and after. Connection refusal and timeout both count as a blocked transport, but only in this matched sequence.
  • Report the actual checked-out commit, not the PR event merge commit.

Verified on 8ccbd30

  • Recovery proof: 5 distinct Ready replacements, mean 9.545s, max 9.559s, with ServiceDown restoration measured separately at 9s.
  • Terraform/GitOps proof: confirmed exact source/checkout match, matched deny→allow→deny from the same client, three denies after revocation, 2s label drift reconciliation, and verified cleanup.
  • DevSecOps: passed, including 48/48 Conftest checks and 6/6 manifest validations with no skips.

These are lab observations, not production MTTR, full NetworkPolicy coverage, or uninterrupted availability.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T15:16:04.335994Z 8ccbd30 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 509347912d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/proof.sh
'{verdict:$verdict, stage:$phase, started_at:$start, finished_at:$end, runner:$runner, recovery_seconds:$recovery}' >"$out/proof.json"
--argjson recovery "$recovery_seconds" --argjson trials "$replacement_trials" \
--arg commit "$commit" \
'{verdict:$verdict, stage:$phase, started_at:$start, finished_at:$end, runner:$runner, commit:$commit, alert_restoration_seconds:$recovery, recovery_seconds:$recovery, pod_replacement:{measurement:"delete request to distinct Ready pod", trials:$trials, mean_seconds:(if ($trials|length)>0 then ($trials|map(.seconds)|add/length) else null end), max_seconds:(if ($trials|length)>0 then ($trials|map(.seconds)|max) else null end)}}' >"$out/proof.json"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Measure alert restoration through the resolution check

When Prometheus has not yet scraped the recovered deployment or reevaluated ServiceDown, the new alert_restoration_seconds field understates the alert's restoration time: it copies recovery_seconds, which is assigned immediately after rollout readiness, before the subsequent wait_query confirms alert resolution. It can even contain a successful-looking duration when that resolution check times out. Keep the existing rollout measurement separate and populate the alert-restoration measurement only after the resolution query succeeds.

Useful? React with 👍 / 👎.

@AngelP17
AngelP17 merged commit b589087 into main Dec 4, 2026
8 checks passed
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.

1 participant