← Back to Guides

    How to Secure Neon

    Step-by-step guide to securing your Neon serverless Postgres database.

    Neon Security Context

    Neon provides serverless Postgres with branching and connection pooling. It supports full PostgreSQL features including Row Level Security. Secure your branches and connection strings appropriately.

    Security Checklist

    1

    Enable Row Level Security

    Critical

    Use PostgreSQL RLS policies to control data access at the row level.

    2

    Secure connection strings

    Critical

    Store connection strings in environment variables, not in code.

    3

    Configure branch permissions

    Critical

    Set appropriate access for development branches.

    4

    Enable connection pooling security

    Critical

    Configure the built-in connection pooler securely.

    5

    Review serverless architecture

    Understand security implications of serverless Postgres.

    6

    Configure IP restrictions

    Restrict database access to trusted IPs.

    7

    Enable SSL connections

    Verify SSL is required for all connections.

    8

    Configure team permissions

    Set appropriate access levels for team members.

    9

    Review compute settings

    Configure appropriate compute resources.

    10

    Enable audit logging

    Track database operations.

    11

    Review branching strategy

    Use branches safely for development.

    12

    Configure backups

    Verify point-in-time recovery is configured.

    13

    Review autoscaling

    Configure appropriate scaling limits.

    14

    Configure monitoring

    Set up alerts for suspicious activity.

    15

    Review extensions

    Audit installed PostgreSQL extensions.

    16

    Run security scan

    Use VibeEval to scan your application.

    Related Resources

    Automate Your Security Checks

    Let VibeEval scan your application for vulnerabilities.

    Scan Your App