U2F login not working behind reverse proxy #3375

Closed
opened 2025-11-02 05:10:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @svengo on GitHub (May 24, 2019).

  • Gitea version (or commit ref): 1.8.1
  • Operating system: docker@ubuntu 18.04
  • Database (use [x]):
    • MySQL
    • PostgreSQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I am using gitea behind traefik as reverse proxy. I managed to add my YubiKey U2F device but cannot login.

The connection is encrypted with https. This may happen because the secure connection is terminated in traeffik and gitea only "sees" an unencrypted connection from traeffik.

Screenshots

The screenshot appears after I entered my credentials:

Anmerkung 2019-05-24 201914
Originally created by @svengo on GitHub (May 24, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.8.1 - Operating system: docker@ubuntu 18.04 - Database (use `[x]`): - [x] MySQL - [ ] PostgreSQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description I am using gitea behind traefik as reverse proxy. I managed to add my YubiKey U2F device but cannot login. The connection *is* encrypted with https. This may happen because the secure connection is terminated in traeffik and gitea only "sees" an unencrypted connection from traeffik. ## Screenshots The screenshot appears after I entered my credentials: <img width="886" alt="Anmerkung 2019-05-24 201914" src="https://user-images.githubusercontent.com/2502366/58348993-64876380-7e62-11e9-8193-19617706e17a.png"> <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/duplicate label 2025-11-02 05:10:39 -06:00
Author
Owner

@OrfeasZ commented on GitHub (May 24, 2019):

This is a duplicate issue (#6748) and will be fixed in 1.8.2 (which is not released yet).

@OrfeasZ commented on GitHub (May 24, 2019): This is a duplicate issue (#6748) and will be fixed in 1.8.2 (which is not released yet).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3375