gcpsim guide

Overview

gcpsim packages floci-gcp 0.11.0 together with a deterministic CLI, Pub/Sub ack-deadline overlay, and OAuth/IAM enforcement filter into a single native GraalVM executable. In open mode, REST and gRPC share loopback port 4588, enabling in-process Google Cloud Storage (GCS) and Cloud Pub/Sub testing without Docker containers, a Java runtime, or a GCP account.

Architecture and provenance overlays

The build script (scripts/build.py) verifies the upstream floci-gcp archive against upstream.lock.json and applies SHA-256-locked source overlays (overlay.lock.json):

Authentication and IAM permission enforcement (--auth enforce)

By default, gcpsim runs in open mode (--auth open). Passing --auth enforce --auth-config auth.json (or setting SIM_AUTH=enforce and SIM_AUTH_CONFIG=auth.json) enables two-layer security checks:

Connecting lmgcp, lmgcp cloud, and gcloud

You can drive gcpsim from three different client surfaces: