Enforce HTTPS-only in RequestCostPublisher (refuse, don't warn)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start at RequestCostPublisher.java:124-139 and inspect the existing “both push vars set ⇒ activate” validation path. Ensure a non-https REQUEST_COST_PUSH_URL refuses activation or sending, while an https URL remains unchanged; verify the startup validation or no-op behavior using the relevant existing tests if present.
Written by the indexing model from the issue text.
Description
Parent
Part of #36927.
Problem
RequestCostPublisher.java:124-139 only warns if REQUEST_COST_PUSH_URL isn't https:// — it doesn't refuse to send. TLS holds today only because config happens to be correct, not because the code enforces it. This matters more once the collector accepts traffic that could originate outside OVH's own network (see #36927).
Change
Reject (fail validation at startup / no-op the publisher, matching the existing "both push vars set ⇒ activate" pattern) if REQUEST_COST_PUSH_URL's scheme isn't https, instead of logging a warning and sending anyway.
No env var changes — production config is already https://, so this is a pure guardrail, not a behavior change for anyone configured correctly.
Design reference
ADR-0022 (dotCMS/platform-adrs#73) and docs/plan-request-cost-provider-attribution.md §3.1 in dotCMS/ovh-k8s-cluster.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 164
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotCMS/core
-
dotCMS : Build Team : Falcon Type : Task
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
OKR : Customer Support Team : Maintenance
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Team : Modernization
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
dotCMS : Workflow Team : Cloud Eng
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
-
Team : Maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100