M1 (2, 3): the Turnstile env secret is deprecated; doctor rules access-missing, turnstile-degraded, turnstile-env-key
(2) Stage one of the deprecation: TURNSTILE_SECRET_KEY from the environment still works when the panel field is empty, logs once that it is deprecated, and the doctor's deep status reports it (rule turnstile-env-key, warning). Nothing is removed. (3) access-missing (static, warning): ipalKit without `access` means every panel account is an admin. turnstile-degraded (deep): Turnstile is not checking forms — warning, error after a day. The deep status carries the recorded state and where the secret comes from, never a key. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
8fa71238ce
commit
42fdad8c2d
+12
-12
@@ -297,6 +297,16 @@ export { buildTableOfContentsField, extractHeadings, headingText } from './modul
|
||||
export type { ExtractHeadingsOptions, HeadingItem, HeadingLevel } from './modules/richtext/headings.js'
|
||||
// Lexical → Markdown (pure, no React) — for AI-readable output.
|
||||
export { lexicalToMarkdown } from './modules/richtext/lexicalToMarkdown.js'
|
||||
export {
|
||||
INTEGRATION_SECRET_FIELDS,
|
||||
isSecretMask,
|
||||
keepSecretBeforeValidate,
|
||||
maskSecretAfterRead,
|
||||
SECRET_CLEAR,
|
||||
SECRET_MASK,
|
||||
writeOnlySecret,
|
||||
writeOnlySecrets,
|
||||
} from './modules/secrets/writeOnly.js'
|
||||
export {
|
||||
buildAdminCsp,
|
||||
buildAdminCspHeaders,
|
||||
@@ -316,6 +326,7 @@ export {
|
||||
UPLOAD_SECURITY_HEADERS,
|
||||
withSecurityConfig,
|
||||
} from './modules/security/index.js'
|
||||
|
||||
export type {
|
||||
BuildAdminCspArgs,
|
||||
BuildCspArgs,
|
||||
@@ -327,21 +338,10 @@ export type {
|
||||
TotpUser,
|
||||
WithSecurityConfigOptions,
|
||||
} from './modules/security/index.js'
|
||||
|
||||
export type { BuildSecurityHeadersArgs, SecurityHeader } from './modules/security/index.js'
|
||||
export { findImportMapFile, missingImportMapEntries } from './modules/security/totp/importMapCheck.js'
|
||||
export { changedViewKeys, copyViews, SAFE_TOTP_VIEW, safeAdminBack, totpViewImportKey, wrapTotpViews } from './modules/security/totp/safeBack.js'
|
||||
export type { SafeBackContext, SafeBackRule, TotpViewComponent } from './modules/security/totp/safeBack.js'
|
||||
export {
|
||||
INTEGRATION_SECRET_FIELDS,
|
||||
isSecretMask,
|
||||
keepSecretBeforeValidate,
|
||||
maskSecretAfterRead,
|
||||
SECRET_CLEAR,
|
||||
SECRET_MASK,
|
||||
writeOnlySecret,
|
||||
writeOnlySecrets,
|
||||
} from './modules/secrets/writeOnly.js'
|
||||
export { requireSecondFactor, secondFactorPassed, twoFactorSetupDeadline, twoFactorSetupState } from './modules/security/totp/secondFactor.js'
|
||||
export type { TwoFactorSetupState } from './modules/security/totp/secondFactor.js'
|
||||
export { SETUP_FROM_FIELD } from './modules/security/totp/secondFactor.js'
|
||||
@@ -425,7 +425,7 @@ export type { Theme, ThemeConfig, ThemeSetting } from './modules/theme/index.js'
|
||||
// which imports 'server-only'.
|
||||
export { defineTokens, IPAL_BREAKPOINTS, IPAL_TOKENS, ipalVar } from './modules/tokens/index.js'
|
||||
export type { IpalTokenName, TokensInput } from './modules/tokens/index.js'
|
||||
export { getTurnstileConfig } from './modules/turnstile/config.js'
|
||||
export { getTurnstileConfig, TURNSTILE_SECRET_ENV, turnstileSecretFromEnv } from './modules/turnstile/config.js'
|
||||
export type { TurnstileConfig } from './modules/turnstile/config.js'
|
||||
export { ipalKit } from './plugin.js'
|
||||
export type { IpalOptions, ThemeOptions } from './types.js'
|
||||
|
||||
Reference in New Issue
Block a user