Skip to content

Give each app its own LS Login client #123

Backlog

Description

@uniqueg

Why?

Krini's LS Login client (5fc66010-a596-48e4-8c09-89a767ef136c, #48) is also used by other apps. Its redirect URIs (2026-11-19) are:

  • https://krini.rahtiapp.fi/ and https://krini.rahtiapp.fi/auth/api/callback
  • http://localhost:3000/ and http://localhost:3000/auth/api/callback
  • https://krini-iota.vercel.app/auth/api/callback (old preview)
  • https://biohackcloud.bihealth.org/hub/oauth_callback (BioHackCloud hub at BIH)
  • https://elixir-hedgedoc.rahtiapp.fi/auth/oauth2/callback (HedgeDoc)
  • https://dex.elixir-cloud.bi.denbi.de/dex/callback (Dex at de.NBI)
  • https://csc-tesk.rahtiapp.fi/swagger-ui/oauth2-redirect.html (TESK Swagger UI)

proTES and TRS-Filer accept access tokens issued to Krini's client ID (#31, #113). Because the other apps log users in with the same client, a token obtained through any of them is accepted there just like a Krini token. Every app on the client also shares its secret, and one app's misconfiguration or leak affects all of them.

How?

  1. For each app other than Krini, find out whether it is still in use (owner, URL reachable, users).
  2. Register its own LS Login client for each app still in use, with only its own redirect URI, and switch the app to it.
  3. Remove all other entries from Krini's client: keep only <Krini origin>/auth/api/callback for the deployed Krini (https://portal.elixir-on.cloud/auth/api/callback after Route the ELIXIR On-Cloud services under elixir-on.cloud #54) and http://localhost:3000/auth/api/callback, plus the post-logout URL <Krini origin>/.
  4. Rotate Krini's client secret afterwards, as the other apps knew it.

Acceptance criteria

  • Krini's client lists only Krini's redirect and post-logout URIs.
  • Every app still in use logs in with its own client.
  • Krini's client secret is rotated.

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added
    priority: medium
    type: auth
    type: security
    workload: hours
    ecp-wp4: M4.4
    status: triage
    on Nov 19, 2026
  3. uniqueg commented on Nov 20, 2026

    @uniqueg
    MemberAuthor

    Done on 2026-11-20:

    Left: check the HedgeDoc login once LS Login has approved the production move.

  4. moved this from Backlog to In review in ELIXIR On-Cloudon Nov 21, 2026
  5. added
    status: in progress
    and removed
    status: triage
    type: auth
    on Nov 21, 2026
  6. moved this from In review to Backlog in ELIXIR On-Cloudon Nov 25, 2026
  7. added
    status: blocked
    and removed
    status: in progress
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: mediumstatus: blockedtype: securityworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions