Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Cannot sign into Sourcegraph admin account over HTTP when HTTPS is configured #16626

Open
@emidoots

Description

@emidoots

The situation:

  • You have Sourcegraph running in prod behind an HTTPS-terminating load balancer
  • You spin up the "new" version of Sourcegraph for an upgrade, like you would for managed instances or any other red/black deployment of Sourcegraph.
  • You want to sign into the new (non-HTTPS) Sourcegraph instance to check if it works OK before switching the load balancer over to the new one.

Problem:

You cannot sign in with Chrome (Firefox lets you, but it's unclear for how long this will work) due to the CSRF cookies being locked to HTTPS-only.

Note: If we remove our redundant CSRF cookies, https://github.com/sourcegraph/sourcegraph/issues/7658, that would address the issue.

Note: Related concern is https://github.com/sourcegraph/sourcegraph/issues/6385

Metadata

Metadata

Assignees

No one assigned

    Labels

    authbugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions