EnrollmentGrantService
本页列出 kibotos.operator.v1 中 EnrollmentGrantService 的方法及每个方法用到的消息与枚举,由 operator.proto 及其注释生成,注释保持英文。多个服务共用的消息与枚举见 kibotos.operator.v1 类型。
EnrollmentGrantService lets an authenticated Operator create one-time enrollment grants for other Operators or for exact node IDs, and revoke a principal. The enrollment key is returned exactly once; ctrl keeps only the grant record, the bootstrap certificate serial, and the key fingerprint.
CreateEnrollmentGrant
/kibotos.operator.v1.EnrollmentGrantService/CreateEnrollmentGrant一元调用CreateEnrollmentGrantRequestCreateEnrollmentGrantRequest names the exact principal the grant admits. ttl is bounded by ctrl (one minute to twenty-four hours, default one hour). data_plane_extra_hosts is allowed only on a node grant: extra lowercase DNS names or IP addresses (an IP, a loopback address, or an external DNS name) the node's data-plane certificate must also name, beyond the derived <node_id>.<suffix> node host ctrl always signs. Enroll copies them into the node admission. None of them may be the ctrl host.
CreateEnrollmentGrantResponseCreateEnrollmentGrantResponse carries the opaque enrollment key only on the first response for a command_id. A replay returns the same grant with an empty key and replayed set, because ctrl never stores the key.
RevokeEnrollment
/kibotos.operator.v1.EnrollmentGrantService/RevokeEnrollment一元调用RevokeEnrollmentRequestRevokeEnrollmentRequest ends a principal: its admission becomes terminal, its pending grants are revoked, and for a node its control session closes.
RevokeEnrollmentResponse消息与枚举
EnrollmentGrantService 的多个方法用到以下消息与枚举。
EnrollmentKind
ENROLLMENT_KIND_UNSPECIFIED= 0ENROLLMENT_KIND_OPERATOR= 1ENROLLMENT_KIND_NODE= 2