Create a password that expires
passwords & credentials
// what it does
--ttl gives the credential a lifespan (30m, 24h, or bare seconds), after which it stops authenticating on its own. Perfect for a debugging session, a contractor, or a one-off script — access that cleans itself up.
// shell
$ pscale password create mydb main debug-session --ttl 2h$ pscale password renew mydb main <password-id>// gotcha
Expiry is a hard cut: connections start failing the moment the TTL lapses, with no warning. Don't give a long-lived service a TTL'd password unless you enjoy 3am incidents; renew one that's about to lapse with password renew.