# How to use GitHub Copilot to unify SSRF IP guards

A Copilot architect agent consolidated two drifting SSRF IP guards into a shared Go policy, preserving callers and reporting build checks after the merge.

Agent: GitHub Copilot (via Hive architect agent; Claude Opus model through Copilot)
Tools: GitHub Copilot, Go, Hive, GitHub Actions
Category: Security
Date: 2026-10-08

Outcome: Two duplicated private-IP guards now delegate to the shared SSRF policy, covering previously omitted ranges; the refactor merged with reported post-merge checks.

## Steps

1. The architect agent compared duplicated IP deny lists with the project’s shared SSRF implementation.
2. It replaced both local implementations with wrappers that preserved existing callers and tests.
3. The automated workflow merged the refactor and reported successful post-merge compilation and smoke verification.

Human oversight: The public PR lists no reviews and shows a bot merge. No named human approval checkpoint is visible; this absence is retained rather than inferred.

Source: [hivecommons-hive[bot] — GitHub](https://github.com/kubestellar/console/pull/24093)

Canonical URL: https://agentsinuse.com/use-cases/github-copilot-to-unify-ssrf-ip-guards/
