Support configurable HTTP security headers across API, page and admin responses
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend-api-design, security
Línea de trabajo
Start by reading the existing Tomcat HttpHeaderSecurityFilter configuration in WEB-INF/web.xml and the VelocityLiveMode code that applies ContentSecurityPolicy.header. Trace how API, page, and admin responses are created and how DOT_ properties and forwarded protocol information are handled. Done means the acceptance criteria are covered, including configurable headers across the response types, safe defaults, and documented recommendations.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem Statement
dotCMS has no supported, configurable way to send a standard set of HTTP security headers on all responses. Security scans flag missing Strict-Transport-Security, Content-Security-Policy, Referrer-Policy and Permissions-Policy headers on API, page and admin responses.
Current behavior:
- HSTS comes only from Tomcat's
HttpHeaderSecurityFilterinWEB-INF/web.xml(hstsMaxAgeSeconds=3600). Tomcat only sends it on secure requests, so it is missing when TLS ends at a reverse proxy or load balancer, which is the usual deployment. The value can't be configured with an environment variable. - Content-Security-Policy (
ContentSecurityPolicy.header) is applied only to Velocity-rendered pages (VelocityLiveMode), not to REST/GraphQL responses or the admin UI. - Referrer-Policy and Permissions-Policy are never set.
Steps to Reproduce
- Run dotCMS behind a reverse proxy that terminates TLS (default Docker/Kubernetes setup).
- Request
POST /api/v1/graphql, a rendered page and an admin URL over HTTPS. - Inspect the response headers.
- Observe Strict-Transport-Security, Content-Security-Policy, Referrer-Policy and Permissions-Policy are absent (CSP only appears on pages, and only when
ContentSecurityPolicy.headeris set).
Acceptance Criteria
- HSTS can be enabled and configured with
DOT_properties, and is sent when the original request was HTTPS behind a proxy (e.g. honoringX-Forwarded-Proto). - Referrer-Policy and Permissions-Policy can be set with config properties.
- CSP can be set separately for API responses and admin UI responses, not only Velocity pages.
- Defaults don't break the admin UI, UVE/headless editing, or existing integrations.
- A recommended baseline header set for self-hosted installs is documented.
dotCMS Version
26.09.28-02 (also present on main)
Severity
Medium - Some functionality impacted
Links
- Lenguaje dominante
- Java
- Estrellas
- 972
- Forks
- 493
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 228
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotCMS/core
-
dotCMS : UVE OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Opening content from Content Search replaces the "Search" breadcrumb in the new Edit Content screenAbiertodotCMS: New Edit Contentlet OKR : Customer Support Team : Falcon Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Escape the Binary field hint in the legacy content editor so an apostrophe doesn't break the fieldAbiertoOKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 2 días
-
dotCMS : Permissions OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
Todos los issues de dotCMS/core
Issues similares
-
desktop grp:about type:graphics-bug ui-public
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
it-at-m/Wahllokalsystem#3846 ·
Los mantenedores suelen responder en 2 días
-
Area/Connector module/solace Priority/Low Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
ballerina-platform/ballerina-library#9849 ·
Los mantenedores suelen responder en 1 día