Repository navigation
Releases
v0.17.0
Changed: a backend service's custom request headers replace the client's
A backend service's customRequestHeaders now replace every copy of their names that the request
already carries, whether the client sent it or a URL map header action added it (#1233). Before,
they were added beside those copies, so a client could send its own X-Client-Region and the
backend saw both. Two entries with the same name both still arrive. customResponseHeaders are
unchanged: they are still added beside the backend's copy.
A backend that read a client's copy of a header the load balancer also sets now sees only the load
balancer's, as on GCP.
Changed: Product images refreshed to GCP's November 2026 versions
The emulator now runs the versions GCP serves as of November 2026 (#895). The runbook for these
refreshes is docs/product-images.md.
-
Cloud SQL: PostgreSQL 14.24, 15.19, 16.15 and 17.11. PostgreSQL 18.6 is unchanged.
maintenanceVersionnow ends in.R20261013.02_04. An existing instance moves to the new minor
version the next time its container is created, and itsdatabaseInstalledVersionand
maintenanceVersionthen report it. The refresh counts as maintenance already applied
(ADR 0084). -
GKE: 1.37.2-gke.100 is added. The release channel defaults change to match GKE:
Channel v0.16.0 v0.17.0 Offers Rapid 1.37.1 1.37.1 1.37, 1.36, 1.35 Regular (and no channel) 1.36.5 1.36.4 1.37, 1.36, 1.35 Stable 1.35.9 1.35.8 1.36, 1.35 Extended 1.35.9 1.36.4 1.37, 1.36, 1.35 The Regular and Stable defaults move down one patch, as GKE's did. A new cluster that names
no version gets the new default. Existing clusters keep their version, since none is retired in
this release. A test that expected1.36.5-gke.100for a cluster created without a version
needs updating. -
Add-ons: Managed Service for Prometheus v0.17.2 and the Secrets Store CSI driver v1.6.2.
-
Managed emulators: Firestore, Datastore and Bigtable run google-cloud-cli 594.0.1. The
Spanner emulator is unchanged. Firestore and Datastore data saved by v0.16.0 loads unchanged.
Changed: DNS forwarding follows the host's nameservers and falls back to a public one
Names outside every Cloud DNS zone are forwarded to the host's nameservers as before, but (#1196,
ADR 0089):
- A change to the host's
resolv.conf(a VPN, a network change) takes effect without a restart.
Before, it was read once at start. - A nameserver that doesn't answer is skipped for 30 seconds, and the forwarding no longer waits
2 seconds on each dead nameserver in turn. - When none of the host's nameservers answer, the query goes to
8.8.8.8, unless the Instance runs
with--offline. With--dns-no-forward, nothing is forwarded, as before.
gcpemu doctor gains a DNS forwarding check that names the host's nameservers when forwarding
fails, and /_emu/v1/dns/forwarding reports them.
Changed: Pub/Sub refuses Avro messages that declare huge maps or arrays
Avro BINARY validation, on publish and in ValidateMessage, now refuses a message whose map or
array declares more items than a message can carry, with INVALID_ARGUMENT (#1199). Before, a
small message that declared 2^40 items was accepted, or ran the emulator out of memory. A bytes
or string field may now be up to 10 MB, the publish limit. Before, more than 1 MiB was refused.
A GKE cluster's DNS endpoint
A cluster created or updated with controlPlaneEndpointsConfig.dnsEndpointConfig now reports a
DNS endpoint, gke-<hash>-<project number>.<location>.gke.goog, and serves it to host clients
(#1229, ADR 0091). gcloud container clusters get-credentials --dns-endpoint and kubectl then
work against it, with IAM's container.clusters.connect checked on each request. To use it:
- Run
gcpemu dns install --suffix gke.goog. It isn't a default resolver route, since once it is
routed, real GKE DNS endpoints stop resolving on that machine. - Run
gcpemu ca install. gcloud writes no CA into a DNS endpoint kubeconfig. - On Linux, allow port 443:
sysctl net.ipv4.ip_unprivileged_port_start=443.gcpemu doctorsays
so when it's needed.
container.clusters.connect is added to roles/container.clusterViewer, roles/container.viewer
and roles/viewer, as on GCP. See "A cluster's DNS endpoint" in the README.
Changing a cluster's control plane endpoints with UpdateCluster now works in place. Before, it
returned UNIMPLEMENTED. ipEndpointsConfig.enabled and enablePublicEndpoint now read back what
was set, instead of always true, so OpenTofu no longer plans a change to them on every run. A
cluster created without an external address still can't turn on its public endpoint.
GKE nodes keep free space on the runtime's disk
All of an Instance's GKE nodes keep their images on the container runtime's one disk, and each
node only collected images when its own boot disk filled. Five nodes could fill Docker Desktop's
disk before any of them collected (#1227). Now, when the runtime's disk has less than 10 GiB free,
the least recently used images that no node needs are removed across all clusters until 15 GiB is
free. Images in use, pinned or preloaded are never removed. Set the floor with
gkeImageGcFreeSpace, --gke-image-gc-free-space or GCPEMU_GKE_IMAGE_GC_FREE_SPACE, and turn it
off with 0.
Other fixes
- The binaries and images are built with Go 1.27.4, which fixes a crash an HTTP/1 client could
cause in the server (GO-2026-6859, CVE-2026-97054). v0.16.0 was built with Go 1.27.3 (#1198). - setup-gcpemu no longer ships
unzip-streamand the 98 packages it pulled in, one of which
declared no licence (#1202). setup-gcpemu only uploads artifacts, so nothing it does changes.
What's Changed
- chore(deps): Renovate keeps dependencies current, except Product images and checksum pins (#896) by @linuxuser586 in #1192
- docs: Helper image term; Renovate PRs use chore(deps) by @linuxuser586 in #1195
- fix(dns): forwarding follows the host's resolvers, skips dead ones, falls back to a public one (#1196) by @linuxuser586 in #1197
- feat(ci): scan for vulnerabilities and licences (#1165) by @linuxuser586 in #1204
- fix(deps): build with Go 1.27.4 for the net/http MaxBytesReader crash (#1198) by @linuxuser586 in #1206
- feat(ci): licence check allows BlueOak-1.0.0 (#1200) by @linuxuser586 in #1207
- fix(deps): move Avro decoding to iskorotkov/avro (#1199) by @linuxuser586 in #1208
- fix(deps): stub unzip-stream so setup-gcpemu ships no unlicensed buffers (#1202) by @linuxuser586 in #1209
- feat(ci): weekly image report also scans Helper images (#1203) by @linuxuser586 in #1210
- fix(ci): vulncheck and licences run on PRs that change their paths (#1215) by @linuxuser586 in #1216
- feat(devtool): report stale scan exceptions (#1205) by @linuxuser586 in #1212
- chore(deps): update docker images by @renovate[bot] in #1214
- chore(deps): update dependency sigstore to v5.0.1 by @renovate[bot] in #1213
- chore(renovate): npm releases wait a day, as pnpm 12 requires (#1218) by @linuxuser586 in #1219
- chore(deps): update github actions by @renovate[bot] in #1221
- chore(deps): update dependency com.google.cloud:libraries-bom to v26.94.0 by @renovate[bot] in #1220
- chore(deps): update go modules by @renovate[bot] in #1217
- chore(deps): update module golang.org/x/vuln to v1.10.0 by @renovate[bot] in #1222
- chore(deps): update console packages by @renovate[bot] in #1218
- fix(ci): console-e2e diagnostics tolerate a missing container events log by @linuxuser586 in #1223
- feat(scan): weekly scan judges licence scan exceptions stale (#1211) by @linuxuser586 in #1224
- fix(gke): node image GC keeps a free-space floor on the Runtime disk (#1227) by @linuxuser586 in #1230
- docs: Rolling issue term and triage of scan findings no tag clears (#1228) by @linuxuser586 in #1232
- feat(gke): DNS-based control plane endpoint and in-place endpoint updates (#1229) by @linuxuser586 in #1231
- fix(lb): custom request headers replace a client's copies (#1233) by @linuxuser586 in #1234
- feat: Product image refresh to GCP's November 2026 versions (#895) by @linuxuser586 in #1235
- docs: Docker Desktop 4.100.1 supports VLAN (8021q) by @linuxuser586 in #1238
- docs: release notes for v0.17.0 by @linuxuser586 in #1236
New Contributors
Full Changelog: v0.16.0...v0.17.0
v0.16.0
Changed: Cloud Storage refuses uploads outside their allowed size
- An XML API
PUTwithx-goog-content-length-range: MIN,MAXwhose body is outside that inclusive
range now fails with400 EntityTooLargeor400 EntityTooSmall(#1175). This applies whether
the request is signed, uses an HMACAuthorizationheader, or is unsigned. Before, the object was
stored and the request got200. A malformed header is ignored. So is the header on copies and on
resumable or multipart part uploads. - A POST policy upload outside the policy's
content-length-rangeis now refused before anything is
stored (#1185). Before, the object was stored and then removed again. In a versioned bucket, that
cleanup also deleted the live version. A file that is too small now getsEntityTooSmall, as in
Cloud Storage. Before, it gotEntityTooLarge.
Clients that sent a range their own uploads broke now get the 400 that Cloud Storage returns.
Changed: a GKE cluster on a Retired version is moved off it when brought up
When an Instance starts, or restores a State snapshot, a control plane or node pool on a Retired
version (one the emulator no longer ships) is upgraded before the cluster comes up (#1166,
ADR 0085). Before, such a cluster went to ERROR with unknown version. The control plane moves to
the newest patch of the oldest supported minor above its version. It never moves down. Each node
pool moves the same way, but never past the control plane. autoUpgrade: false and maintenance
exclusions don't prevent the move. The move is recorded as DONE UPGRADE_MASTER and
UPGRADE_NODES Operations and logged as a warning. The moved pools' nodes are recreated on the new
image.
No version is retired in this release, so no cluster moves yet. A later release that drops GKE
versions (#895) will move clusters on them.
Changed: host clients reach GKE pods from the Host address
A connection from the host to a cluster Service at its Loopback alias now reaches the pod from the
subnetwork's Host address (#1177, ADR 0088). A policy that admits the host, such as Istio
remoteIpBlocks: [<Host address>/32] or a NetworkPolicy ipBlock, now matches it. Before, the pod
saw a node or bridge address. The emulator picks the endpoint itself (ready endpoints first, then
serving terminating ones, with ClientIP session affinity), so internalTrafficPolicy and topology
hints don't apply to host clients.
A node whose kernel can't send from the Host address still connects, from its own address.
gcpemu doctor warns about such nodes. Nodes created by an earlier release keep working through the
ClusterIP until they are recreated.
Changed: gcpemu reset also resets the clock and empties the kubeconfigs
gcpemu resetnow sets the Emulator clock back to its base: real time, or a Deterministic
Instance's own clock (#1172, ADR 0087). A test suite that advanced the clock and expected it to
stay ahead after a reset will see it go back.- A Reset, and so a State snapshot restore, now empties the Admin kubeconfig and the LAN kubeconfig
(#1170). Before, they still listed the destroyed clusters. After a restore, they fill again as the
restored clusters come up.
Changed: gcpemu ca install replaces the Instance's earlier CAs
On macOS (System keychain) and Windows (user Root store), ca install now removes earlier roots
with the same Instance name before it adds the current CA (#1174). These roots are left behind by a
wiped data directory or a CA rotation. ca uninstall removes all of them. The plan lists each
delete before it asks for confirmation. On Windows, each delete adds a confirmation dialog. Roots of
other Instances are never touched. The match is on the exact name, so x doesn't match x2.
Firefox and Chrome NSS databases on Linux get the same cleanup.
gcpemu time show and gcpemu time reset
gcpemu time show prints the Emulator clock and its offset without moving it. gcpemu time reset
sets the clock back to its base (#1172, ADR 0087). It never goes earlier than the base. Setting the
clock back only moves it. Deletions, expiries and retention that an advance set off stay done. Use a
State snapshot restore to undo them. /_emu/v1/time gains GET and POST /reset, and the
/advance response gains offset.
Other fixes
gcpemu statusmarks Resolver routes that are gone from the host's resolver, and says how to fix
them (#1176).status --jsongainsresolverRoutes.missing.- A Google-managed certificate is served before it reads
ACTIVE, so a client that connects as soon
as it readsACTIVEno longer getstls: internal error(#1184). gcpemu env's help saysKUBECONFIGdoesn't promise that a cluster runs (#1168, ADR 0086).- When a left-behind
endpoints.jsonnames a port held by a server that speaks first, such as
sshd,gcpemu startandca rotatenow go ahead every time. Before, they sometimes refused
and asked for the file to be removed (#1162).
What's Changed
- test(gke): TestRecoverRestoresOtherError holds the restore open through a hook (#1161) by @linuxuser586 in #1163
- fix(cli): a checkConn's write reports the read's verdict (#1162) by @linuxuser586 in #1164
- docs: Product image terms and ADR 0084 (#895) by @linuxuser586 in #1167
- docs: Retired version term and ADR 0085 (#1166) by @linuxuser586 in #1169
- docs: Admin kubeconfig wording and ADR 0086 (#1168) by @linuxuser586 in #1171
- test(sql): Operation lock tests hold the first Operation open through a hook (#1156) by @linuxuser586 in #1173
- fix(cli): ca install replaces the Instance's earlier CAs (#1174) by @linuxuser586 in #1178
- docs(cli): env's help says KUBECONFIG promises no cluster (#1168) by @linuxuser586 in #1179
- feat(gke): move clusters off retired versions when brought up (#1166) by @linuxuser586 in #1180
- fix(gke): reset empties the Admin and LAN kubeconfigs (#1170) by @linuxuser586 in #1182
- feat(cli): time show and time reset; reset clears the clock offset (#1172) by @linuxuser586 in #1181
- fix(cli): status marks Resolver routes gone from the host (#1176) by @linuxuser586 in #1183
- fix(gcs): refuse a PUT whose body is outside x-goog-content-length-range (#1175) by @linuxuser586 in #1187
- fix(lb): serve a managed certificate before it reads ACTIVE (#1184) by @linuxuser586 in #1189
- feat(gke): host clients reach pods from the Host address (#1177) by @linuxuser586 in #1188
- fix(gcs): refuse a POST policy upload outside content-length-range before storing it (#1185) by @linuxuser586 in #1190
- docs: release notes for v0.16.0 by @linuxuser586 in #1191
Full Changelog: v0.15.0...v0.16.0
v0.15.0
Changed: Cloud SQL backup settings are checked the way Cloud SQL checks them
Backup retention now defaults by edition and is range-checked (#1044):
ENTERPRISEdefaults to 7 retained backups and 7 days of transaction logs.ENTERPRISE_PLUS,
which includesPOSTGRES_16and later with no edition, defaults to 15 and 14. Before, every
edition got 7 and 7.transactionLogRetentionDaysmust be 1–7 on Enterprise and 1–35 on Enterprise Plus,
backupRetentionSettings.retainedBackupsmust be 1–365, and the log days can't exceed the
retained backups (7 and 7 is fine, 7 and 1 is not). An explicitretainedBackups: 0means the
edition's default.backupConfiguration.startTimemust be 24-hourHH:MM, such as07:00(#1059). Before, a value
such as7amwas stored, and the instance never took an Automated backup.
A setting that breaks these rules fails with 400 INVALID_ARGUMENT on insert, patch and update.
Stored values are never rewritten, but an instance that already holds such values fails every
patch, even an unrelated one, until its retention is fixed. Local Terraform or OpenTofu that relied
on the looser checks now fails on apply, as it would against GCP. Enterprise Plus instances created
without retention settings keep more backups and WAL than before, so they use more disk.
Changed: a Cloud SQL Operation fails while another one runs
A Cloud SQL instance now has the Operation lock GKE clusters already have (#979). A request that
would start an Operation while another runs fails with 409 operationInProgress instead of
queueing behind it, as Cloud SQL does. Scripts that fire several changes at one instance back to
back need to wait for each Operation to finish.
Changed: Cloud SQL dumps and archived WAL are gzipped
Backups and State snapshots are now stored as .sql.gz and streamed through the emulator, so a
dump is never held in memory whole (#1043). With point-in-time recovery, each archived WAL segment
is stored as <segment>.gz, which makes the WAL archive several times smaller (#1048, ADR 0072).
gcpemu still reads existing plain .sql dumps and WAL segments.
Don't downgrade below v0.15.0 with a data directory this release has written to. v0.14.0 reads
only plain .sql dumps and WAL, so it can't find or restore the gzipped ones.
Changed: the GKE Node limit is a setting, and the Instance reports it
- The Node limit is now an ordinary setting:
--gke-max-nodes,GCPEMU_GKE_MAX_NODESor
gkeMaxNodesin the config file, with a default of 5 (#1068). A value that isn't a positive
integer, such asabc,8or0, now failsgcpemu startwith an error that names it.
Before, any such value silently meant 5. /_emu/v1/infoandgcpemu statusreport the limit in force asgke.nodeLimit(#1065).- The Instance estimates the memory its GKE nodes need, using the README's "GKE sizing" formula.
When the estimate passes the Runtime machine's memory, the Instance logs a warning,gcpemu status
prints agke overcommitted:line, and/_emu/v1/infohasgke.overcommit(#1070). Nodes are never refused for this.
Changed: the CA injector refuses pods it can't give the Instance CA
The GKE webhook that gives pods the Instance CA now uses failurePolicy: Fail (#1053). If it can't
prepare the namespace's gcpemu-ca-bundle ConfigMap, it refuses the pod with a 503, and the pod's
controller retries. Before, it admitted the pod without the CA, and the pod's first Google API call
failed with x509: certificate signed by unknown authority. kube-system pods are always admitted unchanged, and most admissions no longer
call back into the cluster's API server, so the webhook no longer times out under load.
Changed: an update mask that names one map key changes only that key
An update mask path such as labels.env now sets or removes that one key, as GCP does (#1062,
#1086–#1090). Before, it replaced the whole map, and Artifact Registry also mangled the key's case. This applies
to Artifact Registry repositories (labels, cleanup_policies), Secret Manager, Pub/Sub,
Certificate Manager, IAM workload identity pool providers (attributeMapping) and Cloud Build.
A key path on a field that isn't a map is now INVALID_ARGUMENT.
Changed: CLI commands act only on a confirmed Live Instance
Every command that needs an Instance now asks the Instance at its address first, and acts only when
it answers with this data directory's Instance ID (#1024, ADR 0066). Before, a left-behind
endpoints.json sent commands to whatever answered at that address. gcpemu start goes ahead only
once a Live Instance is ruled out. gcpemu stop reports success only for an exit it confirmed, and
a stop that times out names what it waited for (#998, #999).
Changed for contributors: the build uses just, not Task
The build moved from Task to just ≥ 1.56.0 (#932, ADR 0061). Every recipe
keeps its name (just build, just vet, just e2e, …), except the ones that took arguments:
| Task | just |
|---|---|
task release VERSION=v1.2.3 |
just release v1.2.3 |
task image-check IMAGE=gcpemu:check |
just image-check gcpemu:check |
task echo:dist / task echo:image-check IMAGE=x |
just echo-dist / just echo-image-check x |
task conformance:record |
just conformance-record |
task prerelease RUNTIMES=a,b IMAGE=x |
just prerelease a,b x |
task generate GOOGLEAPIS=latest |
just generate latest |
There is no task shim. just doctor checks your toolchain.
Cloud SQL takes daily Automated backups
A running instance with backups enabled now takes an Automated backup once the Emulator clock
passes backupConfiguration.startTime each day, and keeps the newest retainedBackups of them
(#1038, ADR 0069). With point-in-time recovery, the backup also takes a Base backup, so old WAL is
dropped. Missed days produce one backup, not one per day, and an upgrade doesn't trigger one.
Artifact Registry runs cleanup policies and frees unused layers
A Registry cleanup pass now runs at start and every minute (on gcpemu time advance in a
Deterministic Instance). It applies standard repositories' cleanup policies (#1039), and frees
layers and uploads that nothing refers to (#1045). Deleting a version now frees the layers only it
used.
GKE
- Pods behind a NEG get the readiness gate
cloud.google.com/load-balancer-neg-ready, so a rollout
waits until the load balancer finds each new pod HEALTHY (#1036, ADR 0071). Before, a rollout
could serve503 failed_to_pick_backend. - Image garbage collection on each node is measured against its node pool's boot disk size, not the
runtime's disk, which under Docker Desktop is as big as the host's (#1052, ADR 0073). - A cluster counts its Cluster server's exits and failed restarts in one
UNAVAILABLEcondition,
visible throughclusters.getand the console (#1061). - A cluster delete that fails leaves the cluster in
ERROR, and the delete resumes on the next
start (#1145). A node removal cut off by a cluster delete finishes first (#1144). - A node readiness timeout says what each node was doing (#971).
gcpemu.log rotates by size
A detached Instance now keeps gcpemu.log under 100 MB, plus three older files, gcpemu.log.1 to
gcpemu.log.3 (#1040). gcpemu logs reads them oldest first.
Other fixes
- On macOS, Public roots come from the keychain and never include another Instance's CA (#1138).
- An Instance shuts down within its deadline: the API gateway, Services' own HTTP servers, Cloud
DNS and Cloud SQL stop by force once their time is up, and Teardown saves before stopping
Services (#1034, #1115–#1118). /_emu/v1/infono longer waits on the container runtime (#1025).- The Web console re-sends a write that got no response (#944), and a page whose script or
stylesheet failed to load reloads itself (#948, #969). - The Web console can download a Secret version's value with its exact bytes (#964). Copy can
change line endings on Windows.
What's Changed
- docs: ADR 0060, the Web console's bundle never overwrites a committed file (#931) by @linuxuser586 in #937
- fix(console): the Web console's build never overwrites a committed file (#931) by @linuxuser586 in #938
- test(console): the Workloads test waits for every kind's list by @linuxuser586 in #940
- docs: ADR 0062, the Web console re-sends a write that got no response, if repeating it is safe (#944) by @linuxuser586 in #945
- fix(console): the Web console re-sends a write that got no response (#944) by @linuxuser586 in #946
- docs: ADR 0063, the Web console reloads a page whose files failed to load (#948) by @linuxuser586 in #949
- test(console): the Cloud Build tests filter the Request log to their entries (#942) by @linuxuser586 in #950
- docs: ADR 0017 covers Vitest, and a timing flake fix shows a reproduction (#955) by @linuxuser586 in #956
- fix(console): a page whose script or stylesheet failed to load reloads itself (#948) by @linuxuser586 in #953
- ci(console): console-e2e names the tests that passed only on retry (#943) by @linuxuser586 in #951
- test(console): the IAM bucket policy test waits for what the URL shows (#947) by @linuxuser586 in #954
- test(console): the Pub/Sub seek test fills a whole-minute time (#952) by @linuxuser586 in #963
- test(console): every test run delays navigations, so reads that race one fail (#955) by @linuxuser586 in https://github.com/l...
v0.14.0
Changed: Host mode's hostnames serve only public APIs
A request whose Host is one of Host mode's hostnames (a Service's or Delegated API's host, or
www.googleapis.com) never reaches the Admin API or the Web console any more: /_emu/… and
/console… there are public API paths, and www.googleapis.com/console answers Not Found (#890,
ADR 0052). Before, firestore.googleapis.com/_emu/… was forwarded to the External emulator with
the Admin token cookie, and www.googleapis.com served the console.
Reach the Admin API and the Web console at the API gateway's own address, as gcpemu env prints
it. A bucket named console is now reachable through Host mode on storage.googleapis.com.
Changed: the API gateway drops cookies from public API requests
The Web console now sends same-origin cookies, so it works behind an Authenticating proxy such as
oauth2-proxy on the same origin (#888). In turn, the API gateway deletes Cookie from every request
that isn't an Admin API or Web console request, and from every request a Linked Instance forwards
(ADR 0052). Neither the Admin token nor a proxy's session reaches a Service, a cluster's
kube-apiserver, an External emulator or another Instance. No public API reads cookies: a Principal
comes only from an access token. Load balancer session affinity cookies are unaffected.
Changed: Cloud CDN compression follows GCP's rules
With compressionMode: AUTOMATIC:
- Cloud CDN serves Brotli (
br) when the client accepts it, and gzip otherwise (#907). A coding
whoseqweight is 0 is refused, and a refusal beats an acceptance of the same coding. - Only a 200 with a
Content-Lengthfrom 1 KiB to 10 MiB is compressed, and only for GCP's
documented types: its exact list plustext/*,application/*+json,application/*+xmland
application/*mpegURL(#908). A response withoutContent-Lengthis no longer compressed. - A compressed response sends
Accept-Ranges: none, and a GET answered from a cached object
ignoresRangeandIf-Rangewhen it will be compressed: the client gets 200 with the whole
compressed object instead of 206 (ADR 0054). A response that won't be compressed still gets its
range. - A cached object stored without a
Content-Typeis answered without one, and so isn't
compressed.
Changed: external addresses never leave the emulated network
A pod could reach an address the emulator hands out as public on the real internet, where someone
else owns it. Now it can't:
- While an external forwarding rule exists, its address always has a route: via the Edge relay
while that serves it, andunreachableotherwise (#912, ADR 0055). Before, while the Edge relay
wasn't serving it, or after a failed update, a pod's traffic to34.120.0.1went out through
Cloud NAT to the internet, and a real server answered with its own certificate. - Every NAT egress proxy and every GKE node with an external IP holds
unreachableroutes for the
External address pools,34.16.0.0/12and34.120.0.0/14, and for each reserved external
address outside them while it is reserved (#917, ADR 0059). That covers a reserved address with
no forwarding rule, a NAT IP, and a deleted forwarding rule's ephemeral address.
VPC workloads can no longer reach real hosts in those two ranges. Clients on the host are not
affected. With the Offline sink on, a client of these addresses fails at once instead of being
recorded as internet egress.
Changed: Podman on Linux and the Registry relay
Rootless Podman on Linux no longer gets a Registry relay (#923, ADR 0043). It pushes and pulls in
the host's network namespace, where the registry's loopback endpoint already reaches it, so a relay
there only collided with the Instance's own registry listener. Rootless Docker keeps its relay.
Every Podman on a Linux host is now told to add the [[registry]] entry to the host's
registries.conf: ~/.config/containers/registries.conf when rootless, and
/etc/containers/registries.conf when rootful, including a rootful Podman that does run the relay
(#934). Before, gcpemu doctor and the Instance's log said to edit it inside a Podman machine with
podman machine ssh. Podman machine on macOS and Windows keeps that step.
VM relay detection is right on more hosts
- On Windows and macOS, every container runtime is a VM runtime (#913, ADR 0056). Before, a host
adapter that happened to hold a services network's gateway, such as WSL'svEthernet (WSL),
made gcpemu decide the runtime wasn't a VM: Host attachment bound Offered ports on the host and
the Registry relay turned itself off. - On Linux, a runtime is on the host only when it doesn't describe itself as Docker Desktop or
rootless and its own bridge holds the network's gateway (#915, ADR 0058). Before, a bind on the
gateway decided, so a VPN, a libvirt bridge such asvirbr0, or a second runtime's bridge
(Docker Desktop for Linux beside Docker Engine) could hide a VM runtime.gcpemu doctor, Host
mode and the Registry relay now make the same decision as the VM relay, and Host mode names
Podman's real bridge interface.
GCPEMU_VM_RELAY still forces the relay on or off.
GKE reissues the Cluster server's serving certificate on every start
The Cluster server's serving certificate is now reissued on every start, and a cluster goes
RUNNING only once the server's certificate names its Public endpoint (#886, ADR 0051). After the
External network moved, a cluster could briefly serve a certificate for its old address; that is
the TestPublicEndpointMoves flake the v0.13.0 release PR listed.
Other fixes
gcpemu doctorreports, andgcpemu prunereclaims, an Instance left by a test that ended, even
while its containers still run; reclaiming it stops itsgcpemuprocess first (#914, ADR 0057).
What's Changed
- docs: ADR 0051, the Cluster server's serving cert is reissued on every start (#886) by @linuxuser586 in #887
- fix(gke): reissue the Cluster server's serving cert on every start (#886) by @linuxuser586 in #889
- fix: the console sends same-origin cookies; the API gateway drops them from public API requests (#888) by @linuxuser586 in #891
- docs: Host mode's hostnames serve only public APIs (#890) by @linuxuser586 in #892
- fix(gateway): Host mode's hostnames serve only public APIs (#890) by @linuxuser586 in #893
- chore: the OCI images build on the current distroless Debian 13 digest (#894) by @linuxuser586 in #897
- ci: Linux jobs run on Ubuntu 26.04 and the SDK suites on Python 3.15 (#894) by @linuxuser586 in #898
- chore(deps): Go modules, the googleapis pin and the plumbing images move to their newest versions (#894) by @linuxuser586 in #902
- chore(deps): the console moves to Node 26 LTS and its packages to their newest versions (#894) by @linuxuser586 in #904
- chore(deps): the compat and e2e tool pins move to their newest releases, and the Java probe to JDK 25 (#894) by @linuxuser586 in #905
- fix(lb): Edge aliases skip and reserve addresses on the lb network; vm-relay back on Ubuntu 26.04 (#900) by @linuxuser586 in #906
- fix(cdn): AUTOMATIC compression serves Brotli when the client accepts it, else gzip (#907) by @linuxuser586 in #909
- fix(cdn): AUTOMATIC compression follows GCP's documented eligibility rules (#908) by @linuxuser586 in #910
- docs: ADR 0055, forwarding rule addresses never leave the emulated network (#912) by @linuxuser586 in #916
- fix(vmrelay): on Windows and macOS every container runtime is a VM runtime (#913) by @linuxuser586 in #918
- docs: ADR 0057, Test data dirs cover CLI-started Instances and reclaim stops their process (#914) by @linuxuser586 in #922
- docs: ADR 0058, on Linux only the runtime's own bridge shows a network is on the host (#915) by @linuxuser586 in #924
- fix(lb): forwarding rule addresses never leave the emulated network (#912) by @linuxuser586 in #919
- docs: ADR 0059, the External address pools never leave the emulated network (#917) by @linuxuser586 in #925
- fix(instance): doctor and prune reclaim ended Test data dirs (#914) by @linuxuser586 in #926
- fix(compute): the External address pools never leave the emulated network (#917) by @linuxuser586 in #927
- fix(vmrelay): on Linux only the runtime's own bridge holding the gateway rules out a VM runtime (#915) by @linuxuser586 in #928
- fix(instance): a stop requested over the Admin API logs its cleanup errors (#920) by @linuxuser586 in #929
- docs: rootless Podman on Linux needs no Registry relay (#923) by @linuxuser586 in #930
- fix(instance): rootless Podman on Linux gets no Registry relay (#923) by @linuxuser586 in #933
- fix(prerelease): host check Instances never outlive a failed check or a killed run (#921) by @linuxuser586 in #935
- fix(instance): rootful Podman on Linux with the Registry relay running gets the host-side step (#934) by @linuxuser586 in https://...
v0.13.0
Changed: under CI=true, only gcpemu run takes the CI defaults
Under CI=true, every Instance used to start Ephemeral, log JSON and serve no Web console. Now only
the CLI applies those defaults (#802, ADR 0039), so an emutest Instance in CI logs text and serves
the console, as it does on a laptop. gcpemu run keeps them, but below the config file,
GCPEMU_* variables and flags: ephemeral: false in gcpemu.yaml now beats the CI default, as
does any other key the file names, zero values included. An empty key still counts as absent.
A CI job that parsed an emutest Instance's logs as JSON now gets text.
A VM runtime's own docker push reaches the registry
On Docker Desktop, Colima, OrbStack and Podman machine, docker push runs inside the runtime's VM,
where localhost:4561 is the VM's own loopback, so pushes to $GCPEMU_REGISTRY failed with
connection refused or i/o timeout (#831). An Instance on the host now starts a Registry relay
there in the background: a container in the VM's host network that listens on 127.0.0.1 at the
registry's port and forwards to the registry (ADR 0043). docker push and docker pull with
localhost:4561/LOCATION-docker.pkg.dev/... now work from the host and the VM alike, with no
insecure-registries entry. The docker save and crane push workaround in the v0.12.0 notes is
no longer needed.
- Podman machine sends
localhostregistries HTTPS. Push withpodman push --tls-verify=false,
or add[[registry]]withlocation = "localhost:4561"andinsecure = trueto
/etc/containers/registries.confinside the machine (podman machine ssh).gcpemu doctor
prints that step. - On a VM runtime the Instance now creates its services network, the VM relay and the Registry
relay as soon as it starts, rather than when a Service first needs containers. Start doesn't wait
for them. - If something in the VM already listens on the registry's port, the Instance starts without the
relay and warns;gcpemu doctorreports it with the fix. - A Containerized Instance needs no Registry relay: publish its registry port at the same host port
(-p 127.0.0.1:4561:4561), and the runtime's owndocker pushanddocker pullreach
$GCPEMU_REGISTRYtoo (#835).
emutest reclaims the Instances of interrupted test runs
A test run killed before its cleanup ran (a CI timeout, Ctrl-C, a crashed go test) used to
leave its containers, networks and volumes behind until gcpemu prune. Now the first emutest
Instance a test process starts first reclaims those of earlier runs whose test has ended: every
Ephemeral Instance's temp dir and every WithTestDataDir dir whose owner lock is free (#846,
ADR 0047). Dirs named with WithDataDir are never swept.
GKE restarts a cluster's exited Cluster server
When a RUNNING cluster's Cluster server exits, the GKE Service now logs a warning with the exit code
and the tail of the k3s log, and starts it again on the same volume (#840, ADR 0045). The API
endpoint and the kubeconfig stay the same. If it exits a third time within 10 minutes, the cluster
becomes DEGRADED, its statusMessage holds the log tail, and /_emu/v1/ready fails naming it.
Stopping and starting the Instance brings a DEGRADED cluster back.
Load balancers serve a URL map's customErrorResponsePolicy
On global EXTERNAL_MANAGED load balancers, a backend status listed in the policy of the matched
route rule, path rule, path matcher or URL map is now answered with the page from the policy's
errorService, a backend bucket or backend service, with overrideResponseCode as its status
(#844, FR-LB-012). Cloud CDN caches the error page under the requested URL. If the page can't be
fetched, the client gets the original status, nothing is cached, and the request log says
custom_error_response_fetch_failed (ADR 0048).
New image: gcpemu-echo
Each release now also publishes docker.io/linuxuser586/gcpemu-echo for amd64 and arm64, signed
like the gcpemu image (#862). It's the Conformance suite's test backend: it answers
/status/<code> with that status and every other request with a JSON report of it, keeping only
the headers named in ECHO_HEADERS, and listens on PORT (8080 by default) so Cloud Run can run
it.
What's Changed
- fix: the Instance's container leaves a VPC container network's second-to-last address to the NAT egress proxy (#806) by @linuxuser586 in #812
- test: Kubernetes conformance on Standard and Autopilot clusters shares one Sonobuoy runner (#754) by @linuxuser586 in #814
- test: Kubernetes conformance in the Autopilot acceptance runs Sonobuoy behind the Escape guard (#810) by @linuxuser586 in #816
- fix: console-e2e caches Playwright's browsers and system packages and bounds their install (#817) by @linuxuser586 in #818
- feat: CI defaults belong to the CLI's config loading, not config.Defaults() (#802) by @linuxuser586 in #819
- fix: a stale bucket list from a Linked Instance no longer overwrites a fresher one (#822) by @linuxuser586 in #821
- fix: no internal address takes a Containerized Instance's Self address on a VPC container network (#811) by @linuxuser586 in #824
- fix: the VM relay refreshes its control port address after each network join (#808) by @linuxuser586 in #826
- docs: Compute Engine (VMs) and Cloud Run are v1.0 Products (#827) by @linuxuser586 in #828
- docs: the v0.12.0 notes no longer say Docker Desktop can push to localhost:4561 (#832) by @linuxuser586 in #833
- docs: ADR 0043, VM-side clients reach the registry through a Registry relay (#831) by @linuxuser586 in #836
- docs: ADR 0044, compute records internal forwarding rule addresses (#825) by @linuxuser586 in #838
- feat: a VM runtime's own docker push reaches the registry through a Registry relay (#831) by @linuxuser586 in #837
- docs: the README says where a VM runtime's own docker push still can't reach the registry (#834) by @linuxuser586 in #839
- docs: a Containerized Instance's Published registry port reaches VM-side clients (#835) by @linuxuser586 in #841
- docs: ADR 0045, the Instance restarts an exited Cluster server (#840) by @linuxuser586 in #847
- docs: record a Read-through for pods as out of scope (#845) by @linuxuser586 in #851
- docs: ADR 0046, the Instance CA publishes an empty CRL on the loopback gateway (#843) by @linuxuser586 in #852
- docs: ADR 0047, emutest reclaims Test data dirs whose test has ended (#846) by @linuxuser586 in #853
- feat(lb): serve a URL map's customErrorResponsePolicy (#844) by @linuxuser586 in #856
- docs: a pod that reads a public bucket gets NoSuchBucket; the label is the fix (#850) by @linuxuser586 in #858
- docs: ADR 0049, the Conformance suite records data-plane Exchanges (#855) by @linuxuser586 in #861
- fix: a Containerized Instance's Published registry port reaches VM-side clients (#835) by @linuxuser586 in #857
- feat: the Instance CA publishes an empty CRL on the loopback gateway (#843) by @linuxuser586 in #864
- fix: a test's Persistent Instance removes its networks and volumes when the test ends (#842) by @linuxuser586 in #866
- fix(gke): restart a RUNNING cluster's exited Cluster server; DEGRADED after a crash loop (#840) by @linuxuser586 in #867
- feat: gcpemu-echo, the Conformance suite's test backend, published with releases (#862) by @linuxuser586 in #868
- fix(emutest): a failed test Instance launch reports its error instead of panicking (#863) by @linuxuser586 in #869
- fix(emutest): a failed start returns its error instead of panicking (#865) by @linuxuser586 in #870
- fix(vmrelay): retry silent control-port pings and probe a stalled relay from the VM (#807) by @linuxuser586 in #873
- fix(vmrelay): recreate a VM relay once when the runtime's port forward stalls (#807) by @linuxuser586 in #874
- feat(emutest): reclaim the Instances of test runs that were interrupted (#846) by @linuxuser586 in #876
- test(emutest): cover the rest of a failed start's cleanup (#820) by @linuxuser586 in #878
- fix(test): unit tests that start a Service listen on free ports (#871) by @linuxuser586 in #879
- fix(emutest): a failed start keeps its Test data dir when its resources remain (#877) by @linuxuser586 in #880
- fix(instance): a failed New releases what it took (#872) by @linuxuser586 in #882
- fix: internal forwarding rule addresses are Held addresses on their subnetwork (#825, #823) by @linuxuser586 in #881
- docs: ...
v0.12.0
Breaking: the registry moved to port 4561, and loopback listeners also take [::1]
On macOS, AirPlay Receiver listens on port 5000 on all interfaces, and it's on by default. macOS
let gcpemu bind 127.0.0.1:5000 beside it, so the Instance started, but a host client that
resolves localhost to ::1 reached AirPlay and timed out. Two changes fix this:
- The Artifact Registry port is now 4561. Host clients push and pull with
localhost:4561/...
or127.0.0.1:4561/....gcpemu env(GCPEMU_REGISTRY),endpoints.jsonand the console's pull
and push commands give the new port. To keep the old port, start with--port ar=5000. A
Persistent Instance needs no other change: on start its GKE nodes and Build agent pull from the
new port. - With
--bind 127.0.0.1orlocalhost(the default), every listener on that address also
listens on[::1]at the same port: the API gateway, GCS, Pub/Sub, the registry, DNS over
TCP, the metadata server and the Google front end. Service endpoints still report the
127.0.0.1address. A host without IPv6 loopback runs IPv4-only, as before. But if another
process holds[::1]:<port>itself, the Instance now doesn't start, and the error names the
port and IPv6. To fix it, free the port, or move that listener with--port NAME=....
gcpemu doctor now checks each port on 127.0.0.1 and [::1], and warns when another process
still answers on a port it could bind: that process holds the port on all interfaces. On macOS,
for ports 5000 and 7000, the warning tells you how to turn off AirPlay Receiver (System Settings
→ General → AirDrop & Handoff).
Known issue: docker push on a VM runtime still can't reach the registry (#831). Neither
change helps it: on a VM runtime, such as Docker Desktop, the daemon pushes from inside its VM,
where 127.0.0.1 and [::1] are the VM's own loopback, not the host's. Push from the host
instead, for example docker save -o image.tar REF and then crane push --insecure image.tar REF.
Breaking: the API gateway moved from port 4510 to 4562
LocalStack publishes its whole external-service range, 4510–4559, when its container starts. With
the API gateway on 4510, whichever of gcpemu and LocalStack started second either failed to start
or, with the range published on all interfaces, shared the port with the other without any error.
The API gateway's default port is now 4562, outside that range and LocalStack's edge port, 4566.
The Web console is at http://127.0.0.1:4562/console/, and gcpemu env (GCPEMU_GATEWAY) and
endpoints.json give the new port. The container image's API gateway listens on 4562 too: publish
it with -p 4562:4562.
Update anything that names the old port: SDK endpoint overrides,
CLOUDSDK_API_ENDPOINT_OVERRIDES_*, GCPEMU_GATEWAY, console bookmarks, and CI service-container
port mappings. To keep the old port instead, start with --port gateway=4510. A Persistent Instance
needs no other change: on start, its Managed containers, GKE nodes and Build agent reach the API
gateway on its new port, and each Build's logUrl points at it. Operations of Builds that finished
before the upgrade still give the old logUrl in their metadata.
When gcpemu doctor finds a named port in 4510–4559 or 4566 held, by a bind that fails or by
another process on all interfaces, it now says the port is in LocalStack's range.
GKE clusters serve the resource metrics API
Every emulated GKE cluster now runs k3s's bundled metrics-server and serves
metrics.k8s.io/v1beta1, as GKE does. kubectl top nodes and kubectl top pods work, and HPAs
on CPU or memory utilization scale instead of reporting FailedGetResourceMetric. Private
clusters get it too: its image is preloaded on every node. There is no setting to turn it off,
as on GKE. It runs as k3s ships it (Deployment kube-system/metrics-server), not under GKE's
metrics-server-v<version> name.
Existing clusters don't need to be recreated: a Persistent Instance installs metrics-server in each
cluster the next time it starts.
Linked Instances
Two Instances, say one on a laptop and one on an office machine, can now pair and share whole
Projects (ADR 0027). The office Instance starts with --link-bind <address> (port 4511, mutual
TLS), and the laptop runs gcpemu link pair <address>, or gcpemu link discover first to find it
on the LAN over mDNS. Each side checks the other's CA fingerprint, and the office approves with
gcpemu link approve. Then:
gcpemu link share team-shared # on the office Instance
gcpemu link delegate team-shared --to office # on the laptopFrom then on, the laptop is the front Instance: every request that names team-shared, through
any Service, REST or gRPC, goes over the link, and the office serves it as the caller's
Principal. Access tokens, ID tokens and STS exchanges that either Instance issued verify on the
other, and key files and service endpoints name addresses the caller can reach. The Web console
shows Links, Delegated Projects and Pairing requests. See "Linked Instances" in the README.
Cloud SQL and GKE LoadBalancer Services on the LAN
--sql-bind <address> serves every Cloud SQL instance with a public IP on that address:
Postgres on a port of its own, and the Auth Proxy and connectors on 3307. The usual credentials
are checked at every IAM enforcement level, and authorized networks match the LAN client's own
address. Each instance now has a dnsName, which its server certificate names.
--lb-bind now serves the ports of GKE LoadBalancer Services as well as forwarding rules, and
such a Service lists the --lb-bind address in its status.loadBalancer.ingress.
GKE Autopilot clusters
Creating a cluster with autopilot.enabled used to fail with UNIMPLEMENTED. An Autopilot cluster
now gets the settings GKE gives one, and:
- starts with one node and adds a node for each pod Pending for lack of room, sized to the GKE
shape the pod fits, in the zone its node affinity asks for, with compute-class and Spot labels.
An empty node goes after 30 s.GCPEMU_GKE_MAX_NODEScaps nodes for both cluster modes. - applies GKE's Workload restrictions through admission webhooks: default and minimum resource
requests, and no privileged pods, host namespaces,hostPort, writablehostPathor extra
capabilities. - refuses node pool changes, since GKE owns its node pools.
gcloud container clusters check-autopilot-compatibility works on Standard clusters. The Web
console creates and edits Autopilot clusters and shows each cluster's mode, and Export, Seed and
Copy keep it.
GKE managed telemetry
With the Instance's OTEL_EXPORTER_OTLP_* variables set (ADR 0034):
- A cluster whose Managed OpenTelemetry scope is
COLLECTION_AND_INSTRUMENTATION_COMPONENTS
serves GKE's managed collector at
opentelemetry-collector.gke-managed-otel.svc.cluster.local(4317 gRPC, 4318 HTTP). The
Instance adds the pod's Kubernetes attributes and forwards to your endpoint. No collector pods
run. - An
Instrumentationobject sets the OTel SDK variables on the pods it selects, so they send to
that collector. - With Managed Prometheus on (the default on Autopilot),
PodMonitoringand
ClusterPodMonitoringapply, and the Instance scrapes their targets into the same endpoint.
Google's emulators behind the API gateway
--external <api>=<host:port> forwards an API with no Service, such as Firestore or Spanner, to
an emulator you run, so clients use the one gateway address. --external <api>=managed has the
Instance run Google's own emulator in a container for firestore, datastore, spanner or
bigtable. A Persistent Instance keeps Firestore's and Datastore's data across restarts. Spanner
and Bigtable keep theirs only in memory, and the Instance warns about it on start. See "External
emulators" in the README.
Also in this release
- A runtime that gives containers no cpuset cgroup, such as a rootless Podman machine, now fails
gcpemu doctorand GKE cluster create up front with the fix (podman machine set --rootful),
instead of k3s exiting with an opaque error.
What's Changed
- ci: the release workflow attests SBOMs with actions/attest, replacing the deprecated actions/attest-sbom by @linuxuser586 in #636
- feat: External emulators serve Delegated APIs such as Firestore and Spanner (#623) by @linuxuser586 in #640
- feat: --sql-bind serves Cloud SQL on the LAN, with credentials (#620) by @linuxuser586 in #642
- feat: Linked Instances pair over a --link-bind listener (#616) by @linuxuser586 in #638
- docs: ADR 0029 and the Managed emulator term for #624 by @linuxuser586 in #650
- docs: ADR 0030, the --sql-bind relay tells the Sidecar agent the LAN caller's address, for #639 by @linuxuser586 in #652
- fix: a GKE cluster's certificate covers its Public endpoint on every start (#644) by @linuxuser586 in #651
- test: TestInwardKeepsFreePort holds its TCP+UDP port until the relay binds it (#643) by @linuxuser586 in #654
- fix: the VM relay test accepts the control port staying put (#647) by @linuxuser586 in #655
- feat: Linked Instances share Projects, and the front Instance delegates them (#617) by @linuxuser586 in #656
- feat: Linked Instances route requests that name no Project (#618) by @linuxuser586 in #658
- docs: GKE Autopilot is an M requirement for v1.0, with ADR 0031, for #659 by @linuxuser586 in #667
- fix: the registry moves to 4561, and ...
v0.11.0
Resolver routes: gcpemu dns install
gcpemu dns install sends svc.cluster.local and gke.internal to the emulator's DNS, so host
tools reach GKE Services by name, as curl http://web.default.svc.cluster.local:8080 (ADR 0026).
Add a --suffix for each emulated Cloud DNS zone the host should resolve too. gcpemu dns uninstall removes only the routes that Instance added. It replaces the hand-written
/etc/resolver and resolvectl setup the README used to ask for, and works on Windows too:
- Linux (systemd-resolved): a dummy link,
gcpemu-dns0, that lasts until reboot. - macOS: one
/etc/resolver/<suffix>file per suffix. - Windows: one NRPT rule per suffix. NRPT can't name a port, so start the Instance with
--port dns=53first.
It asks before it changes anything (--yes skips that, --dry-run only prints the commands) and
runs only that step as root, through sudo or UAC. gcpemu status lists the routes, and gcpemu doctor reports any that are gone or point at another port. See "Kubernetes Services from the
host" in the README.
The image is on distroless Debian 13
The OCI image's base moved from gcr.io/distroless/static-debian12 to static-debian13. A
Containerized Instance trusts the CAs in its own container, so it now uses Debian 13's
ca-certificates bundle. The image still runs as nonroot, and both amd64 and arm64 images pass
the Image readiness check before any tag is pushed.
Also in this release
- On Windows,
gcpemu envagainst an Instance bound to all interfaces, as the OCI image is, prints
127.0.0.1addresses instead of[::], which gcloud couldn't dial. The Admin API's endpoint
listings andendpoints.jsonchanged the same way: a Service endpoint is never an unspecified
address.
What's Changed
- feat: task prerelease runs the Pre-release host checks on macOS and Windows (#606) by @linuxuser586 in #607
- docs: define Resolver route in the glossary and record ADR 0026 (#608) by @linuxuser586 in #610
- feat: gcpemu dns install adds Resolver routes on Linux, macOS and Windows (#608) by @linuxuser586 in #612
- feat: the Pre-release host checks run the Host attachment tests on macOS and Windows (#609) by @linuxuser586 in #614
- docs: define Linked Instances in the glossary and record ADR 0027 (#615) by @linuxuser586 in #625
- fix: a Service endpoint is never an unspecified address, so gcpemu env works on Windows (#613) by @linuxuser586 in #626
- feat: task prerelease checks gcpemu dns install on each host (#611) by @linuxuser586 in #627
- chore: the OCI image builds on distroless Debian 13 (#628) by @linuxuser586 in #629
- ci: the Image readiness check runs the arm64 image too (#630) by @linuxuser586 in #631
- fix: the Pre-release checks pass on Colima, OrbStack and Podman machine by @linuxuser586 in #634
- docs: release notes for v0.11.0 by @linuxuser586 in #635
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- test: cover a forwarding rule and a GKE LoadBalancer Service contending for one --port-range port (#315) by @linuxuser586 in #486
- fix: key forwarding rule endpoints by project, scope and name (#314) by @linuxuser586 in #487
- docs: name the Containerized Instance tests in the glossary (#494) by @linuxuser586 in #499
- feat: prune the WAL archive per transactionLogRetentionDays and stream PITR restore bundles (#365) by @linuxuser586 in #488
- refactor: hijack returns a release func instead of AfterFunc's stop (#420) by @linuxuser586 in #489
- docs: record that --*-bind flags can't reach the LAN from a bridge-network Containerized Instance (#497) by @linuxuser586 in #503
- feat: Cloud SQL retained backups on instance delete (#366) by @linuxuser586 in #490
- docs: name the Image readiness check in the glossary (#498) by @linuxuser586 in #504
- docs: name the Instance CA in the glossary (#501) by @linuxuser586 in #506
- feat: Cloud SQL instances.list compiles filter with listfilter (#408) by @linuxuser586 in #505
- feat: only a Final backup can have an expiry (#416) by @linuxuser586 in #507
- ci: fail task vet if non-Windows builds link go-winio (#419) by @linuxuser586 in #508
- fix: requests through the Google front end are seen as HTTPS (#440) by @linuxuser586 in #510
- test: split the Pub/Sub console e2e test into three (#445) by @linuxuser586 in #512
- ci: fail when two ADRs share a number (#482) by @linuxuser586 in #513
- feat: Cloud Build Build agent and the Build's service account (#386) by @linuxuser586 in #509
- feat: deterministic clock moves once per API request (#441) by @linuxuser586 in #511
- feat: --gfe-bind serves port 443 without lowering ip_unprivileged_port_start (#469) by @linuxuser586 in #515
- fix: a cancel or timeout after every Build step ended keeps the Build's outcome (#455) by @linuxuser586 in #514
- feat: publish Build status changes to cloud-builds (#390) by @linuxuser586 in #516
- fix(test): serve the console under CI and use a multi-arch gcloud image by @linuxuser586 in #519
- feat: support and document Windows hosts for the Containerized Instance (#491) by @linuxuser586 in #517
- fix: host mode is refused in a Containerized Instance on a VM runtime (#492) by @linuxuser586 in #518
- fix: doctor in a Containerized Instance checks the container, not the host (#493) by @linuxuser586 in #522
- test: split the Artifact Registry console e2e test in four (#475) by @linuxuser586 in #520
- fix: ca.Load creates the Instance CA only when neither file exists (#501) by @linuxuser586 in #523
- test: skip TestClientsReachTheInstance/relay=0 on a VM runtime (#521) by @linuxuser586 in #524
- ci: upload the console e2e Playwright report when a test is flaky (#477) by @linuxuser586 in #525
- feat: Build daemon for Build steps, images and artifacts (#387) by @linuxuser586 in #526
- feat: Certificate Manager certificates in the web console (#326) by @linuxuser586 in #528
- feat: Web console VPC networks and subnetworks (#321) by @linuxuser586 in #530
- test: run the console Request log e2e test on an Instance of its own (#500) by @linuxuser586 in #531
- feat: Certificate Manager maps and map entries in the web console (#327) by @linuxuser586 in #534
- ci: task e2e runs every e2e test, including the Containerized Instance tests (#494) by @linuxuser586 in #535
- feat: Web console VPC container networks panel and Admin API endpoint (#322) by @linuxuser586 in #536
- feat: Cloud Build substitutions and secrets (#388) by @linuxuser586 in #538
- feat: TLS policies in the Certificate Manager console (#330) by @linuxuser586 in #539
- fix: host mode reports the runtime's bridge interface in a Containerized Instance (#495) by @linuxuser586 in #540
- feat: Web console VPC firewall rules and routes (#323) by @linuxuser586 in #542
- feat: bare task lists the tasks; task doctor checks the development tools (#541) by @linuxuser586 in #543
- feat: Rotate CA in the Certificate Manager console (#329) by @linuxuser586 in #545
- feat: Cloud Build triggers and worker pools (#389) by @linuxuser586 in #546
- fix: reject a Certificate map entry whose certificates do not have scope DEFAULT (#567) by @linuxuser586 in #580
- feat: refuse --host-mode when the VM relay is on because the gateway is not bindable (#560) by @linuxuser586 in #574
- fix: a retried Build keeps the built-ins its trigger or source provided (#565) by @linuxuser586 in #575
- docs: define Signed release in the glossary (#573) by @linuxuser586 in #581
- docs: define Wait condition in the glossary (#26) by @linuxuser586 in #585
- fix: network questions go by the shared Containerized Instance decision, not the marker files (#564) by @linuxuser586 in #582
- feat: doctor reports container runtimes' registry trust of the Instance CA (#28) by @linuxuser586 in #587
- feat: sign releases with keyless cosign, with SBOMs and SLSA provenance for the binaries (#29) by @linuxuser586 in #586
- feat: emutest returns configured clients and a public options API (#27) by @linuxuser586 in #589
- feat: add gcpemu wait --for, which blocks until every Wait condition holds (#26) by @linuxuser586 in #590
- fix: the services and external networks are adopted when their create says they already exist (#588) by @linuxuser586 in #592
- feat: doctor and ca install check containerd's CRI config_path reads certs.d (#583) by @linuxuser586 in #593
- feat: add gcpemu run, which hosts an Instance for one command and exits with its code (#584) by @linuxuser586 in #594
- fix: stopAt waits for stop before the test closes its client (#591) by @linuxuser586 in #596
- docs: ADR 0025 runs the Client compatibility suite from host toolchains; IF-007 drops gsutil (#36) by @linuxuser586 in #597
- fix: the CRI config_path check matches certs.d without splitting the list by @linuxuser586 in #603
- feat: setup-gcpemu verifies the release's Sigstore signature on SHA256SUMS (#573) by @linuxuser586 in #598
- fix: the release workflow pins cosign-installer to v4.1.2, since it has no v4 tag by @linuxuser586 in #604
- fix: the API gateway's Shutdown doesn't log the Google front end's closed listener as an error by @linuxuser586 in #605
Full Changelog: v0.9.0...v0.10.0
v0.10.0-rc.2
What's Changed
- test: cover a forwarding rule and a GKE LoadBalancer Service contending for one --port-range port (#315) by @linuxuser586 in #486
- fix: key forwarding rule endpoints by project, scope and name (#314) by @linuxuser586 in #487
- docs: name the Containerized Instance tests in the glossary (#494) by @linuxuser586 in #499
- feat: prune the WAL archive per transactionLogRetentionDays and stream PITR restore bundles (#365) by @linuxuser586 in #488
- refactor: hijack returns a release func instead of AfterFunc's stop (#420) by @linuxuser586 in #489
- docs: record that --*-bind flags can't reach the LAN from a bridge-network Containerized Instance (#497) by @linuxuser586 in #503
- feat: Cloud SQL retained backups on instance delete (#366) by @linuxuser586 in #490
- docs: name the Image readiness check in the glossary (#498) by @linuxuser586 in #504
- docs: name the Instance CA in the glossary (#501) by @linuxuser586 in #506
- feat: Cloud SQL instances.list compiles filter with listfilter (#408) by @linuxuser586 in #505
- feat: only a Final backup can have an expiry (#416) by @linuxuser586 in #507
- ci: fail task vet if non-Windows builds link go-winio (#419) by @linuxuser586 in #508
- fix: requests through the Google front end are seen as HTTPS (#440) by @linuxuser586 in #510
- test: split the Pub/Sub console e2e test into three (#445) by @linuxuser586 in #512
- ci: fail when two ADRs share a number (#482) by @linuxuser586 in #513
- feat: Cloud Build Build agent and the Build's service account (#386) by @linuxuser586 in #509
- feat: deterministic clock moves once per API request (#441) by @linuxuser586 in #511
- feat: --gfe-bind serves port 443 without lowering ip_unprivileged_port_start (#469) by @linuxuser586 in #515
- fix: a cancel or timeout after every Build step ended keeps the Build's outcome (#455) by @linuxuser586 in #514
- feat: publish Build status changes to cloud-builds (#390) by @linuxuser586 in #516
- fix(test): serve the console under CI and use a multi-arch gcloud image by @linuxuser586 in #519
- feat: support and document Windows hosts for the Containerized Instance (#491) by @linuxuser586 in #517
- fix: host mode is refused in a Containerized Instance on a VM runtime (#492) by @linuxuser586 in #518
- fix: doctor in a Containerized Instance checks the container, not the host (#493) by @linuxuser586 in #522
- test: split the Artifact Registry console e2e test in four (#475) by @linuxuser586 in #520
- fix: ca.Load creates the Instance CA only when neither file exists (#501) by @linuxuser586 in #523
- test: skip TestClientsReachTheInstance/relay=0 on a VM runtime (#521) by @linuxuser586 in #524
- ci: upload the console e2e Playwright report when a test is flaky (#477) by @linuxuser586 in #525
- feat: Build daemon for Build steps, images and artifacts (#387) by @linuxuser586 in #526
- feat: Certificate Manager certificates in the web console (#326) by @linuxuser586 in #528
- feat: Web console VPC networks and subnetworks (#321) by @linuxuser586 in #530
- test: run the console Request log e2e test on an Instance of its own (#500) by @linuxuser586 in #531
- feat: Certificate Manager maps and map entries in the web console (#327) by @linuxuser586 in #534
- ci: task e2e runs every e2e test, including the Containerized Instance tests (#494) by @linuxuser586 in #535
- feat: Web console VPC container networks panel and Admin API endpoint (#322) by @linuxuser586 in #536
- feat: Cloud Build substitutions and secrets (#388) by @linuxuser586 in #538
- feat: TLS policies in the Certificate Manager console (#330) by @linuxuser586 in #539
- fix: host mode reports the runtime's bridge interface in a Containerized Instance (#495) by @linuxuser586 in #540
- feat: Web console VPC firewall rules and routes (#323) by @linuxuser586 in #542
- feat: bare task lists the tasks; task doctor checks the development tools (#541) by @linuxuser586 in #543
- feat: Rotate CA in the Certificate Manager console (#329) by @linuxuser586 in #545
- feat: Cloud Build triggers and worker pools (#389) by @linuxuser586 in #546
- fix: reject a Certificate map entry whose certificates do not have scope DEFAULT (#567) by @linuxuser586 in #580
- feat: refuse --host-mode when the VM relay is on because the gateway is not bindable (#560) by @linuxuser586 in #574
- fix: a retried Build keeps the built-ins its trigger or source provided (#565) by @linuxuser586 in #575
- docs: define Signed release in the glossary (#573) by @linuxuser586 in #581
- docs: define Wait condition in the glossary (#26) by @linuxuser586 in #585
- fix: network questions go by the shared Containerized Instance decision, not the marker files (#564) by @linuxuser586 in #582
- feat: doctor reports container runtimes' registry trust of the Instance CA (#28) by @linuxuser586 in #587
- feat: sign releases with keyless cosign, with SBOMs and SLSA provenance for the binaries (#29) by @linuxuser586 in #586
- feat: emutest returns configured clients and a public options API (#27) by @linuxuser586 in #589
- feat: add gcpemu wait --for, which blocks until every Wait condition holds (#26) by @linuxuser586 in #590
- fix: the services and external networks are adopted when their create says they already exist (#588) by @linuxuser586 in #592
- feat: doctor and ca install check containerd's CRI config_path reads certs.d (#583) by @linuxuser586 in #593
- feat: add gcpemu run, which hosts an Instance for one command and exits with its code (#584) by @linuxuser586 in #594
- fix: stopAt waits for stop before the test closes its client (#591) by @linuxuser586 in #596
- docs: ADR 0025 runs the Client compatibility suite from host toolchains; IF-007 drops gsutil (#36) by @linuxuser586 in #597
- fix: the CRI config_path check matches certs.d without splitting the list by @linuxuser586 in #603
- feat: setup-gcpemu verifies the release's Sigstore signature on SHA256SUMS (#573) by @linuxuser586 in #598
- fix: the release workflow pins cosign-installer to v4.1.2, since it has no v4 tag by @linuxuser586 in #604
- fix: the API gateway's Shutdown doesn't log the Google front end's closed listener as an error by @linuxuser586 in #605
Full Changelog: v0.9.0...v0.10.0-rc.2
v0.9.0
Cloud Build
Cloud Build is the twelfth Product (ADR 0016). The Builds API v1 is served over gRPC and REST, on
projects/*/builds and projects/*/locations/*/builds, with create, get, list, cancel and retry.
Build steps run as containers in order or by waitFor, sharing /workspace. A Build's source is
a storageSource archive, as gcloud builds submit uploads it, or a public gitSource. Step logs
are written as they run to log-BUILD_ID.txt in the Build's logsBucket. build.concurrency
(default 4, GCPEMU_BUILD_CONCURRENCY) caps the Builds running at once. Cloud Build v2 answers
UNIMPLEMENTED.
Outside Host mode, run gcloud builds submit with --async or options.logging: NONE: gcloud's
log streaming ignores endpoint overrides. See "Cloud Build" in the README.
Native Windows
gcpemu.exe now runs every Service natively, Cloud SQL, GKE, Cloud NAT and Cloud Build included,
on Docker Desktop or Podman machine in Linux-containers mode. It finds them on their named pipes
(npipe://), and you no longer need a WSL2 distribution. gcpemu ca install adds the CA to the
user's Root store. A port in one of Windows' excluded port ranges fails as unavailable. See
"Windows" in the README.
The Google front end on the LAN
--gfe-bind <address> (repeatable, gfeBind) serves the Google front end on <address>:443,
for clients on another machine that call Google by its real hostnames and take no endpoint
override, such as Argo Workflows' GCS artifact driver (ADR 0021). Every request there must carry
credentials the Instance issued. Service account keys created through a real Google hostname work
unmodified from another machine. gcpemu doctor checks the addresses and port 443.
Building from source: Task replaces make
The Makefile is gone (ADR 0018). Install Task and run task build,
task agent or task release VERSION=vX.Y.Z instead of the make targets. The tasks run from any
shell, PowerShell included.
Also in this release
- Cloud SQL takes Final backups on instance delete (
--enable-final-backup),backups.list
takes gcloud's filters, and backups expire on the Emulator clock. - API requests made while an Instance Reset or State snapshot restore runs are refused or cut off
as UNAVAILABLE (HTTP 503 withRetry-After). Retry them. - Pods labelled
gcpemu.dev/googleapis=realresolve*.googleapis.comto real Google (ADR 0019). gcpemu ca installtells macOS users to restart Docker Desktop.- On a VM runtime, a Containerized Instance publishes each public Cloud SQL instance on a
127.0.0.xof its own.
What's Changed
- docs: ADR 0017, CI does not retry failing Go tests by @linuxuser586 in #394
- fix: Reset stops and waits for Artifact Registry mirror blob fetches (#397) by @linuxuser586 in #403
- fix: GKE bring-up notices a crashed control plane and restarts it once (#395) by @linuxuser586 in #404
- fix: GKE tests share cluster slots and wait longer than the emulator's bring-up (#396) by @linuxuser586 in #405
- fix: TestWebSocketBackends waits for every path's backend to be healthy (#398) by @linuxuser586 in #406
- fix: TestRegionalPoolsAndRoles ignores node.kubernetes.io/ taints (#399) by @linuxuser586 in #409
- fix: missed performance targets no longer fail ci-ok (#400) by @linuxuser586 in #410
- feat: Cloud SQL backups.list filters and backups expire on the emulator clock (#367) by @linuxuser586 in #412
- docs: Disrupted container, and recovery from a runtime restart is out of scope (#411) by @linuxuser586 in #413
- fix: VM relay holds and retries inward traffic while the control session is replaced (#401) by @linuxuser586 in #414
- feat: gcpemu ca install on Windows adds the CA to the user's Root store (#380) by @linuxuser586 in #415
- fix: GKE calls wait out a State snapshot save instead of naming state-snapshot (#294) by @linuxuser586 in #417
- docs: ADR 0018, Task runs the build, not make (#423) by @linuxuser586 in #424
- feat: runtime client dials npipe:// endpoints (#374) by @linuxuser586 in #421
- feat: Cloud SQL final backups on instance delete (#407) by @linuxuser586 in #425
- feat: Task runs the build from any shell, replacing the Makefile (#423) by @linuxuser586 in #429
- feat: detect Windows named-pipe runtimes; reject Windows-containers runtimes (#375) by @linuxuser586 in #430
- fix: Artifact Registry's token challenge names an https realm behind the Google front end (#426) by @linuxuser586 in #432
- feat: pods labelled gcpemu.dev/googleapis=real resolve Google APIs for real (#427) by @linuxuser586 in #433
- feat: Windows excluded port ranges fail as unavailable, never via the Edge relay (#376) by @linuxuser586 in #434
- fix: Cloud SQL backup and PITR tests reach instances on their published host ports (#428) by @linuxuser586 in #435
- test: a GKE cluster in ERROR at State snapshot save restores with a fresh data plane (#295) by @linuxuser586 in #438
- fix: reference stack step 10 ignores the Instance's core containers (#431) by @linuxuser586 in #439
- docs: define Datastore and Staged datastore in the CONTEXT.md glossary (#296) by @linuxuser586 in #443
- fix: Pub/Sub's background tick no longer advances the deterministic clock (#436) by @linuxuser586 in #442
- fix: a Containerized Instance on a VM runtime publishes each public Cloud SQL instance on a 127.0.0.x of its own (#290) by @linuxuser586 in #444
- test: a GKE State snapshot restores into another Instance while its Store-recovery bring-up is in flight (#303) by @linuxuser586 in #446
- fix: refuse and cut off API requests while an Instance Reset or State snapshot restore runs (#302) by @linuxuser586 in #447
- fix: Cloud SQL and Artifact Registry Reset cancel and wait for background work (#306) by @linuxuser586 in #448
- fix: Reset waits for background work that would outlive it (#307) by @linuxuser586 in #449
- docs: decide gcloud builds log streaming without Host mode (#385) by @linuxuser586 in #451
- feat: ca install recognises named-pipe runtime endpoints on Windows (#377) by @linuxuser586 in #454
- fix: LB data plane matches the reset Store after an Instance Reset (#450) by @linuxuser586 in #452
- docs: decide the deterministic clock moves once per API request (#441) by @linuxuser586 in #458
- feat: Cloud Build Builds API and Build steps (#392) by @linuxuser586 in #457
- feat: ca install tells macOS users to restart Docker Desktop (#453) by @linuxuser586 in #460
- fix: setup-gcpemu says why it can't identify its job (#466) by @linuxuser586 in #467
- feat: Cloud Build sources and logs in Cloud Storage (#385) by @linuxuser586 in #464
- fix: lift the native Windows runtime gate (#378, #379) by @linuxuser586 in #465
- fix: VM relay finds a TCP+UDP port pair past Windows' excluded port ranges (#459) by @linuxuser586 in #461
- docs: decide the Recovery window runs on the database clock (#365) by @linuxuser586 in #471
- fix: compat starts the Runtime Services only when gcpemu finds a runtime (#472) by @linuxuser586 in #473
- fix: LB retries a transient first runtime check instead of no-socket mode (#313) by @linuxuser586 in #463
- refactor: share offset page tokens and UUID IDs across Services (#456) by @linuxuser586 in #468
- feat: --gfe-bind serves the Google front end on the LAN, with credentials, and keys usable from another machine (#462) by @linuxuser586 in #470
- docs: decide a LAN front-end relay serves --gfe-bind on port 443 (#469) by @linuxuser586 in #474
- docs: define Retained backup in the glossary (#366) by @linuxuser586 in #476
- docs: define On-demand backup in the glossary (#416) by @linuxuser586 in #479
- docs: renumber the Recovery window ADR to 0022 (#481) by @linuxuser586 in #483
- fix: runtime.New rejects a malformed npipe:// endpoint, naming it and the expected form (#418) by @linuxuser586 in #478
- docs: record incremental builds as out ...