Skip to content

Commit 79a298a

Browse files
committed
Add credential expiry (TTL) support with fail-closed proxy enforcement (#855)
Synced from sferarc/pgbeam@728a7a5
1 parent 73c2d50 commit 79a298a

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/generated/types/AgentCredential.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ export type AgentCredential = {
8282
* @type string
8383
*/
8484
last_used_at?: string | null;
85+
/**
86+
* @description When the credential expires and becomes unusable. Null means it never expires. Enforcement is fail-closed in the proxy the instant this time passes, before any cleanup sweep runs.
87+
* @type string
88+
*/
89+
expires_at?: string | null;
8590
/**
8691
* @description When the credential was created.
8792
* @type string

src/generated/types/AuditLogEntry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type AuditLogEntry = {
3030
*/
3131
region?: string;
3232
/**
33-
* @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed).
33+
* @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed, credential_expired).
3434
* @type string
3535
*/
3636
event: string;
@@ -95,7 +95,7 @@ export type AuditLogEntry = {
9595
*/
9696
session_id?: string;
9797
/**
98-
* @description Statement origin (wire or mcp).
98+
* @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
9999
* @type string | undefined
100100
*/
101101
source?: string;

src/generated/types/CreateAgentCredentialRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ export type CreateAgentCredentialRequest = {
3333
* @type string | undefined
3434
*/
3535
principal_type?: CreateAgentCredentialRequestPrincipalTypeEnumKey;
36+
/**
37+
* @description Optional expiry. When set, the credential becomes unusable at this time (must be in the future). Omit or set null for a credential that never expires.
38+
* @type string
39+
*/
40+
expires_at?: string | null;
3641
};

0 commit comments

Comments
 (0)