Merge claude/security-c-1172: form submissions over REST only for staff, the job queue for an admin or Bearer CRON_SECRET, doctor visitor-writes
Conflicts with security-a-1172 kept both sides: imports (adminSameOrigin, jobsAccess), the doctor status (originKnown and visitorWrites), its test, and the e2e:built line (A's sign-in answers spec with C's CRON_SECRET). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -27,6 +27,7 @@ import type { RevalidatePathFn } from './modules/hooks/buildRevalidateHook.js'
|
||||
import type { I18nConfig } from './modules/i18n/types.js'
|
||||
import type { PagesOption } from './modules/pages/types.js'
|
||||
import type { AdminSameOriginOption } from './modules/security/adminSameOrigin.js'
|
||||
import type { JobsRunAccessOptions } from './modules/security/jobsAccess.js'
|
||||
import type { SafeBackRule } from './modules/security/totp/safeBack.js'
|
||||
import type { RequireSetupOptions } from './modules/security/totp/setupRequired.js'
|
||||
import type { VerifyLimitOptions } from './modules/security/totp/verifyLimit.js'
|
||||
@@ -209,6 +210,16 @@ export type IaplOptions = {
|
||||
/** Additional fields injected into SiteIntegrations global */
|
||||
integrationsFields?: Field[]
|
||||
|
||||
/**
|
||||
* Who may run Payload's job queue over HTTP (`/api/payload-jobs/run`, `/handle-schedules`) when the project
|
||||
* writes no `jobs.access.run` of its own: an admin signed in with the second factor (an admin's API key counts), or
|
||||
* `Authorization: Bearer <CRON_SECRET>` (16+ characters). Default on since 1.17.2; `secretVar` names another
|
||||
* variable; `false` keeps Payload's default (any signed-in account of any auth collection). A project's own
|
||||
* `jobs.access.run` always wins. In-process runs (`jobs.autoRun`, `payload jobs:run`) are not affected.
|
||||
* docs/security.md "Payload's job queue".
|
||||
*/
|
||||
jobsRunAccess?: false | JobsRunAccessOptions
|
||||
|
||||
/**
|
||||
* Image lightbox labels in the Notifications global (a "Lightbox" group:
|
||||
* close, previous, next, counter, dialog name, trigger name), localized per
|
||||
|
||||
Reference in New Issue
Block a user