Skip to content

feat(grafana-github): open an issue for world-open security group rules - #225

Merged
lens0021 merged 1 commit into
mainfrom
claude/project-thread-jowmux
Oct 19, 2026
Merged

lens0021 merged 1 commit into
mainfrom
claude/project-thread-jowmux

Conversation

@lens0021

Copy link
Copy Markdown
Member

Requested by lens0021 · project thread

Before: when someone opened a security group inbound rule to 0.0.0.0/0 or ::/0, by Terraform or the console, nothing told anyone (femiwiki/femiwiki#514).

After: grafana-github opens an issue in femiwiki/infra titled World-open inbound rule (10/15 20:00 KST), with the alert label and @femiwiki/pager. The body names only the region and the CloudTrail event id, with a console link, since the repository is public. An operator closes it once the rule is checked.

How: a new aws.ec2 branch in the handler, fed by EventBridge rules in femiwiki/infra (companion PR, aws/sg-alerts.tf) for successful AuthorizeSecurityGroupIngress and ModifySecurityGroupRules calls. The function searches the whole requestParameters for either CIDR, because the two calls shape their requests differently, and skips an event id that already has an open issue, since EventBridge delivers at least once. A ModifySecurityGroupRules call that names 0.0.0.0/0 on an egress rule also opens an issue; that call is rare here.

Refs femiwiki/femiwiki#514


Generated by Claude Code

An EventBridge rule in femiwiki/infra sends each successful
AuthorizeSecurityGroupIngress and ModifySecurityGroupRules call, from
Seoul and Tokyo. A call that names 0.0.0.0/0 or ::/0 anywhere in its
request opens an issue naming only the region and the CloudTrail event
id, since the repository is public. Refs femiwiki/femiwiki#514.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJZJo9Makhv53tkLdfmGom
@lens0021 lens0021 self-assigned this Oct 19, 2026
@lens0021
lens0021 merged commit 6de64c7 into main Oct 19, 2026
10 checks passed
@lens0021
lens0021 deleted the claude/project-thread-jowmux branch October 19, 2026 23:47
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.

2 participants