gRPC API Reference

The Mezite auth service exposes a gRPC API on port 3025. The protobuf definitions are located at proto/v1/auth.proto.

Authentication RPCs

RPCDescription
LoginAuthenticate with credentials and receive short-lived certificates.
IssueUserCertsIssue new SSH certificates for an authenticated user.

Node Management RPCs

RPCDescription
RegisterNodeRegister a new SSH node with the cluster using a join token.
ListNodesList all registered SSH nodes and their metadata.
HeartbeatPeriodic keepalive sent by agents to report node health.

User and Role RPCs

RPCDescription
GetUserRetrieve a user by name.
CreateUserCreate a new local user with assigned roles.
DeleteUserDelete a user from the cluster.
CreateRoleCreate or update an RBAC role.
ListRolesList all roles defined in the cluster.

Session and Audit RPCs

RPCDescription
CreateSessionRecord a new SSH session.
ListSessionsList recorded SSH sessions with filtering.
EmitAuditEventWrite an audit event to the log.
ListAuditEventsQuery audit events by type, user, or time range.

Access Request RPCs

RPCDescription
CreateAccessRequestSubmit a request for elevated roles or node access.
ListAccessRequestsList access requests with optional status filtering.

Proto File

The canonical protobuf definitions live in the repository at proto/v1/auth.proto. Generate Go stubs with:

Generate protobuf stubs bash
make proto