EasyP

Upgrading

Release-by-release upgrade notes for the API Service: what breaks, what it looks like when it does, and what to change.

Only releases that need a hand are listed. A version absent from this file upgrades by pulling the new image.

What 1.0 freezes

From v1.0.0 the surfaces below are fixed. Changing any of them is a major version, so they are listed here rather than left to be inferred from what happens not to have changed yet.

Frozen

  • The proto package easyp.generator.v1 and the service name GeneratorAPI.
  • Field names and field numbers in every message. A removed field keeps its number reserved; a number is never reused.
  • The reason values in google.rpc.ErrorInfo, under domain easyp.tech.
  • Configuration keys, their environment spellings, and what a value means.
  • The public API of the sdk and api Go modules.

Still open without a major version

  • New fields with new numbers, new RPCs, new messages.
  • New configuration keys, and new reason values.
  • New SDK options and new methods.
  • Raising a licence ceiling. Lowering one is not: a limit introduced where none existed takes throughput away from deployments that already have it, which is why the ceilings that exist were drawn before 1.0 rather than after.

A rename is handled without breaking anyone: the old configuration key keeps working for one release while warning, naming both spellings and the line to change, and only then stops.

v1.3.0 → v1.3.1

v1.3.1 was tagged but never published: the release job's image scan stopped it before anything left the runner. v1.3.2 carries the same changes plus a dependency fix, so upgrade from v1.3.0 straight to v1.3.2. Only the api/v1.3.1 and sdk/v1.3.1 Go modules exist under that number.

latest resolves to the highest version number

latest used to be chosen by sorting version strings, which ranks v1.36.9 above v1.36.11. It now compares versions component by component, a missing patch counting as zero. A registry holding such versions serves a different latest after the upgrade: on plugins.easyp.tech protocolbuffers/go:latest moved from v1.36.9 to v1.36.11 and bufbuild/es:latest from v2.9.0 to v2.12.0, nine plugins of 80 in all. An unpinned remote: generates different code from the first run after the upgrade; pin the version to keep the old output.

MCP plugins_list items carry createdAt

Each item in plugins had created_at while everything else in the result — nextPageToken, platform — was lowerCamelCase. The field is now createdAt. A client reading created_at gets nothing and must switch. Only the MCP JSON changed: the gRPC wire, the Go SDK and the database are as before.

MCP reports the service's real version

serverInfo.version in the initialize response was the literal v1.0.0 whatever was running. It is now the version the release build stamps, so a deployed service can be identified from outside. Anything that compared it with v1.0.0 must change.

v1.2.1 → v1.3.0

plugins publish builds for the service's platform

PluginsResponse gains platform, the os/arch the service runs plugins on, and plugins publish builds and smoke-tests for it. Before, it built for the machine it ran on: published from a Mac on Apple silicon, a version was an arm64 binary that an amd64 service fails to start with exec format error. Republish such versions with plugins publish --force. Upgrade the service before the CLI, or pass --platform linux/amd64: against an older service publish warns and builds for its own machine, as before.

Archives are reproducible

plugins publish packs a version with fixed timestamps, owners and modes, so rebuilding an unchanged version produces the same archive and its upload is skipped. Archives already in storage were packed the old way: the first publish --force after upgrading uploads every version once more, and each replica refetches what it serves.

v1.2.0 → v1.2.1

Unpacked copies without a checksum marker are fetched once

A version directory with no .sha256 marker beside it — unpacked before v1.2.0, or bind-mounted from a plugins build tree — used to count as current. It is now fetched again the first time it is used, once per replica, and gets a marker. Plan for the disk: each replica downloads every version it serves once more, within registry.cache_max_bytes. Versions registered without a checksum (plugins publish --plugins-dir) are unaffected.

A relative plugins_dir is resolved at start

plugins_dir: ./plugins now resolves to an absolute path before commands are derived. Versions registered with a relative command under v1.2.0 still fail with no such file or directory; repair them with easyp-svc plugins publish --plugins-dir <dir> --force.

The plugin limit holds under concurrent registrations

The licence plugin limit is now counted and enforced in the same transaction as the insert. Before, parallel CreatePlugin calls could pass the check together and land more versions than the limit allows; such extra rows stay, but no new version is accepted until the count is below the limit.

Clients resolve plain addresses with the system resolver

