rykloud mail service-accounts
Identities for machines (CI, a deploy), with short-lived tokens
A service account is an identity of the account for a machine, with its own scopes, domains, address allowlist and expiry. Its secrets do one thing: exchange for an access token of at most an hour (rykloud mail service-accounts token), used as RYKLOUD_MAIL_TOKEN. A service account is named by its name or id.
Also: sa
Examples
rykloud mail service-accounts create ci --scope mail:send --domain northwind.example --output-file ci.secret
RYKLOUD_MAIL_TOKEN=$(rykloud mail service-accounts token --secret-file ci.secret) rykloud mail send ...Commands
- rykloud mail service-accounts listThe account's live service accounts
- rykloud mail service-accounts createMake a service account; answers its first secret once
- rykloud mail service-accounts getA service account, its live secrets and its tokens
- rykloud mail service-accounts secretsA service account's secrets: make another to rotate, then revoke the old
- rykloud mail service-accounts revokeEnd a service account, every secret and every token at once
- rykloud mail service-accounts tokenExchange a service account's secret for an access token (at most an hour)
Every command also takes the global flags.