Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion intent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:

execution:
state:
backendUrl: https://api-edge-prod.oruncloud.workers.dev
backendUrl: https://api.orunbase.com
# Declared, enforced tenancy: the workspace claim is sent on every remote op
# (including the credential-free CI OIDC exchange) so the platform can
# enforce claim ⊆ authorized. Declaring it implies strict mode — a
Expand Down
10 changes: 10 additions & 0 deletions testing/coverage.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ else:
or "inputs.environment" not in str(_env.get("DISPATCH_ENVIRONMENT", "")):
bad("ci.yml's plan step must take DISPATCH_COMPONENT / DISPATCH_ENVIRONMENT from inputs in env")

# THE BACKEND A PRODUCT PINS IS THE ONE A LOGIN TARGETS. A stored `orun auth
# login` is bound to its backend and refuses any other URL, and `--backend-url`
# does not reach the build's hooks, so a local build stops at 01-product's
# providers check when this names another host for the same API.
backend = ((yaml.safe_load((root / "intent.yaml").read_text()) or {})
.get("execution", {}).get("state", {}).get("backendUrl"))
if backend != "https://api.orunbase.com":
bad(f"intent.yaml pins backendUrl {backend!r}; it must be "
f"https://api.orunbase.com, the host `orun auth login` signs in to")

if problems:
print("FAIL: the blueprint and this repository disagree about what a product is:",
file=sys.stderr)
Expand Down
Loading