/goff-relay-proxy:goff-relay-proxyfrom goff-relay-proxy
Configures, runs and debugs the GO Feature Flag (GOFF) relay proxy, covering goff-proxy.yaml keys (server.*, swagger.*, authorizedKeys), retrievers, exporters, notifiers, API keys including admin, flagsets, OFREP and /v1/allflags endpoints, admin retriever refresh, pollingInterval, Docker, Kubernetes and Helm deployment, health and metrics. Use when asked to set up or fix "go-feature-flag" relay proxy, "goff-proxy.yaml", "relay proxy", a GOFF retriever (file, github, s3, http, configmap, postgresql), exporter or notifier, authorizedKeys or X-API-Key 401/403, flagSets, flags not refreshing, or the GOFF Helm chart. Not for writing flag files and targeting rules (goff-flags), app code and OpenFeature providers (goff-sdk), or generic flag practice (feature-flags).
Ships in goff-relay-proxy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The relay proxy (go-feature-flag binary) is stateless: it polls retrievers, holds flags in memory and serves them over HTTP. Apps talk to it through OpenFeature providers. Facts here come from the GOFF docs (v1.58.1) and repo files; nothing was run against a live proxy. Items marked verify are unconfirmed, so check the docs.
authorizedKeys for anything beyond localhost. With nothing set the proxy is fully open. Use separate keys for evaluation and admin; /admin/v1/* is unreachable without an admin key.server.*, swagger.*, authorizedKeys, plural retrievers, exporters, notifiers. Older docs show monitoringPort, enableSwagger, startAsAwsLambda, apiKeys, listen and singular notifier:; migrate those when you see them.goff-proxy.yaml. Lookup order without --config: ./goff-proxy.yaml, /goff/goff-proxy.yaml, /etc/opt/goff/goff-proxy.yaml. Explicit: go-feature-flag --config=/path. Default port 1031.pollingInterval: 1000 (ms; default 60000, minimum 1000, negative disables) and retrievers: [{kind: file, path: /goff/flags.goff.yaml}]._, arrays comma-separated or indexed (SERVER_PORT, AUTHORIZEDKEYS_EVALUATION=k1,k2, RETRIEVERS_0_KIND). envVariablePrefix: GOFF_ adds a prefix.startWithRetrieverError: false (default) crashes the proxy when flags cannot load. Set true to serve defaults until retrieval works, or set persistentFlagConfigurationFile so a restart works while retrievers are down (the data may be stale).docker run -p 1031:1031 \
-v $(pwd)/flags.goff.yaml:/goff/flags.goff.yaml \
-v $(pwd)/goff-proxy.yaml:/goff/goff-proxy.yaml \
gofeatureflag/go-feature-flag:latest
curl -X POST localhost:1031/ofrep/v1/evaluate/flags/<flag> -H 'Content-Type: application/json' \
-d '{"context":{"targetingKey":"u-1"}}'
Add -H 'X-API-Key: <key>' when keys are set (Authorization: <key> is also accepted). Evaluation needs targetingKey in the context.
Endpoints (non-exhaustive; the OpenAPI spec is authoritative): POST /ofrep/v1/evaluate/flags[/{key}], POST /v1/allflags, POST /v1/feature/{key}/eval (legacy), POST /v1/flag/configuration and GET /v1/flag/change (in-process providers), POST /v1/data/collector, GET /openfeature/v0/manifest, GET /health, /info, /metrics.
Force a refresh instead of waiting for the poll:
curl -X POST http://<host>:1031/admin/v1/retriever/refresh -H 'X-API-Key: <admin key>' -d ''
The docs prose also shows /v1/admin/retriever/refresh; its curl and the OpenAPI spec use /admin/v1/....
gofeatureflag/go-feature-flag:latest (or ghcr.io/go-feature-flag/go-feature-flag, releases after v1.55.1). Tags :fips and :trixie exist.helm repo add go-feature-flag https://charts.gofeatureflag.org/, then helm install relay-proxy go-feature-flag/relay-proxy -f values.yaml; chart version equals proxy version. Hardening values: nonRoot.enabled: true, securityContext.readOnlyRootFilesystem: true (leave the latter off with the file exporter or persistentFlagConfigurationFile).configmap retriever works only when the proxy runs inside the cluster.server.mode: lambda plus server.awsLambdaAdapter; no SSE./health returns {"initialized": bool}, /metrics is Prometheus, /info shows cache refresh and flagsets. server.monitoringPort moves them to a separate port. Logs are JSON on stdout; logLevel: debug logs bodies truncated at 8KiB.startWithRetrieverError.X-API-Key, wrong list (evaluation vs admin), or flagSets mode where every request needs a flagset key.pollingInterval, check GET /info, or call the admin refresh. GitHub, GitLab and Bitbucket retrievers hit rate limits, so raise pollingInterval.go-feature-flag-cli lint, and confirm the context has targetingKey.swagger: {enabled: true} serves /swagger/. Keep it off in production.retrievers, exporters and notifiers are ignored; each set needs an explicit name and at least one apiKeys entry. Set it up in the flagSets block, not both.authorizedKeys (default mode) and flagset names and apiKeys (flagsets mode) hot-reload; every other change needs a restart.ofrepEventStream.baseUrl makes the proxy append the caller's API key to the advertised SSE URL as a query param, so keep it on trusted networks.enableBulkMetricFlagNames adds a high-cardinality label.log notifier config, the OTel exporter tracerName default, exact flagSets key case (flagSets is the documented spelling).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin goff-relay-proxy