Security • A valid license key cleared its address's failure count, so a caller could keep guessing keys without ever being locked out. Successes no longer clear failures, and floating checkout now counts unknown keys too. (#148, thanks @AbdullahZulfiqar2005) Changed • Requesting a login code returns 503 EMAIL_UNAVAILABLE when the email settings can't be read, instead of saying a code was sent. • Login fails with 500 when its refresh token can't be stored, instead of a session that silently ends a day later. A logout that can't revoke the refresh tokens returns 500 and keeps the cookies. Fixed • Refunding a mid-period change no longer cancels the subscription and revokes the license when Stripe raised the proration as an invoice item. (#218, thanks @rohitsux) • Saving settings from a tab opened earlier no longer reopens restricted signup or undoes other changes made since. (#203, thanks @Anshgrover23) • A failed analytics count is not saved as zero, so the day is taken again on the next run. (#217, thanks @smithmankar) • A webhook retry stays pending when its webhook can't be read, and deleting a webhook that's already gone returns 404 without a second audit entry. (#215, #209, thanks @gagan-baghel and @akshatmalik-bruh) • A customer's Active Seats counts only teams they've joined. (#213, thanks @gagan-baghel) • Updates ending reminders are tagged by UTC date, so replicas in different time zones send one. (#210, thanks @AbdullahZulfiqar2005) • Admin searches treat _, % and \ literally. (#147, thanks @Tthanh2k6) • Plans: per-seat desktop plans show their seat range and a plan with 0 activations can be edited after its product becomes Hybrid. (#226, #205, thanks @Harshgoyal2004 and @Anshgrover23) • Update settings no longer carry one product's required update policy to another. (#204, thanks @Anshgrover23) • Portal: floating licenses show seats in use, and perpetual licenses show "Perpetual". (#221, #187, thanks @Aditya-XR and @akshatmalik-bruh) • Signing in as someone else in the same tab no longer shows the previous account's data, and a wrong login code no longer says "Session expired". • Site name, logo, brand color and default language apply as soon as settings are saved, and the default language applies on a first visit. • New entitlements appear in the plan editor right away, and portal quotas show plain numbers instead of bytes. • Downloading a product's public key renews an expired session instead of saving an error. • A failed update check is retried after 5 minutes and no longer shows "Up to date". • Dashboard license links open the license, analytics dates no longer shift a day west of UTC, and the earliest expiry when issuing a license is today in your time zone. • The empty products table spans every column. (#185, thanks @akshatmalik-bruh) Upgrade notes • No migrations. • Sessions, refresh tokens, API keys and activations keep working across the upgrade. • An address that keeps sending bad license keys stays locked out even if it also sends a valid one. SDK clients sharing one address behind NAT may hit 429 LOCKED_OUT sooner. • Clients of the login code endpoint should handle 503 EMAIL_UNAVAILABLE. • Rolling back to v0.1.21 needs no migration rollback. New Contributors • @rohitsux made their first contribution in https://github.com/tabloy/keygate/pull/218 • @Anshgrover23 made their first contribution in https://github.com/tabloy/keygate/pull/203 • @Harshgoyal2004 made their first contribution in https://github.com/tabloy/keygate/pull/226 • @smithmankar made their first contribution in https://github.com/tabloy/keygate/pull/217 • @Aditya-XR made their first contribution in https://github.com/tabloy/keygate/pull/221 Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.21...v0.1.22
Changed • Metered usage is billed to the Stripe meter and customer it was recorded against. Changing or deleting the entitlement, or moving the license to another plan, before the next sync no longer moves or drops it. (#143, thanks @divanshu-go) • Names made only of whitespace are refused with 400. (#145, thanks @AbdullahZulfiqar2005) Fixed • A license expired by the past-due sweep now emails the customer. (#130, thanks @5eBeKs) • An idempotency key past its 24h lifetime is claimed afresh instead of replaying the old response or returning 409. (#131, thanks @AlSh007) • Stripe webhook auto-setup decides whether BASE_URL is local from its host, so a public URL that merely contains localhost registers an endpoint, and [::1] or 0.0.0.0 counts as local. (#132, thanks @AlSh007) • Webhook URLs with no host are refused. (#135, thanks @AlSh007) • Dunning emails go through the email queue, so an SMTP outage no longer loses one and replicas never send one twice. A notice for a past-due episode that has ended or moved on is dropped, and one the queue gives up on is tried again after 6 hours. (#133, thanks @abhijeetgaur-dev) • Renewal, expiry, update period and trial ending dates in emails are printed in UTC. (#134, thanks @AlSh007) • Reminder and dunning emails wait until email is configured instead of being used up. • Portal invoices show amounts in the currency's own units. Unpaid invoices show the amount due instead of 0, and a paid invoice shows its billed total, including one settled outside Stripe or from the customer's balance. (#137, thanks @5eBeKs) • Bare border classes use the theme's border color again. (#140, #144, thanks @divanshu-go and @Tthanh2k6) • Portal quota usage messages are translated. (#141, #142, thanks @divanshu-go) Upgrade notes • One migration, 20261113_metered_destination. It adds two columns with defaults and is instant on any table size. • Metered usage queued before the upgrade is sent where the license points when it syncs, as before. Usage recorded after the upgrade keeps its meter and customer. • Clearing or deleting a metered entitlement no longer drops usage waiting to sync. To not bill it, adjust it in Stripe. • During a rolling upgrade, v0.1.20 replicas still send dunning emails directly. Finish the rollout before you rely on the queue. • Rolling back to v0.1.20 needs no migration rollback. New Contributors • @5eBeKs made their first contribution in https://github.com/tabloy/keygate/pull/130 • @AlSh007 made their first contribution in https://github.com/tabloy/keygate/pull/131 • @Tthanh2k6 made their first contribution in https://github.com/tabloy/keygate/pull/144 • @divanshu-go made their first contribution in https://github.com/tabloy/keygate/pull/142 • @AbdullahZulfiqar2005 made their first contribution in https://github.com/tabloy/keygate/pull/145 • @akshatmalik-bruh made their first contribution in https://github.com/tabloy/keygate/pull/146 Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.20...v0.1.21
Changed • Ending a Stripe subscription stops the license right away, and canceling at once no longer extends valid_until. (#125, thanks @ParthKadam11) • Reinstating a Stripe-billed license checks the subscription with Stripe first, so Stripe has to be reachable. • Without Stripe configured, the portal's cancel, billing, invoice and checkout verify endpoints return 503 PAYMENTS_UNAVAILABLE. • Failed admin actions return 500 instead of 400 or 404. (#118, thanks @Somuuuu007) Fixed • An expired license, or a canceled one whose access has ended, refuses new devices, floating sessions and member keys. (#120, thanks @Somuuuu007) • Revoke and suspend are transactional. Suspend, expiry and a Stripe pause or cancel now clear floating sessions too. (#95, #96, #112, #115, thanks @rishu685 and @ParthKadam11) • Device, seat and quantity limits follow a plan change made at the same time, and an upgrade to a plan not sold per seat checks team size against max_seats. (#84, thanks @shubhamkapoor01) • Paused member seats are refused on license token update feeds. (#88, thanks @ParthKadam11) • Quota remaining is 0, not negative, once usage passes a lowered quota. (#117, thanks @Somuuuu007) • Webhook retries are claimed, so replicas never send one delivery twice. (#90, thanks @abhijeetgaur-dev) • Metered billing keeps up on busy products. (#110) • Release version comparison follows semver. (#91, #92, thanks @rishu685) • Analytics: top users, monthly retention and average devices count correctly, and Trends and Retention fill in after a restart. (#99, #100, #101, #104, #129, thanks @gagan-baghel) • Welcome emails use the site name, plain text emails keep text after a stray <, and the portal refreshes after an invite is accepted. (#86, #89, #93, #94, thanks @ParthKadam11 and @rishu685) • License exports include seat quantity. (#106, thanks @rishu685) Upgrade notes • One migration, 20261101_webhook_delivery_claim. It adds a column with a default and is instant on any table size. • During a rolling upgrade, Stripe events handled by v0.1.19 replicas follow the old rules. Finish the rollout before you rely on the new behavior. • Upgrading from v0.1.16 or earlier also applies v0.1.17's seat changes: max_seats counts the owner. New Contributors • @abhijeetgaur-dev made their first contribution in https://github.com/tabloy/keygate/pull/90 • @gagan-baghel made their first contribution in https://github.com/tabloy/keygate/pull/99 • @Somuuuu007 made their first contribution in https://github.com/tabloy/keygate/pull/103 Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.19...v0.1.20
Fixed • Stripe refunds and disputes take back only what they paid for. A full refund of the current period, or a lost dispute, cancels the subscription and revokes the license (an upgrade goes back to its free plan); a refund of a past period is only audited. A second renewal refund no longer takes about a year off. • A failed delayed payment cancels the subscription Keygate sold, so it no longer bills with no license. • license.reinstated is sent once when payment brings a license back. A license expired for non-payment stays expired while unpaid, and an operator's suspension survives payment. • Stripe pauses follow the subscription, and each change is told once. customer.updated reads the current email from Stripe. • The admin customer view showed no subscriptions. (#70, thanks @rishu685) • Analytics recent activity showed other products' events. (#71, #72, thanks @rishu685) • The checkout success page showed an error while a paid license was still being delivered. (#73, #74, thanks @ParthKadam11) • Trial conversion was always 0%. (#78, #79, thanks @rishu685) • Trials not billed by Stripe and with no fallback plan were promised grace days. (#75, thanks @shubhamkapoor01) • Usage reset hit the current period instead of the row clicked, and an unknown period now returns 400. (#76, thanks @shubhamkapoor01) • POST /admin/licenses now takes quantity, defaulting to the plan's minimum seats. (#81, #82, thanks @rishu685) Upgrade notes • Two migrations. 20261030_audit_product locks audit_logs briefly, about 0.4 to 1.3 s per million rows. For a large table, create the column and index first: ALTER TABLE audit_logs ADD COLUMN IF NOT EXISTS product_id TEXT; CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_audit_product ON audit_logs(product_id, created_at); • Rolling back to v0.1.18 is an image swap. • Give a restricted Stripe key read access to Charges: lost disputes read the charge. • Per-seat licenses created through the admin API before this release have quantity 1. Raise it where needed. • Upgrading from v0.1.16 or earlier also applies v0.1.17's seat changes: max_seats counts the owner. New Contributors @rishu685 made their first contributions. Thank you! Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.18...v0.1.19
Fixed • Stripe webhooks answered 200 when the license update failed, so Stripe never retried. An update from a fresh Stripe read, or for an ended subscription, now answers 500 when it fails and is retried. (#64, #68, thanks @ParthKadam11 and @shubhamkapoor01) • A failed subscription status update rolled back the license change but reported success, so license.canceled could go out for a license that stayed active. Transactions aborted by an earlier statement now fail instead. (#69, thanks @shubhamkapoor01) • A flag entitlement set to false was reported enabled by /license/entitlements and reached tokens as the string "false". Flags are now read like bools. (#61, #62, thanks @Manav2209) • Repeated lockouts fell back to 30 seconds after 8 minutes. They now keep doubling up to 30 minutes, and failures during a lockout are not counted. (#65, #66, thanks @codewithwaleed) • /assets files were served without the immutable Cache-Control header on Windows. (#60, #63, thanks @ParthKadam11) • BF_MAX_FAILS=1 took two failures to lock out, and a BF_LOCKOUT_SECONDS above 1800 made the first lockout longer than the 30 minute cap. Upgrade notes • No migrations. Rolling back to v0.1.17 is an image swap. • Flag features are now JSON booleans in /license/verify and in the token's ftr, as bool features already were. Tokens issued by v0.1.17 keep the strings until they expire (7 days by default), so clients should accept both for that time. • A flag is off only at false; older values such as 1 or yes stay on. To find them: SELECT feature, value FROM entitlements WHERE value_type = 'flag' AND value NOT IN ('true', 'false'); • Keep the time with mixed versions short: v0.1.17 instances still answer 200 when a Stripe update fails. New Contributors @shubhamkapoor01, @Manav2209, @codewithwaleed, @ParthKadam11 and @chxhwc made their first contributions. Thank you! Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.17...v0.1.18
Added • Plans sold per seat: buyers pick the seat count at checkout and can change it later in the portal. Webhook event license.quantity_changed. (#41, thanks @thumpercastle) • Every member of a license gets a license key of their own. Removing a member revokes the key and releases their devices. • A trial plan can name a free plan to move to when the trial ends, instead of expiring. The key and devices stay; the fallback's limits apply. (#57, thanks @ritzy1978) • Per-product license key prefix. (#52, thanks @tbhaxor) Changed • max_seats counts the owner: it is the number of people a license holds. • Members beyond the seat limit are paused until a seat is free, the last to join first. Their keys answer 403 SEAT_PAUSED on activate. • The dashboard's Change Plan refuses a plan with fewer seats than the people on the license (409 SEATS_IN_USE). An invitation cannot be accepted while no seat is free (409 SEAT_LIMIT). • License search in the dashboard matches emails, members included, or a whole license key. A key prefix no longer matches. Removed • The member admin role. Only the license owner manages members; existing admin members become members, and adding a seat with role: admin answers 400. Fixed • The hourly sweep could expire a Stripe-billed trial before Stripe reported the payment. It now waits the plan's grace days, at least one. Upgrade notes • Migrations run at startup. Stop every older instance first: it does not know member keys or trial fallbacks. • Plans with max_seats 2 or more are raised by one, so they keep their capacity. Plans at 1 now hold the owner alone, and members on such licenses are paused. • Set trial fallback plans only once every instance runs v0.1.17. If you customized the Trial Expired or License Expiring email template, add {{.FallbackPlan}} so moved customers are told their plan. • Rolling back to v0.1.16: run the down migrations from 20261029 back to 20261025 first. Member keys and seat quantities are lost. Full Changelog: https://github.com/tabloy/keygate/compare/v0.1.16...v0.1.17
## Security - Product-bound API keys could export every product's licenses. Bound keys are now held to their product everywhere, and admin keys can no longer be bound. (#51) - Portal plan changes are always prorated, and login codes allow 5 attempts. (#50) ## Added - Self sign-up for free plans. (#46, thanks @ritzy1978) - Upgrade a free license to a paid plan from the portal, keeping its key. (#47, thanks @ritzy1978) - Webhook event `license.updates_changed`, and a full OpenAPI spec. (#51) ## Changed - Floating plans answer `409 FLOATING_LICENSE` on activate and verify; use floating checkout. (#51) - The dashboard's Refund is now Cancel and revoke, which moves no money. (#51) ## Fixed - STARTTLS on implicit TLS SMTP connections. (#49, thanks @dongdongzhang8) - Several invalid requests answered 500. (#51) ## Upgrade notes - Migrations run at startup. - Rate limit, webhook retry and quota warning settings were never applied and are removed; use the environment variables. **Full Changelog**: https://github.com/tabloy/keygate/compare/v0.1.15...v0.1.16