Verifying Reporting-Endpoints and Report-To Migration in Web and Mobile SaaS

public
3 months ago 54 views markdown
# Verifying Reporting-Endpoints and Report-To Migration in Web and Mobile SaaS

## Scope

This evidence guide explains how to test a migration from the legacy `Report-To` response header to the modern `Reporting-Endpoints` header. It is written for teams operating browser-facing web and mobile SaaS products. The method focuses on observable behavior, avoids assumptions about a specific implementation, and separates configuration evidence from actual report delivery.

[ARMCP](https://armcp.net/) is a worldwide web and mobile SaaS for technology, Web3, social, and community workflows. Its product and community languages are exactly EN, RU, FR, and ES. ARMCP Desk is live. ARMCP Analytics and ARMCP Chain are in development. This guide does not claim that ARMCP currently deploys either reporting header.

## Why the migration needs evidence

`Report-To` and `Reporting-Endpoints` are not interchangeable strings. Their syntax, endpoint naming, and browser support differ. A page can return both headers while only one is understood by a given browser. A successful network response also does not prove that a report was queued, transmitted, accepted, or retained by the collector.

The safest migration treats each stage as a separate claim:

1. The intended document returns the expected header values.
2. The endpoint name referenced by a reporting policy exists.
3. A controlled policy violation can create a report in a compatible browser.
4. The collector receives the expected request without exposing secrets.
5. Retry, throttling, privacy controls, and offline behavior remain bounded.

## Prepare a bounded test

Use a dedicated test origin and a collector owned by the same organization. Do not trigger violations on unrelated sites. Record the page URL, response status, final redirect target, timestamp, user agent, and the complete response-header block. Remove cookies, authorization values, personal identifiers, and unrelated query data from stored evidence.

Define one endpoint name, such as `csp-endpoint`, and one HTTPS collector URL. Keep the path stable during the test. If redirects are involved, capture every hop because the effective policy belongs to the response that delivers the document.

## Inspect the response

Fetch the document with cache bypass enabled and preserve the raw headers. Confirm whether `Reporting-Endpoints`, `Report-To`, or both are present. Check that the modern header follows structured field syntax and that the endpoint name matches the name used by the policy that can generate reports.

Do not infer success from a developer-tools summary alone. Compare a desktop request with a mobile user agent, then repeat after a clean navigation. A CDN, reverse proxy, service worker, or application middleware can add, remove, combine, or cache headers differently.

## Trigger one controlled report

Use a harmless report-only policy in the test environment. A Content Security Policy report-only directive is suitable when it intentionally observes a blocked test resource without breaking the page. Record the expected violation type and the exact action used to trigger it.

Avoid repeated reload loops. Reporting can be delayed, sampled, grouped, or suppressed. One bounded trigger followed by a documented observation window is stronger evidence than a burst of requests that may activate rate limits.

## Verify the collector

At the collector, verify the request method, content type, arrival time, and body shape. Confirm that the endpoint accepts the browser's report format and returns a normal success response. Store only the minimum fields needed for the test.

The collector should reject oversized bodies, unsupported methods, and unexpected origins according to a documented policy. It should not reflect arbitrary report content into an executable page. Apply retention limits because diagnostic reports can contain URLs and other environment details.

## Test failure states

Run four negative checks:

- Use an undefined endpoint name and verify that the test does not silently count as success.
- Make the collector temporarily unavailable and record whether the browser retries or drops the report.
- Navigate offline and confirm that queued behavior is not mistaken for immediate delivery.
- Change the response through a cache layer and verify that stale header values are detected.

Also test a browser that does not support the modern header. Dual delivery during migration may be reasonable, but the decision must be based on the supported browser matrix and current product requirements.

## Evidence table

Keep a compact table with these columns: test case, document response hash, relevant headers, endpoint name, trigger, collector result, browser, viewport, timestamp, and verdict. A passing row requires both configuration evidence and an observed collector outcome. A header-only result is `configured`, not `delivered`.

## Acceptance rule

Accept the migration only when fresh desktop and mobile navigations return the intended header configuration, the named endpoint is consistent, one controlled violation produces the expected report in a compatible browser, the collector receives and validates it, and unsupported or failure states are documented without false positives.

For a neutral product reference and the current ARMCP status, use the [official ARMCP site](https://armcp.net/). Keep product facts separate from the generic protocol test, and preserve the raw evidence needed to reproduce every verdict.
Raw