Skip to content

Sparse registry not serving /index/info/refs correctly #27

@xZeroCool277

Description

@xZeroCool277

I’m trying to run Kellnr (Installed Chart version: 4.2.0 and Installed Kellnr version: 5.8.0)
with sparse HTTP mode enabled on Kubernetes via the Helm chart. Despite configuring the environment variables and Helm values as documented, the HTTP endpoint always serves the web UI HTML instead of the expected Git-style index JSON.

  1. Helm install/upgrade with sparse HTTP and Git index disabled
helm upgrade --install kellnr kellnr/kellnr -n kellnr -f values.yaml \
  --set kellnr.registry.gitIndex.enabled=false \
  --set kellnr.registry.sparse.enabled=true \
  --set kellnr.registry.sparse.http.baseUrl=http://127.0.0.1:8000 \
  --set kellnr.registry.authRequired=false \
  --set kellnr.securityContext.runAsUser=0 \
  --set kellnr.securityContext.fsGroup=0
  1. Verify Environment variables in the pod:
kubectl exec -it deploy/kellnr -n kellnr -- env | grep SPARSE
KELLNR_REGISTRY__SPARSE__ENABLED=true
KELLNR_REGISTRY__SPARSE__HTTP__BASE_URL=http://127.0.0.1:8000
  1. Accessing sparse HTTP endpoint inside the pod:
    kubectl exec -it deploy/kellnr -n kellnr -- curl -v http://127.0.0.1:8000/index/info/refs
    Results into:
<!DOCTYPE html>
<html lang="en">
<head>…</head>
<body>
  <div id="app"></div>
</body>
</html>

Instead of a Git-Style index
Expected behavior:
/index/info/refs should return the Git-style index JSON required by Cargo clients, not the HTML for the web UI.

Additional notes:

  • Using Helm chart version 4.2.0 and Kellnr 5.8.0
  • Tried both 127.0.0.1 and cluster DNS (kellnr.kellnr.svc.cluster.local) for the baseUrl
  • Git index disabled
  • Sparse mode enabled
  • Security context set to runAsUser=0 and fsGroup=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions