Documentation
¶
Overview ¶
Package steward lets a go-steer service act as its caller.
A steward looks after passengers' belongings on their behalf; purser (github.com/go-steer/purser) checks who is aboard. This module is the first half's complement: given a request carrying a person's Google access token, it decides whether the token is good for this service, who it belongs to, and whether that person is let in, and then hands the service a purser.Caller plus a token source it can use to call Google APIs and GKE clusters as that person.
The design, the hard rules and the phase plan are in docs/DESIGN.md.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package allow decides which verified Google accounts are let in.
|
Package allow decides which verified Google accounts are let in. |
|
Package authserver is steward's OAuth 2.1 authorization server (Path B): a service mounts it at an issuer URL in front of Google sign-in, so MCP clients that expect to discover an authorization server and register with it (Claude Code, gemini-cli, IDEs) can sign people in, and the service then acts as each person with their own Google access token.
|
Package authserver is steward's OAuth 2.1 authorization server (Path B): a service mounts it at an issuer URL in front of Google sign-in, so MCP clients that expect to discover an authorization server and register with it (Claude Code, gemini-cli, IDEs) can sign people in, and the service then acts as each person with their own Google access token. |
|
Package googletoken verifies the Google OAuth access tokens a client presents on a person's behalf, such as the ones a Gemini Enterprise app sends to a Custom MCP Server.
|
Package googletoken verifies the Google OAuth access tokens a client presents on a person's behalf, such as the ones a Gemini Enterprise app sends to a Custom MCP Server. |
|
Package httpauth protects an HTTP resource and hands each request the caller's own Google token.
|
Package httpauth protects an HTTP resource and hands each request the caller's own Google token. |
|
internal
|
|
|
pathbtest
Package pathbtest helps tests drive steward's authorization server end to end: a fake Google sign-in, a browser that approves the consent page, and helpers that obtain access tokens over HTTP.
|
Package pathbtest helps tests drive steward's authorization server end to end: a fake Google sign-in, a browser that approves the consent page, and helpers that obtain access tokens over HTTP. |
|
Package mcpauth serves an MCP server built on github.com/modelcontextprotocol/go-sdk behind an httpauth.Protector: it binds each session to the person who opened it, and gives each call the token that came with it.
|
Package mcpauth serves an MCP server built on github.com/modelcontextprotocol/go-sdk behind an httpauth.Protector: it binds each session to the person who opened it, and gives each call the token that came with it. |
|
Package seal turns small values into opaque, tamper-proof strings and back: AES-256-GCM envelopes under a keyring whose keys are named by ID, so a key is rotated without a database and any replica holding the keyring opens what another sealed.
|
Package seal turns small values into opaque, tamper-proof strings and back: AES-256-GCM envelopes under a keyring whose keys are named by ID, so a key is rotated without a database and any replica holding the keyring opens what another sealed. |
|
secretmanager
Package secretmanager loads a seal.Keyring from a Google Secret Manager secret version, so the keys that seal steward's tokens live in Secret Manager and a rotation is a new secret version.
|
Package secretmanager loads a seal.Keyring from a Google Secret Manager secret version, so the keys that seal steward's tokens live in Secret Manager and a rotation is a new secret version. |