Validate directive names in configuration

Created on 7 September 2024, 7 months ago

Problem/Motivation

The Merge Request for 📌 Add validation constraints to core.extension Needs review includes a SequenceKeys constraint that would allow validating the directive names in config

csp_policy:
  mapping:
    directives:
      constraints:
        SequenceKeys:
          constraints:
            Choice:
              callback: \Drupal\csp\Validation\DirectiveNames::values

Proposed resolution

Add a config validation constraint that checks directive sequence keys against Csp::DIRECTIVES

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Postponed

Version

2.0

Component

Code

Created by

🇨🇦Canada gapple

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024