Shared responsibility overview for PostgreSQL Flex
Last updated on
The shared responsibility model for STACKIT PostgreSQL Flex clearly delineates operational and security boundaries between STACKIT and you as the customer. The STACKIT PostgreSQL Flex service certificate defines the binding service scope, the SLA, and the backup terms. For a general overview of cloud governance and shared responsibilities across STACKIT, see the STACKIT shared responsibility model.
Our responsibilities
Section titled “Our responsibilities”STACKIT provisions and operates the managed PostgreSQL Flex service, the underlying compute and storage infrastructure, and the platform APIs that create and manage instances:
| Security category / specific task | Description / Scope |
|---|---|
| Managed infrastructure and HA | Provisioning, operating, and maintaining managed PostgreSQL instances as either a single-node deployment or a 3-replica high-availability setup. |
| Automated minor updates and OS patches | Rolling out PostgreSQL minor version updates and regular OS patches within announced maintenance windows (with at least two weeks’ notice), and applying critical security patches promptly when required. |
| Availability | Keeping the PostgreSQL Flex endpoints reachable and operational according to the availability targets defined in the SLA of the service certificate. |
| Flavors and performance classes | Defining the available compute flavors (vCPU, RAM, and derived PostgreSQL memory and connection parameters), storage performance classes (IOPS and throughput limits), and maximum disk sizes. |
| System processes and connections | Operating internal background processes for backups, monitoring, and replication, which reserve up to 15 connections of your flavor’s max_connections limit. |
| Backup and PITR infrastructure | Providing the underlying daily automated backup mechanism and continuous Write-Ahead Log (WAL) archiving required for Point-in-Time Recovery (PITR). |
| Public endpoints and ACL enforcement | Operating the public database endpoints of an instance and enforcing your Access Control List (ACL) on incoming network traffic before connections reach PostgreSQL. |
| Instance and user provisioning | Operating the STACKIT Portal, PostgreSQL Flex API, CLI, and Terraform Provider to create, modify, clone, and delete instances, databases, and database users. |
| Observability endpoints | Exposing instance metrics in the STACKIT Portal and providing Prometheus-compatible metrics endpoints (pg_exporter / Metrics API v2). |
| Audit log events | Forwarding platform API requests handled by STACKIT PostgreSQL Flex to STACKIT Audit Log. |
| Capacity limits | Defining default project quotas for active instances, compute flavors, and storage capacities. |
Your responsibilities at a glance
Section titled “Your responsibilities at a glance”The following table summarizes the primary customer responsibilities when operating a STACKIT PostgreSQL Flex instance:
| Security category / specific task | Documentation & Best practices |
|---|---|
| Authentication and user credentials | Create and manage users for PostgreSQL Flex, Create your first instance of PostgreSQL Flex and connect to it |
| Network access to the instance | Create and manage instances for PostgreSQL Flex, Use PostgreSQL and MongoDB Flex with SKE |
| Encrypted connections and BYOK | Connect to PostgreSQL Flex, Connect to PostgreSQL Flex with SSL |
| Databases, roles, and extensions | Create and manage databases for PostgreSQL Flex, Enable and manage extensions in PostgreSQL Flex |
| Instance sizing, scaling, and upgrades | Plan your PostgreSQL Flex instance, Flavors and performance classes of PostgreSQL Flex |
| Backup schedules, restores, and deletion protection | Backup and clone PostgreSQL Flex, STACKIT PostgreSQL Flex service certificate |
| Monitoring and audit log review | Monitor PostgreSQL Flex, Understand STACKIT Audit Log |
| Support collaboration | PostgreSQL Flex FAQ, PostgreSQL Flex Release Notes |
Your responsibilities in detail
Section titled “Your responsibilities in detail”To make security and operational tasks clear across your application, data, and platform teams, the following sections break down the high-level customer responsibilities into fine-grained, concrete domains and controls.
Authentication and user credentials
Section titled “Authentication and user credentials”PostgreSQL Flex authenticates clients using native PostgreSQL database users and passwords rather than external identity providers:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Database user provisioning | Create dedicated database users for applications and administrators through the STACKIT Portal, API, CLI, or Terraform, instead of sharing a single account across workloads. | Create and manage users for PostgreSQL Flex |
| Credential storage and rotation | Store generated passwords securely in a secret manager immediately upon creation—passwords are displayed only once—and rotate credentials regularly. | Create and manage users for PostgreSQL Flex |
Platform user roles (login, createdb, createrole) |
Assign platform-managed role attributes according to the principle of least privilege so automated application users don’t hold unnecessary administrative capabilities. | Create and manage users for PostgreSQL Flex |
Network access to the instance
Section titled “Network access to the instance”Limiting network reachability via Access Control Lists (ACLs) is your decision and responsibility:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| IP ranges in the ACL | Restrict access to trusted IPv4 and IPv6 CIDR ranges, such as your application servers, office networks, or bastion hosts. Avoid opening the instance to 0.0.0.0/0 in production environments. |
Create and manage instances for PostgreSQL Flex, Architecture of PostgreSQL Flex |
| STACKIT service and SKE egress IPs | Explicitly add the public egress IP addresses of your STACKIT Kubernetes Engine (SKE) clusters or the STACKIT Network ranges (193.148.160.0/19 and 45.129.40.0/21) to the ACL if other STACKIT services need to connect. |
Use PostgreSQL and MongoDB Flex with SKE |
| Proxy, NAT, and VPN addresses | Maintain an up-to-date list of all NAT gateways, proxies, and VPN exit nodes used by your teams and pipelines so legitimate traffic isn’t blocked. | PostgreSQL Flex FAQ |
Encryption in transit and at rest
Section titled “Encryption in transit and at rest”You control how clients validate TLS connections and whether customer-managed keys are used for storage encryption:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| TLS/SSL enforcement in clients | Configure all database drivers and clients to enforce encrypted connections (sslmode=require or sslmode=verify-full) and validate the server certificate and hostname. |
Connect to PostgreSQL Flex, Connect to PostgreSQL Flex with SSL |
| Customer-Managed Keys (BYOK) | Configure and manage your own Key Encryption Key (KEK) with the STACKIT Key Management Service (KMS) and maintain the required service account permissions if your compliance policies require customer-managed storage encryption. | Create and manage instances for PostgreSQL Flex |
Databases, permissions, and extensions
Section titled “Databases, permissions, and extensions”STACKIT manages the PostgreSQL engine; everything inside your databases—schemas, data models, SQL-level permissions, and enabled extensions—is yours to govern:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Database creation and ownership | Create your application databases, assign a dedicated owner to each database, and reassign or drop owned objects before deleting a database user. | Create and manage databases for PostgreSQL Flex |
| SQL-level roles and Row-Level Security | Manage schema privileges, table permissions, and Row-Level Security (RLS) policies inside PostgreSQL, accounting for the fact that STACKIT does not grant unrestricted PostgreSQL superuser privileges. | Core features and use cases of PostgreSQL Flex |
| Extension activation and maintenance | Enable and manage required PostgreSQL extensions (such as pgvector, postgis, timescaledb, or pg_partman) from the supported allowlist (extwlist.extensions). |
Enable and manage extensions in PostgreSQL Flex, Supported extensions |
Sizing, scaling, and life cycle management
Section titled “Sizing, scaling, and life cycle management”Selecting the right instance topology, managing connection limits, and planning major version upgrades are part of your operational duties:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Topology and performance class selection | Choose the right instance type (single-node vs. 3-replica HA) and storage performance class upfront. Neither the instance type nor the performance class can be changed in place after creation without cloning. | Plan your PostgreSQL Flex instance, Flavors and performance classes of PostgreSQL Flex |
| Compute and storage scaling | Monitor resource consumption and scale compute plans (which incurs a brief restart) or increase disk size (which can’t be shrunk later) as your workload grows. | Create and manage instances for PostgreSQL Flex |
| Connection pooling | Account for the up to 15 system-reserved connections within your plan’s max_connections limit and implement client-side or external connection pooling (such as PgBouncer) for high-concurrency workloads. |
Flavors and performance classes of PostgreSQL Flex |
| Major version and API upgrades | Initiate major PostgreSQL version upgrades before the respective version reaches End of Support, and keep your automation aligned with current PostgreSQL Flex API and Metrics API versions. | Maintenance and update policy, PostgreSQL Flex Release Notes |
Backup configuration, restores, and deletion protection
Section titled “Backup configuration, restores, and deletion protection”While STACKIT operates the backup infrastructure, you control retention policies, restoration workflows, and safeguards against accidental deletion:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Backup schedule and retention | Configure the daily backup schedule (in UTC) and set the retention period (between 32 and 90 days) according to your recovery objectives. | Backup and clone PostgreSQL Flex |
| Restore via cloning and endpoint cutover | Trigger restores by cloning an existing backup or Point-in-Time Recovery (PITR) timestamp into a new instance—in-place restores aren’t supported—and update your application connection strings to point to the cloned instance. | Backup and clone PostgreSQL Flex |
| Deletion protection | Enable deletion protection (Disable deletion) on critical instances. Without deletion protection, deleting an instance immediately and permanently removes the instance and its data. | Create and manage instances for PostgreSQL Flex, PostgreSQL Flex Release Notes |
| Logical exports and compliance archives | Perform logical dumps (pg_dump) to external storage (such as STACKIT Object Storage) if you require long-term archives beyond the 90-day backup retention window or cross-environment exports. |
STACKIT PostgreSQL Flex service certificate |
Monitoring, observability, and project access
Section titled “Monitoring, observability, and project access”STACKIT emits metrics and platform audit events; observing instance health and governing project permissions is your responsibility:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Instance monitoring and alerting | Monitor CPU, memory, disk usage, IOPS, active connections, and replication lag via the STACKIT Portal or Prometheus Metrics API v2, and configure alerts before storage or connection limits are exhausted. | Monitor PostgreSQL Flex, Observability metrics in PostgreSQL Flex |
| Audit log review and routing | Review platform audit events for instance and user changes in STACKIT Audit Log, and route events with STACKIT Telemetry Router if you need longer retention or centralized SIEM integration. | Understand STACKIT Audit Log, Services with audit logs |
| Project role assignments | Keep STACKIT project role assignments up to date and revoke permissions promptly when team responsibilities change, as project members can create, clone, or delete instances. | View project roles, Manage service accounts |
Support collaboration
Section titled “Support collaboration”STACKIT Support assists with platform-level issues and quota adjustments beyond default project limits:
| Focus area / Task | Concrete customer responsibility | Documentation and Best practices |
|---|---|---|
| Support tickets | Check the PostgreSQL Flex FAQ and troubleshooting guides first, then open a support ticket in the STACKIT Portal with your instance ID and timestamps if you encounter platform issues. | PostgreSQL Flex FAQ, STACKIT PostgreSQL Flex |
| Quota and capacity requests | Request quota increases through STACKIT Support when you need more instances, larger flavors, or higher storage capacities than your default project limits allow. | Plan your PostgreSQL Flex instance, STACKIT PostgreSQL Flex |