Prevent HTTP redirects on gateway API routes

Open
#483 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@qiuethan is already working on this.

Since Nov 30, 2026.

  • #487 by @qiuethan — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, security

Research direction

Start by locating the gateway API route definitions and the offline routing tests; the issue does not name specific files. Reproduce how trailing-slash routes are redirected, including an authenticated route, and add regression coverage showing HTTPS requests never receive an HTTP redirect. Document the slash convention and confirm the offline routing tests pass.

Written by the indexing model from the issue text.

Description

area/service type/bug
What's wrong

An HTTPS client received a trailing-slash redirect to an HTTP URL. A client following that redirect can send its API credential over plaintext.

Area

service

Environment

production (reported)

Expected

The gateway must never direct an HTTPS API client to plaintext. Handle noncanonical slash forms without a scheme downgrade, including authenticated routes. Cover the behavior with an offline routing regression and document the slash convention.

Dominant language
Python
Stars
0
Forks
2
Avg merge
3d 3h
Merged PRs (30d)
31

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UTMIST/Misty

All issues in UTMIST/Misty

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.