Skip to content

Commit 10ebef0

Browse files
committed
feat(api,dashboard): self-host enrollment expiry, atomic rotation, and org settings UI (#1169)
Synced from sferarc/pgbeam@31cb990
1 parent 7e976ad commit 10ebef0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/selfHostEnrollment.gen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export interface SelfHostEnrollmentArgs {
1212
regionLabel?: pulumi.Input<string>;
1313
/** Optional human-readable note. */
1414
description?: pulumi.Input<string>;
15+
/** When the enrollment token expires and stops authenticating new proxy connections. Null means it never expires. Enforcement is fail-closed at the gRPC auth gate the instant this time passes. */
16+
expiresAt?: pulumi.Input<string>;
1517
}
1618

1719
function selfHostEnrollmentToState(r: SelfHostEnrollmentData) {
@@ -23,6 +25,7 @@ function selfHostEnrollmentToState(r: SelfHostEnrollmentData) {
2325
createdAt: r.created_at ?? undefined,
2426
lastSeenAt: r.last_seen_at ?? undefined,
2527
revokedAt: r.revoked_at ?? undefined,
28+
expiresAt: r.expires_at ?? undefined,
2629
};
2730
}
2831

@@ -36,6 +39,7 @@ const selfHostEnrollmentProvider: pulumi.dynamic.ResourceProvider = {
3639
body: {
3740
region_label: inputs.regionLabel as string | undefined,
3841
description: inputs.description as string | undefined,
42+
expires_at: inputs.expiresAt as string | undefined,
3943
},
4044
});
4145

@@ -97,6 +101,7 @@ const selfHostEnrollmentProvider: pulumi.dynamic.ResourceProvider = {
97101
if (news.orgId !== olds.orgId) replaces.push("orgId");
98102
if ((news.regionLabel ?? "") !== (olds.regionLabel ?? "")) replaces.push("regionLabel");
99103
if ((news.description ?? "") !== (olds.description ?? "")) replaces.push("description");
104+
if ((news.expiresAt ?? "") !== (olds.expiresAt ?? "")) replaces.push("expiresAt");
100105

101106
return {
102107
changes: replaces.length > 0,
@@ -124,6 +129,8 @@ export class SelfHostEnrollment extends pulumi.dynamic.Resource {
124129
public readonly lastSeenAt!: pulumi.Output<string | undefined>;
125130
/** When the enrollment was revoked. Null means active. */
126131
public readonly revokedAt!: pulumi.Output<string | undefined>;
132+
/** When the enrollment token expires and stops authenticating new proxy connections. Null means it never expires. Enforcement is fail-closed at the gRPC auth gate the instant this time passes. */
133+
public readonly expiresAt!: pulumi.Output<string | undefined>;
127134
/** One-time enrollment token (pbh_...) for the self-hosted proxy's GRPC_AUTH_TOKEN (shown once). */
128135
public readonly token!: pulumi.Output<string>;
129136

0 commit comments

Comments
 (0)