Skip to content

infra(security): restrict SSH to known IPs #126

@danielnaab

Description

@danielnaab

Context

From security audit (#114). Port 22 is currently open to 0.0.0.0/0 in the EC2 security group (infrastructure/pulumi/index.ts:26-30).

While password auth is disabled and only key-based auth is allowed, restricting SSH source IPs reduces attack surface against brute-force attempts.

Action

  • Determine the set of IPs/CIDRs that need SSH access
  • Update the security group ingress rule in Pulumi
  • Consider adding fail2ban as an additional layer

Severity

Medium — mitigated by key-only auth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions