grafclouds.com / documents / insights / training / devops-challenges / db-port-open-for-contractor

A Contractor Needs DB Access for a Week. Open the Port?

Beginner ~9 min read
SecurityDatabases

Scenario

An external contractor starts Monday morning on a one-week, read-only analysis job against your production PostgreSQL database. The database lives on a private subnet inside the VPC, unreachable from the internet by design. Your company already runs a VPN and a bastion host, but the contractor has an account on neither — and the clock on the engagement is already running.

The Quick Fix on the Table

A teammate proposes the fastest possible path: punch a firewall rule that opens port 5432 to the internet, hand the contractor a strong database password, and delete the rule on Friday when the engagement ends. Five minutes of work, no onboarding paperwork, and the contractor is productive before lunch.

Interview · Round 1

The quick fix is on the table and the room is waiting for your call. Would you sign off on it? Take a position and justify it — out loud or on paper — before revealing the analysis.