
Scaleway、Outscale 和 Exoscale API 的本地模拟器。它们自己的官方 CLI 可驱动其运行。
A local emulator for the European clouds — Scaleway, Outscale, Exoscale.
One binary. One port. No account, no bill. Read this in another language: Français
The handbook, with screenshots and a maturity table per provider: blog.stephane-robert.info
What you can validate • Install • Use it • What is proven • Commands • What it does not do • Contributing
[!IMPORTANT] What is safe to point at this emulator, and what is not.
Proven: 378 of the 399 mounted operations are driven by a real client, on every pull request: each pack's own official CLI, and an infrastructure engine wherever a pack admits one, all of them running against the emulator in CI, and machines really boot: an ssh login on each provider's own default account, isolated subnets, a firewall that filters. The whole chain is described in docs/conformance.md.
Not proven: quotas, prices, real capacity, identifier validation, authentication, eventual consistency. The 57 sections of docs/limits.md each say what one costs. An emulator with a single implicit account and no price list would have to invent those figures, and somebody would act on them.
Unknown: 21 operations are mounted and have never been driven by a client. Every one of them states why no official client reaches it, at the route and in docs/routes.md. They are counted rather than glossed, one by one, in coverage/evidence.json.
The warning that stays, because it is measured rather than counted: what the conformance suite does not walk is unproven. Two whole-pack adversarial audits, one per provider, found defects on every such path — including in the fixes of the previous round. Report what breaks; that is what moves the figures above.
Point Terraform and the official cloud CLIs at your own machine. No cloud account, no cloud credentials, and nothing created anywhere.
Terraform and OpenTofu drive Scaleway, Outscale and Exoscale. Each pack also has its own official CLI, and every one of them drives this emulator end to end:
scw.octl.exo.On your machine — one static binary, and a stack short enough to read whole:
You need Git and Terraform >= 1.7.0. feint itself has no runtime dependency: it is the stack that asks for the engine.
brew install stephrobert/feint/feint
git clone https://github.com/stephrobert/feint
cd feint/examples/quickstart/scaleway
feint up # checks the host, starts the emulator, applies the Terraform
feint down # destroys what it created, then stops the emulatorWhat those four commands print:
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.feint up reads the feint.yaml beside the Terraform: it checks the host, starts the emulator, exports what the official client needs, runs the engine and waits on the conditions the file declares. The stack is one server and one address, with no machine runtime — examples/stacks/scaleway is the one shaped like production, and it exists to break the emulator rather than to be read first.
Already have a project? Drive it by hand, which is what a feint.yaml saves you from writing:
feint start # detaches, waits until it answers
eval "$(feint env scaleway)" # point the official client at it
terraform apply # the real Scaleway providerIn CI, or anywhere Docker runs — the same emulator as a service:
services:
feint:
image: ghcr.io/stephrobert/feint:v0.13.0
ports: ["4599:4599"]The image is control-plane only and carries no latest tag; docs/install.md has the GitLab form, the compose form and the signature verification. Pull it directly with docker run --rm -p 127.0.0.1:4599:4599 ghcr.io/stephrobert/feint:v0.13.0.
In GitHub Actions without a container — the action from the Marketplace:
- uses: stephrobert/setup-feint@v1
with:
version: 0.13.0
provider: scaleway # exports what the official client needsIt installs the released binary, verifies its checksum before running it, and waits until the emulator answers.
Copy-paste pipelines for both, with nothing to configure and no secret to add:
examples/ — GitHub Actions, GitLab CI, and a setup-feint
action that verifies the binary before it runs it.
No account. No credentials. Nothing billed, and nothing left running anywhere but
your machine. The provider that printed the Apply complete! line above is the
real one from the registry — this repository's whole argument is that it cannot
tell the difference, and what you can validate says where
that claim stops.
feint serve
# feint dev listening on 127.0.0.1:4599
# scaleway 195 routes
# outscale 100 routes
# exoscale 104 routes
# machines noneThat is one endpoint for three clouds. They do not collide in URL space —
Scaleway serves //v/…, Outscale POST /api/v1/, Exoscale
/v2/ — so one http.ServeMux hosts all three, and the server refuses
to start if two packs claim the same route.
Every command in the recording above really ran: the emulator starts, the official
scw CLI creates a server, the official Terraform provider applies a
configuration through api_url, and the emulator stops. It is generated from
tools/demo/quickstart.tape with mise run demo,
so a command that breaks breaks the demo. A recording nobody can re-run is a
claim, and the whole argument here is that a claim is not a proof.
A second tape covers the part a mock cannot do:
tools/demo/network.tape drives the official Outscale
CLI to create a Net, a Subnet and a Vm, then asks the runtime rather than the
emulator what exists — incus list shows a container holding the exact address
the API published, on that subnet, and holding nothing once the emulator stops.
It needs Incus with OVN; mise run demo:network records it.
Ask before installing anything, and read the answer somewhere other than here: what you can validate is one page and one table, and it answers that question in your vocabulary rather than this project's. A row is a thing you might want to test; its verdict carries whatever establishes it — the suite that drives it, the runtime capability it keys on, or the section of what it does not do that says why the answer is no. A row with nothing to point at is refused by a test rather than by a reviewer.
That page is deliberately the only place those verdicts are written, and this one copies none of them. The promise above it is generated from the capability matrix for exactly that reason: the sentence a human used to type there claimed a client this emulator refuses at the doorstep, and it contradicted the confidence page for two days through every green documentation gate in between (#592). A table recopied here would be that defect again, with six rows instead of one. The per-operation view, which is generated, is docs/routes.md.
Everything that is not on this page lives in docs/, grouped by the question it answers rather than listed.
None, for what most people came for. Feint is one static binary with no
external dependencies: it emulates the three control planes, holds its state in
memory, and needs no daemon, no container runtime and no account. If you are
pointing scw, octl, exo or Terraform at an emulator, stop reading here
and go to Install.
Two things are needed only for what they enable:
| What | Version | What it buys you |
|---|---|---|
| Go | 1.26 | Building from source. A released binary needs nothing. |
| Incus | 7.2 recommended, 6.0.4 minimum | --vm: powered-on servers become real containers or KVM machines you can ssh into. |
OVN (ovn-central, ovn-host, Open vSwitch) |
optional | --vm incus-ovn: subnets that are actually separate, so two VPCs cannot reach each other. |
6.0.4 is a floor rather than a preference: below it the runtime refuses ACLs on a
NIC, and the failure reads like a Feint bug rather than a missing feature. Ubuntu
24.04 ships 6.0.0 and will not move past it, so the Zabbly stable channel is the
practical way to a supported version. feint doctor checks all of this against
the same 6.0.4, and says what to install, which is the point of having it.
Version 0.13.0, named rather than fetched as latest: a mutable reference
downloads whatever is newest, which is a binary neither of us can name
afterwards and a release adopted the day it is published. This line moves when
the CHANGELOG does, and feint docs --check fails until it has.
Needs cosign (or gh, further down) and nothing else. Every file is fetched
to disk and verified before anything runs it.
…With gh, which checks the build provenance instead: it proves which
workflow and which commit produced the binary, where the signature above
proves who published the list. --signer-workflow is what makes the
difference between an identity and a provenance: without it the check
accepts anything this repository attested, whichever workflow did it.
gh release download v0.13.0 --repo stephrobert/feint --pattern 'feint-linux-amd64'
gh attestation verify feint-linux-amd64 --repo stephrobert/feint \
--signer-workflow stephrobert/feint/.github/workflows/release.yml| Binary | Control plane | --vm: real machines |
|---|---|---|
feint-darwin-amd64 |
exercised: tests and race detector, skipped on private forks | impossible: Incus publishes no macOS server |
feint-darwin-arm64 |
exercised: tests and race detector, skipped on private forks | impossible: Incus publishes no macOS server |
feint-linux-amd64 |
exercised: tests, race detector, and it answers | possible; a nightly CI job proves it, and no pull-request gate does |
feint-linux-arm64 |
exercised: tests and race detector, skipped on private forks | Incus is packaged for it; the nightly runtime job runs amd64 only |
--vm is off by default, and no pull-request gate turns it on. Starting
machines is a side effect on whoever's host runs it, so it is asked for rather
than assumed, and the conformance suite has to stay runnable where no runtime
exists — which is every pull request. The network suites skip themselves there
and say so.
A nightly job does run it: .github/workflows/runtime-proof.yml installs Incus
and OVN on a GitHub-hosted runner and drives the network, ssh and crash suites
in both modes. It is advisory until its promotion criterion is met, which is
why no pull request depends on it. Locally, FEINT_VM=incus-ovn mise run conformance on a host with Incus proves the same thing.
The non-amd64 runners are free here and billed on a private repository, so the job skips on a private fork rather than spending somebody's minutes without asking. A fork that wants that coverage removes the condition, which is one line.
Older versions s
暂无开放 Issues,或尚未同步最近议题。