The SDK and easyp-svc dial a plain host:port through passthrough:///, so the operating system resolves the name when connecting. A host without a port gets 443, as before. Prefix dns:/// to use grpc-go's own resolver. The easyp CLI gets the same change for remote plugins in its next release; until then easyp generate still uses grpc-go's resolver.

The rate limit says how long to wait

A refused request reads rate limit exceeded for <ip>, retry after <n>s. The x-ratelimit-reset trailer still carries the unix time the bucket refills by.

v1.1.x → v1.2.0

The Helm chart runs a StatefulSet

Chart 1.2.0 renders a StatefulSet instead of a Deployment. Each replica gets a ReadWriteOnce claim of its own from a claim template, plugins-<release>-easyp-service-N, and upgrades roll instead of using Recreate. Along with it:

  • persistence.existingClaim is removed. An upgrade that still sets it fails before any pod starts, naming the claim to rebind the volume to.
  • persistence.accessMode must be ReadWriteOnce or ReadWriteOncePod; a shared mode is refused.
  • More than one replica, or autoscaling.enabled with maxReplicas above 1, needs config.registry.s3.bucket.
  • New values: autoscaling.* and persistence.retentionPolicy.

The old standalone claim, <release>-easyp-service-plugins, is no longer mounted. It carries helm.sh/resource-policy: keep, so Helm leaves it in place, and the install notes name it. What to do with it depends on object storage:

  • With S3 nothing is lost. Upgrade, let the new claims fill on demand — a cold start per replica — and delete the old claim once the pods are serving.
  • Without S3 the old claim holds the only copy of every plugin. Before upgrading, rebind its PersistentVolume to the name the StatefulSet looks for; the StatefulSet then adopts it as replica 0's claim instead of creating an empty one. For a release named easyp:
release=easyp
old=easyp-easyp-service-plugins            # or the claim existingClaim named
new=plugins-easyp-easyp-service-0

pv="$(kubectl get pvc "$old" -o jsonpath='{.spec.volumeName}')"
class="$(kubectl get pvc "$old" -o jsonpath='{.spec.storageClassName}')"
size="$(kubectl get pvc "$old" -o jsonpath='{.spec.resources.requests.storage}')"

# Keep the volume when its claim goes away, and stop the pod that mounts it.
kubectl patch pv "$pv" -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
kubectl scale deploy/easyp-easyp-service --replicas=0
kubectl delete pvc "$old"

# Free the volume, then claim it under the StatefulSet's name.
kubectl patch pv "$pv" --type=json -p '[{"op":"remove","path":"/spec/claimRef"}]'
kubectl create -f - <<YAML
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: $new
spec:
  accessModes: [ReadWriteOnce]
  storageClassName: "$class"
  resources: {requests: {storage: "$size"}}
  volumeName: "$pv"
YAML

# Give the chart the volume's real size, so its check against cacheMaxBytes
# compares the disk that is actually there.
helm upgrade "$release" oci://ghcr.io/easyp-tech/charts/easyp-service \
  --version <version> --reuse-values \
  --set persistence.existingClaim=null --set persistence.size="$size"

--reuse-values works here, with one catch: it replaces the new chart's defaults with the old release's values, so autoscaling and persistence.retentionPolicy arrive absent and are read as off and Retain. To turn autoscaling on in the same upgrade use --reset-then-reuse-values (Helm 3.14+); --set autoscaling.enabled=true alone is refused.

If the pod already started on an empty claim, the same steps apply with kubectl scale statefulset/easyp-easyp-service --replicas=0 instead of the Deployment, deleting the empty plugins-easyp-easyp-service-0 along with the old claim, and scaling back to one afterwards. Anything that addressed deploy/<release>-easyp-service — kubectl rollout, kubectl logs, dashboards, alerts on kube_deployment_* — needs statefulset/ instead. The chart README has the full procedure: Upgrading from a release that rendered a Deployment.

plugins publish replaces push, register and pack

The three commands, --packed and --plugins-prefix are gone, and so are the push-plugins, register-plugins and push-archives tasks. One command takes each version from source to registered:

BeforeNow
plugins build → plugins push → plugins registerplugins publish <registry>
plugins pack --out <dir>plugins build --archive --output <dir>
plugins push <dir> --packed + plugins register <dir> --packedplugins publish --archives <dir>
plugins register against a plugins_dirplugins publish --plugins-dir <dir>

publish needs a v1.2.0 server: it registers without a command, which older servers refuse — it says so and stops. Upgrade the service first.

Registration derives the command and checks a claimed checksum

command in a plugin config is optional and defaults to {plugins_dir}/{group}/{name}/{version}/plugin; an explicit one still works and is still held to plugins_dir. A sha256 in the config is now checked against the stored archive instead of being overwritten, and a mismatch is FAILED_PRECONDITION with the new reason CHECKSUM_MISMATCH. The service takes the checksum from the object's x-amz-meta-sha256 when the uploader set it, so registering no longer reads the whole archive.

A checksum mismatch is FAILED_PRECONDITION, not INTERNAL

A download that does not match the registry used to reach clients as INTERNAL. It is now FAILED_PRECONDITION / CHECKSUM_MISMATCH: the fix is to republish, not to retry. A client matching on reasons gains one; one matching on INTERNAL for this case must change.

Republishing reaches every replica

plugins publish --force replaces a version's config with the new checksum, and each replica refetches its unpacked copy on next use — it keeps a .sha256 marker beside it. Copies unpacked by an older service have no marker and count as current; republish a version once to bring its copies in line. From v1.2.1 a copy without a marker is fetched once on its own.

v1.0.0 → v1.0.2

The image checks its own health

From v1.0.1 the image carries a HEALTHCHECK that runs easyp-svc health, which probes /live on the health port. The probe has to know that port. It reads the same configuration the service does, so a port set through the environment is found without further work. A port set in a YAML file is not: the file is named by --cfg on the start command line, and the probe does not see that command line.

From v1.0.2 every command that accepts --cfg also reads the path from EASYP_CONFIG. Set it on the container, and both the service and the probe use the same file:

environment:
  EASYP_CONFIG: /etc/easyp/config.yml

What it looks like without it: the container serves normally while docker ps reports unhealthy, and the probe's log says dial tcp 127.0.0.1:23412: connect: connection refused. Docker's restart policies ignore health, so nothing restarts, but anything that waits on condition: service_healthy never proceeds. Kubernetes ignores the image's HEALTHCHECK altogether; the chart's probes are unaffected.

v0.13.x → v0.14.0

The largest set of breaking changes this project will make. They are grouped here rather than spread over several releases on purpose: the surfaces freeze at 1.0, and after that every one of them costs a major version.

Read The gRPC service was renamed first. It breaks every client at once, including easyp itself, and no other item matters until that one is handled.

The gRPC service was renamed

The proto package and the service both changed name:

BeforeAfter
Packageapi.generator.v1easyp.generator.v1
ServiceServiceAPIGeneratorAPI
Method path/api.generator.v1.ServiceAPI/GenerateCode/easyp.generator.v1.GeneratorAPI/GenerateCode
Go import…/service/api/generator/v1…/service/api/easyp/generator/v1

The old package name carried no vendor prefix and collides with anything else called the same in a shared schema registry; ServiceAPI is two words for "thing". Both are frozen forever at 1.0, which is why they move now.

A client that is not rebuilt gets Unimplemented on every call. The service does not answer the old method path. That includes easyp itself: remote: plugins in easyp.yaml reach this service over gRPC, so an easyp older than the release that tracks this change cannot generate against a v0.14.0 server. Upgrade easyp alongside the service.

api and sdk are separate Go modules

Both carried an Apache-2.0 LICENSE, but Go tooling reads licences per module, not per directory — so a client importing the SDK had its licence scanner report the service's Elastic-2.0 on their own build.

require (
    github.com/easyp-tech/service/api v0.14.0
    github.com/easyp-tech/service/sdk v0.14.0
)

go get github.com/easyp-tech/service no longer supplies either. They are tagged as api/v0.14.0 and sdk/v0.14.0.

PluginsResponse.total is gone

It held the number of plugins in this page, which plugins.length already says, under a name that promises the size of the collection. Field number 2 is reserved and will not be reused.

UpdatePlugin takes a field mask

update_mask selects what to replace: config, tags, or both. An omitted mask replaces both, exactly as before — existing callers need no change.

It exists because config was validated before anything else and an absent config was an empty one, so changing a tag meant resending the plugin's whole command line. An unknown path in the mask is rejected rather than ignored.

A plugin's command[0] must be inside plugins_dir

The check used to accept a command where any element resolved inside the plugins directory, so ["/bin/sh", "-c", "…", "/plugins/x"] passed on the strength of its last argument while /bin/sh was what ran. Arguments are still unconstrained; only the executable is checked.

A registration whose command[0] is a wrapper script outside plugins_dir now fails with INVALID_ARGUMENT. Re-register it with the plugin binary as command[0] and the wrapper's work expressed in arguments, or move the wrapper inside the plugins directory.

An archive could ship its plugin entrypoint as a symlink to /bin/sh: the link file landed inside plugins_dir, so every containment check was satisfied. Such an archive is now refused at unpack with unsafe path in archive. Links that stay inside the archive still work.

UpdatePlugin recomputes the archive checksum

Creating a plugin records the sha256 of its archive; updating one did not, and because the checksum lives inside the config document, replacing the config dropped it. An empty expected checksum means "nothing to check", so one UpdatePlugin with a hand-written config permanently disabled verification of that plugin's binary — silently.

Update now recomputes it, as Create does. A plugin whose verification had been switched off this way is checked again on its next download, and if the object in storage no longer matches what was registered it fails with plugin archive checksum mismatch instead of running. That is the correct outcome, but it can surface as a plugin that "suddenly broke": find out why the object changed, then restore the original archive or delete the version and push and register it again (registering over an existing version is skipped).

Error messages changed shape

Statuses used to carry the service's internal call chain — api.app.Generate: c.registry.Get: ensureBinary: …. They now carry only the terminal cause, and every non-OK status gains a google.rpc.ErrorInfo with a stable reason and domain easyp.tech.

A client matching on message text will break. Match on reason instead: NOT_FOUND, INVALID_PLUGIN_NAME, INVALID_CONFIG, GENERATION_FAILED, SERVER_OVERLOADED, ALREADY_EXISTS, MAX_PLUGINS_EXCEEDED, SHUTTING_DOWN, STORAGE_UNAVAILABLE, BINARY_NOT_UPLOADED, FEATURE_DENIED, DEADLINE_EXCEEDED, CANCELED, INTERNAL. Adding a reason is a compatible change; changing what one means is not.

Malformed plugin configurations also return INVALID_ARGUMENT rather than INTERNAL. They were the caller's mistake reported as the server's fault.

Go SDK

  • ListPlugins(ctx, filter ...PluginFilter) → ListPlugins(ctx, ...ListOption). Pass a filter as sdk.WithFilter(sdk.PluginFilter{…}).
  • The client no longer re-filters results it received; the server already did.
  • Transient errors are Unavailable only. ResourceExhausted and DeadlineExceeded are no longer retried: the first is the service saying it has no capacity (or that a licence ceiling was reached, which no wait clears), and the second re-runs a generation that already spent the full timeout. A caller who wants either retried can add an interceptor.
  • UpdatePlugin and DeletePlugin exist.
  • WithRetryMaxDelay and WithCreatePluginTimeout exist.
  • A large WithMaxRetries no longer panics inside the interceptor: the backoff shift overflowed past roughly attempt 40 and rand.Int64N rejects the result.

The MCP endpoint lost the easyp.yaml schema tool

plugins_list remains; the schema helpers are gone. They came from easyp/mcp/easypconfig, and taking that package meant taking the easyp module — which imports this service's own generated API in order to call it. A service that cannot compile without its own client is the wrong shape, so the dependency was removed rather than worked around.

This only affects deployments that set mcp.enabled=true; the endpoint is off by default.

v0.13.0 → v0.13.1

The service is unchanged; this release exists to ship chart 0.3.2.

Chart 0.3.1 was published with its runbookBaseUrl pointing into .spec/, which was deleted days after the release — so every alert it renders links to a 404, which is the page someone opens at 3am. A published chart cannot be corrected in place, so the fix needed a new version:

helm upgrade easyp oci://ghcr.io/easyp-tech/charts/easyp-service --version 0.3.2

Nothing else changed in the chart, so an upgrade with unchanged values only replaces the runbook links.

v0.12.x → v0.13.0

Six changes need action before the upgrade, and one of them is silent — read Listing plugins even if you change nothing else.

