Skip to content
All changes

Stricter API keys, a reserved content role and environment access

API keys stay within their role, leaving an organization ends access in every environment, and self-hosted servers trust no proxy by default.

Improved
3
  • Self-hostingBehaviour change: the self-hosted image now trusts no proxy in front of it by default (TRUST_PROXY 0), and the Quick Start and repo compose files set 0. Before, it trusted one hop with nothing in front, so any caller could choose the address it was seen from with an X-Forwarded-For header, to slip per-IP limits, put a false address in sessions and audit entries, or pass a company's IP allowlist. Behind nginx, a load balancer or Cloudflare, set TRUST_PROXY to the number of proxies that append to X-Forwarded-For, usually 1; the production compose already sets 1 for its bundled nginx.
  • Self-hostingBehaviour change: BuildBase's central server now reaches your self-hosted server only at the address it checked, and no longer follows a redirect from it. If the installation's Server URL redirects, for example from http to https, its calls, such as revoking a removed member's access, now fail with Tenant server answered a redirect. Set the Server URL to the address that answers.
  • EnvironmentsWhen BuildBase cannot confirm that an environment is open, a request into it now answers 503 ENVIRONMENT_UNAVAILABLE with Retry-After: 5, instead of 401 ENVIRONMENT_NOT_FOUND. Before, a short outage signed your app's users out of a development or staging environment and moved console tabs to production. Production is not affected.
Fixed
15
  • API keysChanging or deleting an API key (PATCH and DELETE /api/tokens/:id) no longer answers with the stored key, only its preview, as the list does. Before, the answer carried the key's hash, or the key itself for an old key not used since keys began to be hashed. An unknown id, a deleted key or another organization's key now answers 404 instead of 200 with null, and records no event or audit entry.
  • API keysArchiving an API key now turns it off too, and an archived key is refused with invalid_token. Before, archiving alone left the key working.
  • API keysBehaviour change: an API key that creates another key must now give the new key's role, no wider than its own, or it gets 400. A legacy key that still carries scopes can no longer create keys (403). Before, a key could create a key with no role that ran with its creator's whole role, so an admin key could make an owner key; a key made in the console with no role still follows its maker's role.
  • Access controlcontent-reader, the API role for keys that read content but not people, email or billing, is now reserved. Creating, changing or deleting a role by that name answers 403 with RESERVED_ROLE, and the Roles screens show it as a System role, view only. Before, a person role of that name could hand a content key any permission; while one exists, asking for a content-reader key answers 409 CONTENT_READER_ROLE_CONFLICT and issues none until you remove or rename it.
  • Access controlA role save can no longer be undone by a request that read the role just before it. Such a request could put the old permissions back in the cache for up to five minutes, for members and API keys alike. Saving a role again unchanged now refreshes it everywhere.
  • SecurityThe web analytics customer and visitor lists, which can name your end users, no longer show a key without users:read the names and emails its creator sees. Before, the creator's cached answer could reach that key for up to 30 seconds. The monday.com actions chart likewise no longer shows a key the organization-wide chart only its creator may see.
  • SecurityOn BuildBase cloud, a request sent straight to a server port, past the front proxy, can no longer choose the address it is seen from. Before, such a request could slip per-IP rate limits and put a false address in audit entries.
  • OrganizationsLeaving an organization now ends your access to it, as being removed does: your sessions there and the API keys you created are revoked. Before, a member could create an admin key, leave, and go on using it with no expiry.
  • EnvironmentsRemoving someone from your team, or their leaving, now reaches every environment even when BuildBase cannot list your environments at that moment. It retries for about 17 hours until each one has revoked their API keys and sessions. Before, that miss left them working in development and staging.
  • EnvironmentsBehaviour change: promoting between environments, in Changes or with npx @buildbase/sdk env diff, push and pull, now needs a console sign-in, and an org API key gets 403 CONSOLE_SESSION_REQUIRED. Once you have a user in the other environment, your role and block there decide. So someone demoted or blocked in that environment's Users screen can no longer promote into it or from it.
  • OrganizationsAn erased organization now stays erased. BuildBase treats it as missing at once, so a later request for it no longer creates an empty database for it again.
  • Self-hostingAn installation key can now mark an organization deleted, read the Stripe keys BuildBase holds for it, or release its custom and email domains only while the installation's owner is still an owner or admin of that organization. Before, an owner who was removed or demoted kept all of that through their installation's key.
  • Self-hostingAfter a self-hosted organization's signing key is rotated or replaced, the old key now verifies for 10 more minutes and then stops. Before, BuildBase went on serving it, so whoever held the old private key could keep signing people in to the organization's server, with any role.
  • ConsoleThe invitations list under Settings > Users now pages properly. Before, every page past the first showed the first 10 again. Your own pending invitations to other organizations now all show, not only the newest 10.
  • ConsoleWhen a CLI or agent asks to sign in to the console with a device code, the name it gives now also loses word joiners, direction isolates and byte order marks. A long name is cut without splitting an emoji.

Use what shipped this week

Everything in this release is already in the console and the SDK.

Free plan7-day free trial on paid plansNo credit card required