Skip to content

fix: render the WES service info without a request to APP_ORIGIN #104

Closed

Description

@uniqueg

Follow-up of #77 (PR #101).

Why?

src/app/dashboard/workflows/service-info/page.tsx (from #100) is a server component that fetches ${APP_ORIGIN}/api/workflows/get-service-info over the network. So Krini's server must reach its own public address: behind clusters, proxies or firewalls without hairpin routing the page fails, and without APP_ORIGIN the URL becomes undefined/api/.... It also costs an extra round trip through the ingress.

How?

Move the logic of src/app/api/workflows/get-service-info/route.ts into a function in src/lib/ and call it directly from the page (and from the route handler, if the route is still needed). Then drop the "own public origin" item from "Network access" in docs/operator-guide/deployment.md and the note at APP_ORIGIN in configuration.md.

Acceptance criteria

  • The service-info page works when Krini's server can't reach APP_ORIGIN.
  • Tests cover the shared function; docs updated.

Activity

  1. added this to the v0.1.0 milestone on Nov 17, 2026
  2. added
    priority: medium
    type: bug
    workload: hours
    status: triage
    on Nov 17, 2026
  3. moved this from Ready to In progress in ELIXIR On-Cloudon Nov 19, 2026
  4. added
    status: in progress
    and removed
    status: triage
    on Nov 19, 2026
  5. moved this from In progress to Done in ELIXIR On-Cloudon Nov 19, 2026
  6. moved this from Done to In progress in ELIXIR On-Cloudon Nov 19, 2026
  7. removed
    status: in progress
    on Nov 21, 2026
  8. moved this from In progress to Done in ELIXIR On-Cloudon Nov 21, 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

    priority: mediumtype: bugworkload: hours

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions