Review main Merged Breaking

74126[!!!][TASK] Simplify TCA authMode settings

Christian Kuhn CR +2 V +2 Expert +865 −700 updated 04/01/22, 08:36

Commit message

To prepare towards a deployable backend group access
rights system, some of the more obscure options are
removed to reduce overall complexity.

* TYPO3_CONF_VARS['BE']['explicitADmode'] is finally
  gone: Following a deny list approach is a flawed security
  system. TYPO3's default setting (explicitADmode=allow)
  follows the very common "Least Privileged" principle,
  so editors need to be explicitly given access to a
  CType, as is done with all other permissions.

* The only valid value for TCA config option "authMode"
  on type="select" fields is now "explicitAllow". The
  previous "explicitDeny" value is abandoned following
  the reasoning above. The value "individual" is abandoned
  since it is a very rarely used setting (not a single
  match in TER).

* With authMode="individual" being gone, the select item
  array keys on position six that could be set to "EXPL_DENY"
  and "EXPL_ALLOW" are obsolete.

* Field "explicit_allowdeny" in table be_groups is
  simplified. This was a comma separated list of
  colon separated: "table:field:value:ALLOW/DENY".
  The last "ALLOW" or "DENY" is now obsolete.

The patch removes the above handling from the core. A
TCA migration scans TCA for invalid options and adapts
them. An upgrade wizard is in place to clean up the
be_groups explicit_allowdeny field of existing rows.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 31

Show 11 more files