惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
D
Docker
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
月光博客
月光博客
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学

Changelog — PlanetScale

Replica connections graph — PlanetScale Branch start maintenance webhook now available for Vitess enterprise customers — PlanetScale Deploy request UI updates — PlanetScale PostgreSQL CPU and I/O tracking — PlanetScale Branch start maintenance webhook — PlanetScale Cloudflare Workers integration — PlanetScale PlanetScale for Postgres is now Generally Available — PlanetScale PostgreSQL Schema Recommendations — PlanetScale Postgres maintenance windows — PlanetScale Support for 10 new Postgres extensions — PlanetScale 2025 PCI DSS reporting now available — PlanetScale AWS PrivateLink for Postgres — PlanetScale Google Cloud Provider support for Postgres databases — PlanetScale Insights: percent runtime — PlanetScale New region: AWS ca-central-1 (Montreal) — PlanetScale Postgres event triggers are now supported — PlanetScale New Postgres extension: pg_squeeze — PlanetScale Provisioned IOPS display for Metal clusters — PlanetScale Insights: max query latency graphs — PlanetScale Pinned databases update — PlanetScale New Postgres extensions: pg_cron and pg_partman_bgw — PlanetScale pscale shell now supports Postgres databases — PlanetScale Migration guides for Aurora, Neon, and Supabase — PlanetScale New pscale role commands for CLI — PlanetScale Postgres migration guides and scripts — PlanetScale Postgres role management — PlanetScale Expanded Postgres network-attached storage I/O configuration — PlanetScale 2025 SOC 1 Type 2 & SOC 2 Type 2 reports now available — PlanetScale Prometheus Metrics Additions: vstreamer events and errors — PlanetScale Postgres network-attached storage configuration — PlanetScale
Service token expiration with TTL — PlanetScale
2026-01-15 · via Changelog — PlanetScale

Introducing Database Traffic Control™: resource budgets for your Postgres query traffic.Learn more

You can now set an expiration date for service tokens, giving you more control over token lifecycle and security. When you create a service token with an expiration, the token will automatically stop working once that date is reached.

This feature is available in the dashboard, API, and CLI.

Dashboard

When creating a service token in the PlanetScale dashboard, you can optionally set an expiration date. The token will stop working once the expiration date is reached.

API

When creating a service token via the API, you can now include a ttl parameter (in seconds):

curl --request POST \
     --url 'https://api.planetscale.com/v1/organizations/{organization}/service-tokens' \
     --header 'Authorization: <SERVICE_TOKEN_ID>:<SERVICE_TOKEN>' \
     --header 'Content-Type: application/json' \
     --data '{"name": "My Token", "ttl": 3600}'

The response now includes an expires_at field showing when the token will expire.

CLI

When creating a service token through the pscale CLI, use the --ttl flag to specify the expiration time in seconds:

pscale service-token create --name "My Token" --ttl 3600

The output now displays the expiration time for tokens created with a TTL. You can also see expiration times when listing service tokens with pscale service-token list.

Read more about service tokens