GoodMemGoodMem
ReferenceAPIgRPC API

System

gRPC SystemService reference for GetServerInfo, with request messages, response types, and service documentation.

Services

SystemService

System-level, read-only metadata surface for the GoodMem control plane.

Design rationale

  • Keep operational introspection separate from resource/data plane APIs. The existing services (MemoryService, PingService, etc.) are scoped to tenant resources and enforce RBAC at the resource level. System metadata should remain callable before authentication is configured so bootstrapping tools (CLI installers, readiness probes) can discover build details.
  • Provide a single aggregation point for lightweight control-plane signals such as version details, advertised capabilities, and compatibility warnings. This prevents proliferation of ad-hoc “version” RPCs on unrelated services. Calls under SystemService are safe, side-effect free, and cheap.
  • Keep heavy or stateful operations in dedicated services. Activities that mutate cluster state, require elevated permissions, or contact user-configured upstream providers belong in services such as AdminService or PingService to preserve clear authorization boundaries and operational semantics.

Good fit for this service

  • Read-only build metadata (semantic version, Git revision, dirty workspace indicator).
  • Server capability flags that help clients adapt behaviour (e.g., “supports inference proxy”, “requires schema ≥ X”).
  • Control-plane lifecycle hints (drain state, maintenance windows) when exposed as informational snapshots.

Operations handled by other services

  • Existing resource services handle operations that require per-resource permissions or access tenant data.
  • AdminService handles operations that mutate state or require administrator decisions.
  • PingService handles high-frequency, streaming diagnostics such as inference probes.

Authentication: Calls MAY be served before API keys exist. Implementations should ensure the interceptor chain allows anonymous access (e.g., via MethodAuthorizer).

Side effects: None. All RPCs under this service MUST be idempotent, fast, and telemetry-friendly.

GetServerInfo

Summary: Returns the server's advertised version and build metadata.

Use cases:

  • CLI bootstrap comparing client and server semantic versions.
  • Observability tooling recording deployed build identifiers.
  • Automated installers verifying dirty-build markings before enabling upgrades.

Response contract: Implementations SHOULD populate the numeric fields when the Implementation-Version manifest entry follows MAJOR.MINOR.PATCH semantics. When parsing fails, the string is still returned verbatim and the numeric components remain zero so callers can fall back to string comparison.

Type
Requestgoodmem.v1.GetServerInfoRequest
Responsegoodmem.v1.GetServerInfoResponse

Messages

GetServerInfoRequest

Empty request for the SystemService.GetServerInfo RPC.

GetServerInfoResponse

Response payload describing the running server build.

FieldTypeDescription
versionstringCanonical semantic version string from the server manifest (Implementation-Version). This is
the primary value callers should display, and it is returned verbatim even when it represents a
dirty or development build (for example 1.2.3-dirty or 0.0.0-dev.abcdef).
majoruint32Numeric major version, parsed from the version string. Left at zero when parsing fails.
minoruint32Numeric minor version, parsed from the version string. Left at zero when parsing fails.
patchuint32Numeric patch version, parsed from the version string. Left at zero when parsing fails.
dirtyboolTrue when the build was produced from a dirty workspace. Derived from the manifest entry or git
metadata when available.
git_commitstringGit commit SHA (short or full) baked into the manifest (Build-Commit-SHA). Optional when
unavailable.
git_describestringOutput from git describe --tags --always --dirty, when the build pipeline provides it.
build_timegoogle.protobuf.TimestampBuild completion timestamp in UTC. Optional; absent when the build pipeline does not supply it.
capabilities...InfoResponse.CapabilitiesEntryArbitrary key/value pairs advertising optional capabilities or feature flags.
Keys should be short snake_case identifiers (e.g., supports_proxy, requires_migration_42).

GetServerInfoResponse.CapabilitiesEntry

FieldTypeDescription
keystring
valuestring

On this page