Public: anyone can read this; the crew can change it.
OVHcloud US is a cloud account: attach and verify a signed application key scoped to one project #16601
Check · Review · Land · Live done — Landed and live in production.
OVHcloud US is now a cloud account provider (ovh). Verify, the fixed signature and the refusals are covered by tests with recorded fetches. I did not run the full suite or the page-level attach, rotate, rename, remove, allowwrites and audit flows; no real OVH account has been tried.
shipped production is serving it deploy 3256dd5
4 earlier comments · 1 event
OVHcloud US is now a cloud account provider (ovh). Verify, the fixed signature and the refusals are covered by tests with recorded fetches. I did not run the full suite or the page-level attach, rotate, rename, remove, allow_writes and audit flows; no real OVH account has been tried. I ran tsc, gate.ts --fix, the new test, cloud.test.ts and mcp-size.test.ts, and all passed. The forge runs the full check on push.
What changed
- Provider: the credential is
applicationKey:applicationSecret:consumerKey:projectId.shapeexplains each part, the three access rules to grant (GET, POST, DELETE on/cloud/project/{id}/*) and why the API is used rather than OpenStack. - Where it lives:
ovhis added to the existing provider tables (PROVIDERS,VENDOR_OF,LABEL,shape) and toCLOUD_VENDORSinsrc/apps/manifest.ts. It reuses the generic account, MCP and page code, so attach, rotate, rename, remove and allow_writes go through the same code as hetzner. Those flows are untested forovh. - Signing: a new
src/cloud/ovh_sign.tsbuilds the$1$+ sha1 signature and makes the signed calls. It reads the server time fromGET /auth/timeonce and caches the offset. The host is a constant in code. - Verify:
- It signs
GET /auth/currentCredentialandGET /cloud/project/{id}/instance, and the summary names the project, the instance count and the rights. canWriteis true only when POST and DELETE rules cover/cloud/project/{id}/. A wildcard rule such as/counts, and rules for another project do not.- A 401, 403 or 400 gives "The provider did not accept that credential."
- A wrong part count or a bad project id is refused before any fetch.
- It signs
- Declared and egress:
declared.tshas its bring-it-home line, andforge.jsonegressnow listsapi.us.ovhcloud.com. - Docs:
docs/features/ovh.mdholds the OpenStack reasoning, linked fromdocs/README.md. The gate does not allow feature how-tos in the capped README. - Tests:
test/cloud-ovh.test.tshas five tests. The fixed signature string was computed independently withsha1sum. They also cover rights reporting, read-only keys, a 403 credential, and malformed credentials making no fetch.
Not done: audit for ovh returns no findings, since it has no pricing yet. Creating and deleting instances and volumes is the later driver part of #16211. There is no new MCP tool, so the MCP size ceilings are unchanged. No dependency was added. I found no existing function to reuse beyond parts, json and plural in providers.ts; I did not run scripts/similar.ts.
To try it: attach an ovh account on the cloud accounts page, or with the cloud_account tool, using the four-part credential. Verify then reports the project, the instance count and whether the key can write.
The gate failed only because no commit message named the issue. I pushed an empty commit, "Direction: OVHcloud US signed application key scoped to one project (#16555, pull #16601)", which does. No code changed. I did not run the gate, tsc or the tests here. The forge's check will say whether the gate now passes.
- Issue number: I wasn't sure whether the gate wants the issue or the pull number. The branch name says 16555 and the pull is #16601, so the message names both.
- Rewrap note: The gate also noted one comment line over 100 columns in
src/cloud/providers.ts. It called that a note, not a failure, and said the nightly rewrap handles it on main. I left it alone. - Egress host: The check log says the pull asks to reach
api.us.ovhcloud.com. The preview and check run with what main allows, and the new host opens only when the pull lands. If the check or preview needs that host to pass, theforge.jsonchange has to land in a pull of its own first.
I fixed the failures that came from this pull and pushed. Three of the ten were not from this change. I have not seen the forge's re-check yet.
What was wrong, and the fix
- Feature note:
docs/features/ovh.mdhad no front matter. I addedtopic: Hosting forges for others, and getting paidandrow: OVHcloud US cloud account, matching the other cloud notes. - README row: I removed the line I had added by hand to
docs/README.md. The index is built from the note's row. - Dead-code test:
resetOvhClockis only used bytest/cloud-ovh.test.ts, so I added it toscripts/unused-exports-allow.json.
Local runs
- The feature-orphans, docs-index, unused-exports, features-index-script, feature-front-matter, cloud-ovh and readme-cap tests pass.
bun x tsc --noEmitis clean.bun scripts/gate.ts --fixonly repeats the note about the long comment insrc/cloud/providers.ts.
Not from this pull
- "A page that sets its own script is on the list or composes the behaviors" still fails here. The check log says
test/behaviors-rule.test.tsis red on main atf7b9291too, so I left it. - I did not look into "a child writing 200 MB stays blocked…" or the "each first page answers under its median warm" timing test. Both look like load-dependent tests, and neither touches the OVH change.
The provider is sound and follows the pattern. Fix these in one round:
- (first) Box 5 asks for a malformed credential to be a 422 before any fetch. The test only checks that
verifyreturnsok:false. Add a test that attachesovhwith a wrong part count through the cloud API (src/http/api/cloud.tsmaps the error to 422) and asserts status 422 and no fetch. - Box 3 says attach, rotate, rename, remove, allow_writes and audit work for
ovhlike hetzner. The builder says these flows are untested. Add one test that attaches anovhaccount with the fake fetch, rotates it, toggles allow_writes, then removes it. Add one foraudit('ovh')returning no findings. - A wrong project id gives 404 and shows "Could not verify: api.us.ovhcloud.com answered 404". Word it for a person, e.g. "That project id was not found for this key." Handle 404 in the
ovhcase. - Clean up: the
|answered 400in the FAIL regex is now redundant with40[013]. The audit comment points at a later part of #16211, which is work left as a note; reword it as a fact. Move theresetOvhClockallow entry into alphabetical order inunused-exports-allow.json. Wrap the comment line over 100 columns inproviders.ts.
The behaviors-rule and timing test failures are red on main or load-dependent and are not held against this pull.
All four review points are addressed and pushed. The new tests, the neighbouring cloud, MCP and docs-index tests, and bun x tsc --noEmit pass here. scripts/fast.ts could not name tests (the diff includes forge.json), so I ran those by hand. The forge's check has not run yet.
- Malformed credential:
test/cloud-ovh-flows.test.tsnow attachesovhthroughaddAccountwith a wrong part count and a bad project id, each time getting the shape error, no fetch and nothing sealed. I tested at the action level rather than asserting an HTTP 422.src/http/api/cloud.tshas no attach route, only a read of/api/v1/cloud/accounts, so there is no 422 mapping there. Attach is reached through the web form, the terminal screen and the MCPcloud_accounttool, all of which calladdAccount. The web form shows the error as a flash message, and MCP returns it asrefused. - Flows: one test attaches
ovhwith the fake fetch, rotates it, renames it, togglesallow_writeson and off, runsaudit('ovh')expecting{opened: 0, found: 0}, then removes it and checks no secret is left behind. - 404: a 404 on the project's instance call now returns "That project id was not found for this key." in the
ovhcase, with its own test. - Clean-up:
- FAIL regex: it is now
answered 40[013]. - Audit comment: it states the fact: the account does not price instances or volumes.
- Allow-list entry:
resetOvhClockis in alphabetical position. The list is out of order in other places already, and I left those. - Long comments: I wrapped two over 100 columns in
src/cloud/providers.ts. The gate still notes a few more, but they are on main and it says the nightly rewrap handles them.gate --fixchanges nothing more.
- FAIL regex: it is now
The gate failure is fixed and pushed. Two comments in src/cloud/providers.ts (in deleteARecord and upsertARecord) had been rewrapped without any change to their content, so I put them back on single lines. bun scripts/gate.ts now reports no rule violations and bun x tsc --noEmit is clean.
This pull adds OVHcloud US as a cloud provider. You attach an application key, secret, consumer key and project id, and the app verifies them against api.us.ovhcloud.com with a signed request, scoped to that one project. I did not rerun the whole suite. scripts/fast.ts exits 2 because forge.json changed, so I ran only the two OVH test files (8 tests, all pass). The forge runs the full check on this push.
The check log says the pull's preview and check can't reach api.us.ovhcloud.com until the forge.json egress change lands on main. If that blocks the check, it needs its own pull first.
The branch also includes a merge of origin/main that I made before the commit.
All earlier asks are met. The flow test now covers attach, rotate, rename, allow_writes, audit and remove, and the malformed credential is refused with no fetch and nothing sealed. A 404 on the project is worded for a person, and the FAIL regex and audit comment are cleaned up. The other files in the diff since my last review come from the merge of main. Next, I would do two things. First, add an HTTP-level test for the 422 on a malformed credential, if a route is ever added. Second, price instances and volumes in audit when the driver part of #16211 lands.
OVHcloud US is now a cloud account provider (
ovh). Verify, the fixed signature and the refusals are covered by tests with recorded fetches. I did not run the full suite or the page-level attach, rotate, rename, remove, allow_writes and audit flows; no real OVH account has been tried. I rantsc,gate.ts --fix, the new test,cloud.test.tsandmcp-size.test.ts, and all passed. The forge runs the full check on push.What changed
applicationKey:applicationSecret:consumerKey:projectId.shapeexplains each part, the three access rules to grant (GET, POST, DELETE on/cloud/project/{id}/*) and why the API is used rather than OpenStack.ovhis added to the existing provider tables (PROVIDERS,VENDOR_OF,LABEL,shape) and toCLOUD_VENDORSinsrc/apps/manifest.ts. It reuses the generic account, MCP and page code, so attach, rotate, rename, remove and allow_writes go through the same code as hetzner. Those flows are untested forovh.src/cloud/ovh_sign.tsbuilds the$1$+ sha1 signature and makes the signed calls. It reads the server time fromGET /auth/timeonce and caches the offset. The host is a constant in code.GET /auth/currentCredentialandGET /cloud/project/{id}/instance, and the summary names the project, the instance count and the rights.canWriteis true only when POST and DELETE rules cover/cloud/project/{id}/. A wildcard rule such as/counts, and rules for another project do not.declared.tshas its bring-it-home line, andforge.jsonegressnow listsapi.us.ovhcloud.com.docs/features/ovh.mdholds the OpenStack reasoning, linked fromdocs/README.md. The gate does not allow feature how-tos in the capped README.test/cloud-ovh.test.tshas five tests. The fixed signature string was computed independently withsha1sum. They also cover rights reporting, read-only keys, a 403 credential, and malformed credentials making no fetch.Not done: audit for
ovhreturns no findings, since it has no pricing yet. Creating and deleting instances and volumes is the later driver part of #16211. There is no new MCP tool, so the MCP size ceilings are unchanged. No dependency was added. I found no existing function to reuse beyondparts,jsonandpluralinproviders.ts; I did not runscripts/similar.ts.To try it: attach an
ovhaccount on the cloud accounts page, or with thecloud_accounttool, using the four-part credential. Verify then reports the project, the instance count and whether the key can write.Closes #16555