feat(api): let owners audit all api tokens and cap their lifetime
Holders of tokens.manage list every token of the org with owner, permissions, creation, expiry and last use, and can revoke any of them. A maximum lifetime rejects tokens that would outlive it and shortens existing ones when it is set. Closes #48 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
da128c5081
commit
b52698ffbc
9 files changed
+674
-296
No files matched your search
@@ -76,6 +76,10 @@
|
||||
"error.sso_provider_error": "The identity provider could not complete the sign-in.",
|
||||
"error.sso_required_by_org": "This organization requires signing in through its SSO provider.",
|
||||
"error.sso_unavailable": "Single sign-on is not available for this organization.",
|
||||
"error.token_lifetime_exceeds_policy": {
|
||||
"one": "Tokens in this organization must expire within {{.Count}} day.",
|
||||
"other": "Tokens in this organization must expire within {{.Count}} days."
|
||||
},
|
||||
"error.totp_already_enabled": "TOTP is already active.",
|
||||
"error.totp_required_by_org": "One of your organizations requires TOTP.",
|
||||
"error.totp_setup_expired": "Setup expired, please start again.",
|
||||
@@ -108,6 +112,9 @@
|
||||
"org.require_totp": "Require two-factor sign-in",
|
||||
"org.require_totp_hint": "Members signing in with a password need TOTP. SSO sign-ins rely on the identity provider's MFA.",
|
||||
"org.title": "Organization",
|
||||
"org.token_max_days": "Maximum API token lifetime (days)",
|
||||
"org.token_max_days_hint": "New tokens must expire within this period. Saving shortens existing tokens that would outlive it. Leave empty for no limit.",
|
||||
"org.token_max_days_none": "unlimited",
|
||||
"perm.incidents.read": "View incidents",
|
||||
"perm.incidents.write": "Manage incidents",
|
||||
"perm.members.manage": "Invite and manage members",
|
||||
@@ -120,6 +127,7 @@
|
||||
"perm.roles.manage": "Manage custom roles",
|
||||
"perm.statuspages.read": "View status pages",
|
||||
"perm.statuspages.write": "Edit status pages",
|
||||
"perm.tokens.manage": "View and revoke all API tokens",
|
||||
"roles.built_in": "built-in",
|
||||
"roles.create": "Create role",
|
||||
"roles.delete": "Delete role",
|
||||
@@ -171,15 +179,22 @@
|
||||
"sso.settings.title": "Single sign-on",
|
||||
"tokens.copy_now": "Copy the token now. It will not be shown again.",
|
||||
"tokens.create": "Create token",
|
||||
"tokens.created": "Created",
|
||||
"tokens.days": {
|
||||
"one": "{{.Count}} day",
|
||||
"other": "{{.Count}} days"
|
||||
},
|
||||
"tokens.expires": "Expires",
|
||||
"tokens.intro": "Tokens act on your behalf in this organization. They never exceed your own permissions, even if those shrink later.",
|
||||
"tokens.intro_all": "You see every API token in this organization and can revoke any of them. Tokens never exceed their owner's permissions.",
|
||||
"tokens.last_used": "Last used",
|
||||
"tokens.never": "never",
|
||||
"tokens.owner": "Owner",
|
||||
"tokens.permissions": "Permissions",
|
||||
"tokens.policy": {
|
||||
"one": "This organization limits API tokens to {{.Count}} day.",
|
||||
"other": "This organization limits API tokens to {{.Count}} days."
|
||||
},
|
||||
"tokens.revoke_confirm": "Revoke this token? Requests using it fail immediately.",
|
||||
"tokens.title": "API tokens"
|
||||
}
|
||||
Reference in new issue
Block a user