13 KiB
13 KiB
Linode (Akamai Cloud) Managed PostgreSQL: networking, security, backups
Research for issue #49 (part of #44). Researched 2026-11-23 against Akamai TechDocs, the Akamai pricing page, and the linode/terraform-provider-linode repo (latest release v4.10.0, published 2026-11-19).
Which generation this covers
There are two Linode/Akamai Managed Database generations. The API reports which one you have in the platform field: rdbms-legacy or rdbms-default (API: create PostgreSQL DB).
- Legacy (
rdbms-legacy): the original Linode DBaaS. Akamai is migrating these databases to the new system. Some legacy endpoints, such as the database backups endpoints, aren't supported in the new product and will be deprecated (changelog 2024-11-14). - Current (
rdbms-default): Akamai "reintroduced" the service on 2024-11-14, built with Aiven, in 20 core compute regions (changelog 2024-11-14, cluster overview).
Everything below applies to the current (Aiven-based) generation only. Older guides and blog posts that describe the legacy product (for example, ones listing PG 13 or a backups API) don't apply to it.
Bottom line for hAPI
- Private access is possible, through a VPC. A database cluster can be attached to a VPC in the same region (
private_network.vpc_id/subnet_id). Its hostname then resolves to a private IPv4 address in the VPC subnet, and public access is off unlesspublic_access = true(manage clusters, API: create). Our self-managed Kubernetes nodes are plain Linode Compute instances, and "Linodes can join a VPC by specifying the VPC as a network interface" (VPC). So the nodes need a VPC interface in the same VPC and region as the database. - Caveat: VPC for Managed Databases launched as beta (2025-09-30), and I found no GA announcement. The API changelog says use of
private_network"is in beta" and "may cause disruptions in certain production environments" (API changelog 2025-09-30, cloud changelog 2025-09-30). The current manage-clusters page doesn't label it beta, but no changelog entry declares it GA. Treat it as beta until you see a GA entry. - Without a VPC: public endpoint plus an IP allowlist. Each cluster has an ACL, and "by default, all connections both public and private are blocked unless they appear on this list" (manage clusters). The ACL still applies when a VPC is attached, so add the VPC subnet CIDR to
allow_list(inference from that quote, not stated outright). - The LKE auto-allowlist doesn't help us. Akamai rewrites each database's ACL every 10 minutes with the IPs of all LKE nodes in the account (manage clusters). hAPI runs self-managed Kubernetes on Compute, not LKE, so node IPs have to be managed ourselves (for example with Terraform
linode_database_access_controls). Also note that if LKE is ever used in the same account, every LKE node is allowlisted on every database automatically. Opting out requires a support ticket. - TLS is mandatory.
ssl_connectionis "currently required to betrue". A CA certificate is downloadable from Cloud Manager or available as the Terraformca_certattribute, so clients can usesslmode=verify-full(API: create, PostgreSQL doc, TF resource). - Backups: daily backups, kept 14 days, with point-in-time restore inside that window. Restores always create a new (forked) cluster (overview, manage clusters).
- Cheapest option: Shared 1 GB at $16/mo for one node or $37/mo for three nodes (HA). That plan has 9 GB of usable storage (pricing).
Versions
- PostgreSQL 15, 16, 17, 18 are supported (engines and plans). Engine IDs look like
postgresql/16; the live list comes from the List engines API (API: create). - Major-version upgrades run in place, start immediately when you click Upgrade, and can't be reverted. A failed compatibility check rolls back. Discontinued versions are upgraded automatically during the maintenance window (manage clusters). I found no published version EOL schedule.
Plans and HA
- Plan families: Shared CPU and Dedicated CPU; premium Linode types are also accepted (engines and plans, API changelog 2025-09-30). Ranges: Dedicated 1-3 nodes, 4-512 GB RAM, 80-7200 GB storage. Shared 1 or 3 nodes, 1-192 GB RAM, 25-7200 GB storage (overview).
cluster_size:1,2, or3.3means one primary and two standbys.2is dedicated-only (API: create). Three-node clusters give "data redundancy and automatic failover" (overview).- HA tuning through
engine_config:pglookout.max_failover_replication_time_lag(TF default 60 s) andsynchronous_replication(quorumoroff, three-node only) (API: create, TF resource). - Single-node clusters have downtime during maintenance and resizes (manage clusters).
Networking details
- The VPC must be in the same region as the cluster. You can assign, change, or unassign a VPC after creation, but "any change of the networking settings causes a temporary downtime" (manage clusters).
- With
public_access = true, a second hostname is published. Swap theprivate-prefix forpublic-to get it (manage clusters). The APIendpointsarray (added 2026-03-31) lists each address with its role andpublic_access(API changelog 2026-03). - The VPC subnet doesn't automatically block outbound connections outside the subnet. Akamai recommends Cloud Firewall rules on the VPC Linodes, including blocking inbound traffic from the cluster's VPC range (manage clusters, search summary of API: update).
- VPC traffic "is isolated from other cloud tenants, [but] it is not encrypted", and VPC interfaces have no IPv6 (VPC). TLS (mandatory) covers this.
- The docs say "the connection to a database cluster over a private IP address is not supported" and recommend public IPv6 instead (manage clusters). This sits in the ACL section, so I read it as referring to legacy Linode private IPv4 (
192.168.128.0/17, shared by all Linodes in a region, VPC) rather than VPC addresses. The page doesn't define the term, though. Verify before relying on either reading. - Cost: inbound transfer is free. Public IPv4 from Linodes costs egress; IPv6 (AAAA) from same-region Linodes avoids transfer charges (overview, manage clusters). VPCs themselves cost nothing extra. Egress overage is $0.005/GB (pricing).
- Known issue: some PostgreSQL clients that prefer IPv6 can hang for about 3 minutes when only an IPv4 ACL entry exists (manage clusters).
- VPCs are single-region, can't be peered, and are no longer supported in distributed regions as of 2026-04-22 (VPC).
Users, roles, extensions, pooling
- The admin user is
akmadmin. Superuser isn't available. Akamai says to useakmadmin/defaultdbfor administration only and to create separate users and databases for applications (PostgreSQL doc). There's no API or Terraform resource for database users or roles, so per-app roles have to be created in SQL (for example, a migration or bootstrap job running asakmadmin). - The root password can be reset (a new random one is generated), but the root user can't be removed (manage clusters, overview). Terraform exposes
root_usernameandroot_passwordas attributes, so the password ends up in Terraform state. engine_config_pg_password_encryptiondefaults tomd5according to the Terraform docs. Setscram-sha-256explicitly (TF resource).- Extensions: Akamai links to Aiven's extension list instead of publishing its own (PostgreSQL doc).
pg_stat_monitor(toggle restarts the cluster),pg_stat_statementsandpg_partmansettings are exposed throughengine_config(TF resource). - PgBouncer connection pools (API-managed) were added on 2026-03-31 (API changelog 2026-03).
- Encryption at rest: Terraform exports an
encryptedattribute (TF resource). I didn't find a first-party Akamai statement on at-rest encryption; the overview page only links to Aiven's encryption docs (overview). - There's no OS access, config files can't be edited, and replicas can't be hosted outside the service (overview).
Backups and restore
- Daily backups, retained 14 days, no extra cost. Point-in-time recovery for any time in that window (overview).
- To restore, create a new database with
fork.sourceand an optionalfork.restore_time(must be newer thanoldest_restore_time). Withoutrestore_timeyou get the newest full backup plus incremental. A restore always makes a new cluster; delete the original to stop paying for both (API: create, manage clusters). - A deleted database's backups are kept for 180 days, and a suspended cluster can be resumed within 180 days (manage clusters).
- There's no off-platform or exportable backup feature and no configurable retention. For personal finance data, we'd need our own
pg_dumpto separate storage (such as Object Storage) to survive account-level loss or retention longer than 14 days. That's my inference, not an Akamai recommendation.
Maintenance
- Window defaults to Sunday 20:00 UTC, weekly.
duration"can only be4" hours andfrequency"can only beweekly" via API/TF; day and hour (UTC) are configurable (manage clusters, API: create). The manage page says the default lasts 3 hours, which conflicts with the API's fixed 4. - Pending updates appear in
pending_updates, with a deadline, and can be applied manually (TF resource, manage clusters).
Pricing (PostgreSQL = MySQL, monthly, USD)
| Plan | vCPU / RAM / usable storage | 1 node | 2 nodes | 3 nodes |
|---|---|---|---|---|
| Shared 1 GB | 1 / 1 GB / 9 GB | $16 | n/a | $37 |
| Shared 2 GB | 1 / 2 GB / 30 GB | $32 | n/a | $74 |
| Shared 4 GB | 2 / 4 GB / 58 GB | $63 | n/a | $147 |
| G7 Dedicated 4 GB | 2 / 4 GB / 58 GB | $81.60 | $171.60 | $246 |
Source: pricing. The pricing page marks shared plans as "legacy hardware". Akamai also advertises a $100 trial credit.
Terraform support
- Use
linode_database_postgresql_v2. The v1linode_database_postgresqldoc no longer exists in the provider repo (404 onmain). Remaining database resources:database_postgresql_v2,database_mysql_v2,database_access_controls(provider repo docs). linode_database_postgresql_v2supportsengine_id,region,type,cluster_size,allow_list,private_network { vpc_id, subnet_id, public_access }(in Terraform,subnet_idis required whenprivate_networkis set),fork_source/fork_restore_time,updates, and manyengine_config_*fields. It exportsca_cert,host_primary,host_secondary(private host),root_username,root_password,port, andencrypted. Provisioning "can take up to half an hour" (TF resource).- I didn't find PgBouncer pool resources in the provider docs listing.
Open questions
- Is VPC for Managed Databases GA yet? No changelog entry says so, as of 2026-11-23.
- What exactly does "connection over a private IP address is not supported" mean? See the networking section above.
- Is at-rest encryption on by default? There's no first-party Akamai statement.