The configuration loader also became strict in this release: an unrecognised YAML key now refuses the start instead of warning and continuing on defaults. That is what turns the renames below from a silent degradation into a message naming the key and its line. Two of them arrive as errors that spell out the fix; the rest are environment variables, which no schema can catch.

Check a configuration before deploying it:

easyp-svc config validate --cfg /path/to/config.yml
easyp-svc config print --cfg /path/to/config.yml --origin --changed

Environment variables renamed

OldNewWhat happens if you miss it
TELEMETRY_S3_URL, TELEMETRY_S3_ENDPOINT, TELEMETRY_S3_ACCESS_KEY_ID, TELEMETRY_S3_SECRET_ACCESS_KEYOBS_S3_URL, OBS_S3_ENDPOINT, OBS_S3_ACCESS_KEY_ID, OBS_S3_SECRET_ACCESS_KEYThe observability stack refuses to start: required variable OBS_S3_… is missing a value
TELEMETRY_OTEL_EXPORTER_OTLP_ENDPOINTTELEMETRY_OTLP_ENDPOINTThe service starts and exports nothing — no traces, no metrics, one warning

The OBS_S3_* group belongs to Loki, Tempo, Mimir and Pyroscope, not to the service: they were named after the wrong thing. The standard OTEL_EXPORTER_OTLP_ENDPOINT is now read as an alias of the canonical name, so a collector-injected variable works, and the URL form (http://host:4317) is accepted alongside bare host:port.

license.public_key removed

One setting, not two. Move the key into license.public_keys under its key id, or under "*" to verify a token whose key id matches nothing else:

license:
  public_keys:
    "2026-08": "<64 hex characters>"

The environment spelling is LICENSE_PUBLIC_KEYS="<kid>:<hex>,<kid>:<hex>". LICENSE_PUBLIC_KEY (singular) is gone and is no longer passed through by docker-compose. A deployment that only sets the singular form runs as community — no audit, four workers, ten plugins — without an error, because an environment variable that reaches nothing cannot be diagnosed. The YAML spelling is caught at startup and names the fix.

db.driver removed

Postgres is the only driver this service has ever supported and the migrations hard-code it. Delete the key; the startup error says the same.

The MCP endpoint is off by default

:8083 used to be served unconditionally. It is read-only and exposes nothing the anonymous gRPC reads do not, but it sits outside the gRPC interceptor chain — no TLS, no rate limit, no audit — so it is now a decision:

mcp:
  enabled: true

Environment: MCP_ENABLED=true. Helm: --set mcp.enabled=true, which publishes the container port, the Service port and the config together. With it off the service logs MCP endpoint disabled; set mcp.enabled to serve it at startup and nothing listens on the port.

Listing plugins returns 100 rows now

Plugins is paginated. A client that sends no page_size gets the first 100 plugins instead of all of them — the call still succeeds, so a registry with more than 100 entries quietly looks smaller than it is. Nothing in the wire format broke; what changed is how much one response carries.

  • page_size defaults to 100, is capped at 1000, and out-of-range values are normalised rather than rejected.
  • next_page_token is empty on the last page; pass it back as page_token with the same filters to continue.
  • total is the number of plugins in this response, as it always was.
  • The Go SDK's ListPlugins walks every page itself, so SDK callers see the complete list and need no change.

The listing is now ordered by (group, name, version) — it had no ORDER BY before, despite the documented promise of one.

Deployment

Helm chart 0.3.1 — upgrading rolls the pod once even with unchanged values: the chart-managed secret is now hashed into the pod template, so rotating a write token or the DSN actually restarts the service. Previously it did not, and the new token was rejected until someone restarted by hand. The value ports.metrics was also renamed to ports.metric (singular, matching server.port.metric); an override using the old spelling is silently ignored by Helm, so check yours.

Released charts are published alongside the image:

helm upgrade easyp oci://ghcr.io/easyp-tech/charts/easyp-service --version 0.3.1

docker-compose — the network now declares an ip_range, so that traefik's fixed address cannot be handed to another container while the proxy is down. Applying it recreates the network: the stack is down for a few seconds, and docker compose up -d alone is not enough — run down first, or the proxy fails to start with Address already in use and nothing listening to explain it.

Documentation

The .spec/ directory was removed. Runbooks moved out of the repository and are now published at Runbooks, which is where the runbook_url on every alert points. Links into .spec/ from anywhere else are dead.

On this page