Repository navigation
dataPlane=wisp, and just up / just register hand studio its URL, data plane and key (#121 items 3, 4) - #122
Merged
Merged
Conversation
…he URL and data plane; just register hands back a key (#121)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Items 3 and 4 of #121: an external Sprites endpoint as a data plane, and the two facts studio needs from
just upandjust register. Item 2 (spritzer's real mode asdataPlane=spritzer) is not here: spritzer's newest release is still 0.5.0, and INTENTIUS/spritzer#22 has not shipped. The pin (item 1) landed in #120 at v0.21.0.dataPlane=wisp. A third data plane besidespritesandspritzer, for a Sprites-compatible server somebody else runs (arugula-salad/wisp; wisp.widgets.wtf, or any Linux host with /dev/kvm).spritesBaseUrl(no default) becomes fountain'sSPRITES_BASE_URL. A trailing slash is dropped.spritesTokenSecret(defaultfountain-sprites-token) names the Secret whoseSPRITES_TOKENkey becomes fountain'sSPRITES_TOKEN. It is an explicitenventry, so it overrides the platform Secret's value (a placeholder on k3d) without rewriting that Secret.ha.wispwithoutspritesBaseUrl(fountain would fall back to api.sprites.dev and send the wisp token there);spritesBaseUrlwithspritesorspritzer; a URL that is not http(s), or carries a query, fragment or credentials.wispwhose token Secret is missing or empty. Without this the pod sits in CreateContainerConfigError untilwaittimes out.just sprites-tokencreates or rotates that Secret from$SPRITES_TOKENor a prompt that does not echo, then restarts the app if it is running.verify-conversationholdswispto a turn that exits 0 (no emulator exemption) and allowsstrict.Surfacing. The Deployment now carries
fountain-ops/data-plane,fountain-ops/sprites-base-urland, for wisp,fountain-ops/sprites-token-secretannotations.just upends withannounce, which reads them off the live Deployment:verify-conversationreads the same annotation, with the old env scan as a fallback for older Deployments.just register EMAIL [PROFILE]does the API half of waterpark's compose/bin/register.sh: registers or reuses the account (422 "already been taken" continues, any other 422 is printed and fails), mints a key at/api/auth/token, refuses to print it unlessGET /api/agentsaccepts it, and printsexport FOUNTAIN_ENDPOINT=.../export FOUNTAIN_TOKEN=...on stdout, which is what chant's fountain lexicon falls back to. Afountain.profilesblock goes to stderr. It writes no files.Validation:
just checkpasses: typecheck, lint, 40 tests (5 new for wisp), build.just e2epasses from nothing on k3d, including the new step:just registeragainst the e2e account printsFOUNTAIN_ENDPOINT=http://localhost:4000and a token that authenticates.just register studio@example.com, then chant 0.89.0'sfountainApplyof an Environment and an Agent withsandbox_mode: persistent, using the exported endpoint and token, created both.fountainRunon that agent provisioned a sandbox on spritzer, dispatched the turn, and the turn failed at the ACP handshake (-32601 initialize is not supported), as it does at every pin since v0.9.0. The persistent conversation then sat open until fountainRun's deadline terminated it, and the sandbox was kept (persistent_home).dataPlane=wisppointed at a second spritzer 0.5.0 standing in for a wisp host:applyrefused without the token Secret;just sprites-tokencreated it;upannouncedwisp -> http://wisp-standin...and the token Secret; inside the app podSPRITES_TOKENwas the Secret's value, not the platform placeholder;verify-conversationprovisioned through the stand-in and then failed the turn with "the turn did not exit 0", which is correct for spritzer on a plane with no exemption.PUBLIC_URL, which a public wisp host cannot do against a laptop'shttp://localhost:4000.Refs #121 (items 3 and 4). Item 2 and both acceptance turns stay open there.