Skip to content

Commit 5d2c7e0

Browse files
committed
feat(providers): SelfHostEnrollment resource, gateway-resource tests, crossplane generator fix (#1164)
Synced from sferarc/pgbeam@5d49e15
1 parent 1eedddc commit 5d2c7e0

4 files changed

Lines changed: 48 additions & 1 deletion

File tree

openapi.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9010,6 +9010,21 @@
90109010
"page_size": 100
90119011
}
90129012
}
9013+
},
9014+
"SelfHostEnrollment": {
9015+
"description": "Manages a self-host (BYOC) enrollment: a token a self-hosted proxy uses to authenticate to the control plane's config/audit stream. The token is a one-time secret returned only at creation and exposed as a sensitive computed output; it cannot be retrieved again. To rotate the token, replace the resource. Deletion revokes the enrollment.",
9016+
"operations": {
9017+
"create": "createSelfHostEnrollment",
9018+
"delete": "revokeSelfHostEnrollment",
9019+
"list": "listSelfHostEnrollments"
9020+
},
9021+
"extra-outputs": {
9022+
"token": {
9023+
"path": "token",
9024+
"description": "One-time enrollment token (pbh_...) for the self-hosted proxy's GRPC_AUTH_TOKEN (shown once).",
9025+
"sensitive": true
9026+
}
9027+
}
90139028
}
90149029
}
90159030
}

openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6543,3 +6543,17 @@ x-iac-resources:
65436543
- url
65446544
list-query-params:
65456545
page_size: 100
6546+
SelfHostEnrollment:
6547+
description: >-
6548+
Manages a self-host (BYOC) enrollment: a token a self-hosted proxy uses to authenticate to the control plane's
6549+
config/audit stream. The token is a one-time secret returned only at creation and exposed as a sensitive computed
6550+
output; it cannot be retrieved again. To rotate the token, replace the resource. Deletion revokes the enrollment.
6551+
operations:
6552+
create: createSelfHostEnrollment
6553+
delete: revokeSelfHostEnrollment
6554+
list: listSelfHostEnrollments
6555+
extra-outputs:
6556+
token:
6557+
path: token
6558+
description: One-time enrollment token (pbh_...) for the self-hosted proxy's GRPC_AUTH_TOKEN (shown once).
6559+
sensitive: true

spec/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,21 @@ x-iac-resources:
330330
- url
331331
list-query-params:
332332
page_size: 100
333+
SelfHostEnrollment:
334+
description: >-
335+
Manages a self-host (BYOC) enrollment: a token a self-hosted proxy uses to
336+
authenticate to the control plane's config/audit stream. The token is a
337+
one-time secret returned only at creation and exposed as a sensitive
338+
computed output; it cannot be retrieved again. To rotate the token,
339+
replace the resource. Deletion revokes the enrollment.
340+
operations:
341+
create: createSelfHostEnrollment
342+
delete: revokeSelfHostEnrollment
343+
list: listSelfHostEnrollments
344+
extra-outputs:
345+
token:
346+
path: token
347+
description: >-
348+
One-time enrollment token (pbh_...) for the self-hosted proxy's
349+
GRPC_AUTH_TOKEN (shown once).
350+
sensitive: true

src/spec.gen.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)