Repository navigation
v0.45.0
Image: ghcr.io/alejandroerickson/what-build:v0.45.0 (linux/amd64), built from a1595bf827ea13438ce8068234eb724f0c17e0ce.
Migrations. This release changes the database schema since v0.44.2, the last release with an image:
0054_the_landing_funnel.sql0055_abuse_counters.sql0056_welcome_on_own_product.sql
Going back to an earlier release needs the database restored to before these ran. Take a restore point before deploying.
If a release breaks your deployment: recovering from a bad release.
Upgrading.
-
The database connections each instance holds are a setting,
WHATBUILD_DATABASE_POOL_SIZE:
10 when unset, as before; otherwise a whole number from 5 to 100, and on anything else the server
does not start. Nothing needs doing, and a deployment that sets nothing keeps 10. One that raises
it first checks that its most instances times the pool, with the migration job, the backup and
anyone else connected, fits its database's connection limit
(the database's connections); on Cloud Run it passes
DATABASE_POOL_SIZEto every later run ofsetup.sh, which otherwise sets 10 again. No
migration. -
Mockups and Story pages keep their newest 10 versions, and older ones are deleted. Publishing
a version of a mockup or a Story page past what its organization's plan keeps
(mockup_versions_max,story_page_versions_max) deletes its oldest versions, for good; a mockup
also keeps every version a Story page shows. A plans file that leaves them out, Unlimited, and a
deployment that defines no plans all keep 10. Nothing is deleted when the release deploys: a
mockup or Story page past the number loses its oldest versions the next time someone publishes
it. To keep more, or every version (null), set them in each plan of the deployment's plans file
(deploy/plans.example.jsonkeeps 5 on Free and 10 on Pro) or in Instance admin → Plans, before
people publish; Unlimited and a deployment that defines no plans always keep 10. Agents are told in
the answer (versions_deleted), and reading a deleted version answers410 version_deleted. No
migration (tools_version0.72.0); a connected client sees the new descriptions after a new
session. -
WhatBuild says product engineering, not product discovery, in the app, the site, the tutorial,
the mail, the guide, the operations' descriptions and the MCP server's instructions. It asks
nothing of a deployment and adds no migration (tools_version0.72.0, as above); a connected
client sees the new instructions after a new session. -
The landing pages are followed from a visit to people coming back
(the landing-page funnel). The release migrates
(0054_the_landing_funnel.sqladdsaccounts.came_via,accounts.returned_atand the table
landing_presses, all empty), which the previous release never reads or writes, so it keeps
working on the migrated schema and going back needs only its image. Behind Cloudflare, deploy the
Worker with the release, as always: it serves the pages that count their buttons' presses and
passes those counts on (POST /api/v1/pressed); until then nothing is counted. With it, people
reading in LinkedIn's app are split like everyone else, where until now they always got/; only
LinkedIn's link previews still do. An account made before the release getsreturned_atat its
first call after it. Nothing else needs doing. -
Explore the demo opens the demo itself. On the landing pages and the plans page it leads to
a sign-in page titled Explore the demo, then to the example organization's first product, on its
Idea, instead of the overview. People who sign in any other way still land on the overview. No
migration. Behind Cloudflare, deploy the Worker with the release, as always: until then the pages
it serves still lead to the overview. -
A link to the site shows a card (LinkedIn, X, Slack, iMessage): both landing pages name a
social card and a canonical address, and no longer say they are in private preview. Behind
Cloudflare, deploy the Worker with the release, as always: the Worker makes the card's address
whole, and until it is deployed again, link previews get the pages without a card. Behind any
other front, the image does it. A link shared before may keep its old preview on LinkedIn for
about a week; its Post Inspector reads the site again (Cloud Run guide). -
The site's plans page offers Start using WhatBuild wherever anyone may sign up, as the
landing pages do, with Explore the demo first while guests may come in; it no longer says people
are let in a few at a time unless nobody may sign up. Accounts made from it come into the
landing-page funnel as/plans/, a row of their own
(the funnel). On the landing pages, the bar at the top is
solid, the last screen fills the window with nothing of the last picture above it, and, where
nobody may sign up, Start using WhatBuild puts the cursor in the form's email field, which keeps
its height on a phone. No migration or setting. Behind Cloudflare, it reaches visitors when the
Worker is deployed with the release, as always. Nothing else needs doing. -
The tutorial's welcome comes once more on a product of one's own. Someone offered it in the
example organization is offered it again, once, on the first product of their own they open.
People will notice: a guest who explored the demo and then starts an organization sees the
welcome there. The release migrates (0056_welcome_on_own_product.sqllets
accounts.tutorials_seenholdwelcome-own, and gives it to whoever was offered the welcome and
is in an organization other than the example, so the welcome does not come back for anyone
already using their own). The previous release leaveswelcome-ownalone and never offers the
welcome twice, so going back needs only its image. A toast that points at the account menu now
goes when the person leaves the screens it is about, so it no longer follows a guest onto the
Welcome form. Nothing needs doing. -
A day's place is used only when an organization starts on it. With New organizations a day
above 0, Start using WhatBuild, and Start your own organization in the app, now only say whether
a place is open and take people to the Welcome form; the place is taken when they press Start
organization, and someone who looks and leaves uses none. Whoever presses it after the day's last
place went is told so, starts nothing and joins the waitlist with the name they typed. A place let
go to someone on the waitlist is still held for them, by email, and counts on the day it is given.
Someone on the waitlist who joined an organization meanwhile is passed over, and stays on the
waitlist for an owner to let in. Starting organizations in Instance admin therefore lists only
those who started one or were let in. Places already given before the release stay their holders' allowances. Welcome no longer
waits behind the guests' waiting page. An agent'screate_tenanttakes no place, as before. No
migration and nothing to do (tools_version0.72.0, for the guide's wording); a number set for
New organizations a day now counts organizations started, so an owner who set it to allow for
people who look and leave may lower it. -
Abuse limits, per client and for the deployment. Sign-in links, new accounts, the waitlist
and agent registrations are limited per client address in an hour, and per IPv6 /48 under limits
three times larger; the sign-in links and invitations the deployment emails in an hour, the
accounts it makes in an hour for people nobody let in, and the waitlist have ceilings; an
organization makes at most 100 invitations a day, on any plan. The defaults are in
§9.2; a deployment changes them in
WHATBUILD_ABUSE_LIMITS, and a name or number it does not take stops the server at start. The
deployment-wide limit on the waitlist (200 an hour) becomes one of them. Agent registrations
waiting for their first connection are no longer refused past a number (it was 50 an hour):
the deployment keeps 1,000 (agent_registrations_waiting) and forgets the oldest to make room.
Behind Cloudflare, client addresses count once the Worker of this release is deployed (it names
the address and seals it with the edge key) and the service holds the edge key; until then, and on
any deployment without them, only the ceilings and the organization's day apply. The service
trusts no address the Worker did not seal, so the Worker and the service may be deployed in either
order, as usual; a service whose Worker is older logsclient_address_missingas an error, once an
instance, which the log's alert mails, and cloud-run.md says how to
check that addresses arrive. An invitation's email now goes out after its call commits; one the
hour's mail cannot cover, or that could not be sent, is made with its link and says
emailed: false(before, a mail server's failure refusedmembers.grant). Re-run
PROJECT_ID=$P node deploy/cloud-run/alerts.mjsfor the new alert,whatbuild: an abuse ceiling filled, and the new words ofwhatbuild: errors in the log. Migration0055_abuse_countersadds
a table the previous release never reads, so it keeps working against the migrated schema.
tools_version0.72.0:members.grantandmembers.grant_manydescribe the daily cap, and the
refusal ofmembers.grant_manysays inroom_forhow many more the organization can invite today;
products.limitslists the cap asinvitations_per_organization, the name its refusal gives.
A deployment with the nightly dump adds
--exclude-table-data=abuse_countersto its job'spg_dump, so its dumps keep no client's keyed
hash past the two days (gcloud run jobs update whatbuild-backup --args=…with the guide's
arguments). -
The Worker answers only on its custom domains.
wrangler.tomlturns off itsworkers.dev
address and its preview addresses, which sat outside the zone's rate limit and WAF rules; the
next deploy of the Worker removes them. Anything that called the Worker there calls the app's
domain instead. -
An optional bot check, Cloudflare Turnstile. With
WHATBUILD_TURNSTILE_SITE_KEYand
WHATBUILD_TURNSTILE_SECRET_KEY(both, or neither), asking for a sign-in link, starting Google or
Microsoft sign-in and joining the waitlist ask for its token. Without them nothing changes. To
turn it on behind the Worker, deploy the Worker with the release first, then give the service the
keys (cloud-run.md), and name Cloudflare inWHATBUILD_PROVIDERS.
The page runs the check when a form is sent, and loads nothing of Cloudflare's before.
Production refuses Cloudflare's test keys, site key and secret key alike. On Cloud Run,setup.shgives the secret key to the
service only, never the migration job, and once the secret exists it stops unless
TURNSTILE_SITE_KEYis passed too. Each refused check is logged with its reason; one that refuses
everyone (Cloudflare out of reach, a host or secret that does not match the widget) is logged as
an error once an hour, which the log's alert mails.
What's Changed
- Pass LANDING_SPLIT with every Worker deploy by @alejandroerickson in #341
- Report a failed scheduled run on main until a scheduled run passes by @alejandroerickson in #342
- Say who else can start organizations, name switches by their setting, and correct the starting-to-use-whatbuild plan by @alejandroerickson in #343
- Keep each mockup's and Story page's newest versions, as many as the plan says by @alejandroerickson in #344
- Say what Unlimited keeps, and name each No limit checkbox by its limit by @alejandroerickson in #345
- Leave nothing loading at a version that is gone, and add an end-to-end plan for the versions kept by @alejandroerickson in #346
- Follow each landing page from a visit to people coming back by @alejandroerickson in #349
- Add a stepped load test for a dev deployment, with its synthetic people by @alejandroerickson in #351
- Say product engineering, not product discovery by @alejandroerickson in #347
- Open the demo itself from Explore the demo by @alejandroerickson in #353
- Merge the launch fixes: #348, #352, #354, #355 by @alejandroerickson in #357
- Give the landing pages a social card by @alejandroerickson in #348
- Offer Start using WhatBuild on the site's plans page, and fix the landing pages' bar, end and form by @alejandroerickson in #352
- Offer the tutorial's welcome once more on a product of one's own by @alejandroerickson in #354
- Use a day's place only when an organization starts on it by @alejandroerickson in #355
- Allow the Playbook starter's first folder in commits made before its move by @alejandroerickson in #356
- Make each instance's database pool size a setting by @alejandroerickson in #358
- Limit what a script can make WhatBuild do before sign-up opens by @alejandroerickson in #350
- Give v0.45.0 its upgrading notes by @alejandroerickson in #359
Full Changelog: v0.44.2...v0.45.0