Skip to content

Redirection: distinguish HTTPS-downgrade from HTTP redirect failure #557

Open

Description

@caugner

Description

The redirection analyzer reuses the RedirectionNotToHttps result for two distinct failure modes:

  1. The HTTP chain does not end on HTTPS (the original meaning).
  2. The independent HTTPS session redirects back to HTTP (added in fix(retriever): stop reusing the HTTP redirect chain as httpsRedirects #495).

Both surface to the user as redirection-not-to-https, which reads as "your HTTP→HTTPS redirect is broken" even when the HTTP redirect is fine and it's the HTTPS endpoint that downgrades.

Motivation

Make the diagnostic accurate so operators can tell an HTTPS-downgrade misconfiguration apart from a missing/incorrect HTTP→HTTPS redirect.

Additional details

See src/analyzer/tests/redirection.js around the RedirectionNotToHttps branch. A dedicated expectation (e.g. RedirectionHttpsDowngrade) would require a new entry in possibleResults, types.js, and the grader charts.

Related issues and pull requests

Follow-up to #495.

Activity

  1. added
    needs triage
    on Jul 15, 2026
  2. removed
    needs triage
    on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions