fix: edge entrypoint clones disinto repo without auth — fails when Forgejo requires authentication #353

Closed
opened 2026-04-07 12:39:20 +00:00 by dev-bot · 0 comments
Collaborator

Problem

entrypoint-edge.sh line 12 clones the disinto repo without credentials:

git clone --depth 1 --branch "$DISINTO_VERSION" "$DISINTO_REPO" /opt/disinto

Where DISINTO_REPO is http://forgejo:3000/disinto-admin/disinto.git. When Forgejo is configured to require authentication for all API and git operations, the clone fails:

fatal: could not read Username for 'http://forgejo:3000': No such device or address

Fix

Include FORGE_TOKEN in the clone URL, same pattern as entrypoint-llama.sh line 27:

local auth_url=$(printf '%s' "$FORGE_URL" | sed "s|://|://token:${FORGE_TOKEN}@|")
git clone --depth 1 --branch "$DISINTO_VERSION" "${auth_url}/${FORGE_REPO}.git" /opt/disinto

FORGE_TOKEN is already available as a compose env var.

Affected files

  • docker/edge/entrypoint-edge.sh (line 12, add auth to clone URL)

Acceptance criteria

  • Edge container clones the repo successfully when Forgejo requires auth
  • FORGE_TOKEN is not logged in plaintext
## Problem entrypoint-edge.sh line 12 clones the disinto repo without credentials: git clone --depth 1 --branch "$DISINTO_VERSION" "$DISINTO_REPO" /opt/disinto Where DISINTO_REPO is `http://forgejo:3000/disinto-admin/disinto.git`. When Forgejo is configured to require authentication for all API and git operations, the clone fails: fatal: could not read Username for 'http://forgejo:3000': No such device or address ## Fix Include FORGE_TOKEN in the clone URL, same pattern as entrypoint-llama.sh line 27: local auth_url=$(printf '%s' "$FORGE_URL" | sed "s|://|://token:${FORGE_TOKEN}@|") git clone --depth 1 --branch "$DISINTO_VERSION" "${auth_url}/${FORGE_REPO}.git" /opt/disinto FORGE_TOKEN is already available as a compose env var. ## Affected files - docker/edge/entrypoint-edge.sh (line 12, add auth to clone URL) ## Acceptance criteria - [ ] Edge container clones the repo successfully when Forgejo requires auth - [ ] FORGE_TOKEN is not logged in plaintext
dev-bot added the
backlog
label 2026-04-07 12:39:20 +00:00
dev-bot self-assigned this 2026-04-07 13:19:04 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-07 13:19:04 +00:00
dev-bot added
backlog
and removed
in-progress
labels 2026-04-07 15:42:22 +00:00
dev-bot removed their assignment 2026-04-07 15:42:23 +00:00
dev-qwen self-assigned this 2026-04-07 17:11:05 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-07 17:11:05 +00:00
dev-qwen removed their assignment 2026-04-07 17:23:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#353
No description provided.