Skip to content
proto

proto

proto

The QuotaProvider gRPC contract, plus Secret/redact credential-safety types.

A hashicorp/go-plugin service (Describe + FetchQuota) with AutoMTLS so a credential never crosses the loopback socket in the clear, plus secret.Secret (a value that can’t accidentally print via %v, a wrapped error, or JSON) and shape-based redact text scrubbing as a second line of defense over raw text that isn’t already wrapped.

Highlights

  • quotapb.QuotaProviderServer: Describe (identity + login URL) and FetchQuota.
  • A credential is map<string,string> (a whole cookie jar), not one opaque string.
  • secret.Secret — the only way to read it back is Secret.Reveal(func(string)).
  • redact — shape-based scrubbing for text that isn’t already Secret-wrapped.
  • AutoMTLS on every plugin connection — nothing crosses the loopback socket in the clear.

Install

go get github.com/go-aiquota/proto

Requires Go 1.26.4 or newer.

Links