Add config validation constraint for trusted types policies

Created on 7 September 2024, 7 months ago
Updated 14 September 2024, 7 months ago

Problem/Motivation

The Trusted Types policy names ABNF is
tt-policy-name = 1*( ALPHA / DIGIT / "-" / "#" / "=" / "_" / "/" / "@" / "." / "%")

Proposed resolution

Add a regular expression validation constraint to Trusted Types policy names

From CspSettingsForm::validateForm(): <^[a-z0-9#=_/@.%-]+$>i

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

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