Skip to content

feat: add inline hooks quota support#9078

Open
wangsijie wants to merge 6 commits into
wangsijie-log-13689-define-logtoinlinehookkey-enum-and-zod-config-guardsfrom
wangsijie-log-13690-add-inlinehooksenabled-subscription-quota-flag
Open

feat: add inline hooks quota support#9078
wangsijie wants to merge 6 commits into
wangsijie-log-13689-define-logtoinlinehookkey-enum-and-zod-config-guardsfrom
wangsijie-log-13690-add-inlinehooksenabled-subscription-quota-flag

Conversation

@wangsijie

@wangsijie wangsijie commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Completes Logto-side support for the inlineHooksEnabled subscription quota key.

This PR keeps inlineHooksEnabled on the boolean feature-quota path: Core and Console treat older Cloud responses as false when the key is absent, Console includes the key in subscription usage/quota types, and the default Console development SKU keeps inline hooks disabled. The rollout plan is still selected-enterprise-only: only selected enterprise SKUs should be manually enabled, and everyone else stays disabled.

The SKU quota item is intentionally hidden from the Console plan quota UI for now, with an inline comment noting that it should wait until further testing before being opened.

It is intentionally not added to add-on/reportable usage reporting.

Cloud companion PR: logto-io/cloud#1956.

Testing

Tested locally

@github-actions github-actions Bot added the feature Cool stuff label Jun 23, 2026
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

COMPARE TO master

Total Size Diff 📉 -18.27 KB

Diff by File
Name Diff
.changeset/curly-bikes-travel.md 📉 -141 Bytes
.changeset/jwt-customizer-organization-context.md 📉 -925 Bytes
.changeset/release-passkey-account-center-access-control.md 📉 -338 Bytes
packages/account/src/pages/Security/PasskeySection/index.test.tsx 📉 -96 Bytes
packages/account/src/pages/Security/index.passkey.test.tsx 📉 -96 Bytes
packages/account/src/utils/security-page.passkey.test.ts 📉 -96 Bytes
packages/account/src/utils/security-page.test.ts 📉 -1 Bytes
packages/account/src/utils/security-page.ts 📉 -83 Bytes
packages/console/package.json 0 Bytes
packages/console/scripts/generate-jwt-customizer-type-definition.ts 📉 -403 Bytes
packages/console/src/components/BasicWebhookForm/index.tsx 📉 -256 Bytes
packages/console/src/consts/plan-quotas.ts 📉 -126 Bytes
packages/console/src/consts/quota-item-phrases.ts 📉 -222 Bytes
packages/console/src/consts/tenants.ts 📉 -146 Bytes
packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/GuideCard/index.tsx 📉 -42 Bytes
packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/index.tsx 📉 -795 Bytes
packages/console/src/pages/CustomizeJwtDetails/utils/config.tsx 📉 -1.15 KB
packages/console/src/pages/CustomizeJwtDetails/utils/type-definitions.ts 📉 -339 Bytes
packages/console/src/pages/SignInExperience/PageContent/AccountCenter/constants.ts 📉 -124 Bytes
packages/console/src/pages/SignInExperience/PageContent/AccountCenter/index.tsx 📉 -77 Bytes
packages/console/src/pages/SignInExperience/PageContent/index.tsx 📉 -175 Bytes
packages/console/src/pages/SignInExperience/types.test.ts 📉 -1.92 KB
packages/console/src/pages/SignInExperience/types.ts 📉 -222 Bytes
packages/console/src/pages/TenantSettings/Subscription/DowngradeConfirmModalContent/PlanQuotaDiffCard/PlanQuotaList/DiffQuotaItem/SkuQuotaItemPhrase.tsx 📉 -96 Bytes
packages/console/src/pages/TenantSettings/components/NotEligibleSwitchPlanModalContent/index.tsx 📉 -101 Bytes
packages/console/src/types/skus.ts 📉 -5 Bytes
packages/core/package.json 0 Bytes
packages/core/src/mocks/cloud-connection.ts 📉 -29 Bytes
packages/core/src/libraries/jwt-customizer.ts 📉 -742 Bytes
packages/core/src/middleware/koa-serve-custom-ui-assets.test.ts 📉 -2.17 KB
packages/core/src/middleware/koa-serve-custom-ui-assets.ts 📉 -602 Bytes
packages/core/src/oidc/extra-token-claims.test.ts 📉 -1.39 KB
packages/core/src/oidc/extra-token-claims.ts 📉 -822 Bytes
packages/core/src/queries/tenant-usage/types.ts 📉 -48 Bytes
packages/core/src/routes/account/mfa-verifications.test.ts 📉 -2.21 KB
packages/core/src/routes/account/mfa-verifications.ts 📉 -298 Bytes
packages/core/src/routes/experience/verification-routes/verification-code-helpers.test.ts 📉 -1.97 KB
packages/core/src/routes/experience/verification-routes/verification-code-helpers.ts 📉 -288 Bytes
packages/core/src/utils/storage/azure-storage.test.ts 📉 -2.09 KB
packages/core/src/utils/storage/azure-storage.ts 📉 -1.2 KB
packages/core/src/utils/subscription/types.ts 📉 -26 Bytes
packages/integration-tests/src/tests/api/experience-api/verifications/verification-code.suppress-delivery.test.ts 📉 -1.46 KB
packages/phrases/src/locales/ar/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/ar/translation/admin-console/jwt-claims.ts 📉 -258 Bytes
packages/phrases/src/locales/de/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/de/translation/admin-console/jwt-claims.ts 📉 -249 Bytes
packages/phrases/src/locales/en/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/en/translation/admin-console/jwt-claims.ts 📉 -210 Bytes
packages/phrases/src/locales/es/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/es/translation/admin-console/jwt-claims.ts 📉 -256 Bytes
packages/phrases/src/locales/fa-ir/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/fa-ir/translation/admin-console/jwt-claims.ts 📉 -295 Bytes
packages/phrases/src/locales/fr/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/fr/translation/admin-console/jwt-claims.ts 📉 -257 Bytes
packages/phrases/src/locales/it/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/it/translation/admin-console/jwt-claims.ts 📉 -263 Bytes
packages/phrases/src/locales/ja/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/ja/translation/admin-console/jwt-claims.ts 📉 -243 Bytes
packages/phrases/src/locales/ko/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/ko/translation/admin-console/jwt-claims.ts 📉 -236 Bytes
packages/phrases/src/locales/pl-pl/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/pl-pl/translation/admin-console/jwt-claims.ts 📉 -233 Bytes
packages/phrases/src/locales/pt-br/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/pt-br/translation/admin-console/jwt-claims.ts 📉 -251 Bytes
packages/phrases/src/locales/pt-pt/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/pt-pt/translation/admin-console/jwt-claims.ts 📉 -255 Bytes
packages/phrases/src/locales/ru/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/ru/translation/admin-console/jwt-claims.ts 📉 -358 Bytes
packages/phrases/src/locales/th/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/th/translation/admin-console/jwt-claims.ts 📉 -389 Bytes
packages/phrases/src/locales/tr-tr/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/tr-tr/translation/admin-console/jwt-claims.ts 📉 -235 Bytes
packages/phrases/src/locales/zh-cn/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/zh-cn/translation/admin-console/jwt-claims.ts 📉 -172 Bytes
packages/phrases/src/locales/zh-hk/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/zh-hk/translation/admin-console/jwt-claims.ts 📉 -172 Bytes
packages/phrases/src/locales/zh-tw/errors/storage.ts 📉 -72 Bytes
packages/phrases/src/locales/zh-tw/translation/admin-console/jwt-claims.ts 📉 -172 Bytes
packages/schemas/src/types/logto-config/index.test.ts 📉 -1.2 KB
packages/schemas/src/types/logto-config/index.ts 📉 -683 Bytes
packages/schemas/src/types/logto-config/inline-hook.ts 📉 -1.9 KB
packages/schemas/src/types/logto-config/jwt-customizer.ts 📉 -679 Bytes
pnpm-lock.yaml 📉 -217 Bytes

@wangsijie wangsijie force-pushed the wangsijie-log-13689-define-logtoinlinehookkey-enum-and-zod-config-guards branch from 6881986 to 0ea9051 Compare June 23, 2026 13:56
@wangsijie wangsijie force-pushed the wangsijie-log-13690-add-inlinehooksenabled-subscription-quota-flag branch from 045b209 to 00e09a2 Compare June 23, 2026 13:56
@github-actions github-actions Bot added size/s and removed size/s labels Jun 23, 2026
@wangsijie wangsijie changed the title feat(core): add LOG-13690 inline hooks quota flag feat(core): add inline hooks quota flag Jun 23, 2026
@github-actions github-actions Bot added size/s and removed size/s labels Jun 23, 2026
@github-actions github-actions Bot added size/l and removed size/s labels Jun 24, 2026
@wangsijie wangsijie changed the title feat(core): add inline hooks quota flag feat: add inline hooks quota support Jun 24, 2026
@github-actions github-actions Bot added size/l and removed size/l labels Jun 24, 2026
@github-actions github-actions Bot added size/l and removed size/l labels Jun 24, 2026
@github-actions github-actions Bot added size/m and removed size/l labels Jun 24, 2026
@github-actions github-actions Bot added size/s and removed size/m labels Jun 24, 2026
@wangsijie wangsijie marked this pull request as ready for review June 24, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant