Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Multi-stage image on python:3.13-slim-trixie, frpc 0.71.0

Aperta
#261 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@WSHAPER ci sta già lavorando.

Dal 12/10/2026.

  • #262 di @WSHAPER — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
docker, python
Ambito
devops, security

Direzione di ricerca

Read the Dockerfile and inspect the linked pull request #262, which already contains this work. The issue reports manual checks for building the image, counting installed packages, checking frpc --version, and importing main; compare those checks with the proposed image changes to judge completion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority high

A scan of the shipped image flags mostly base-image noise: the plain apt-get install honors Recommends, so the build toolchain drags in libheif/libtiff/X11 and pipx pulls mkdocs/nltk/numpy (nothing the app uses at runtime). vim, git, curl, an SSH client and perl ship too.

Toolchain moves to a builder stage; the runtime carries the interpreter, the app venv, frpc and procps. That drops the compilers, codec parsers and network clients an attacker could leverage, and most of the bookworm package tail. frpc now comes from the official fatedier releases, SHA256-verified (the HaRP mirror is old and unsigned).

Image is about a third of the size, runtime under a hundred packages, findings down by well over 90% on a local rescan. The one remaining Critical needs a major-version migration elsewhere.

Manual testing:

docker build --network=host -t context-agent:test .     # BuildKit DNS needs host networking on some hosts
docker run --rm --entrypoint dpkg-query context-agent:test -l | grep -c '^ii '
docker run --rm --entrypoint frpc context-agent:test --version                   # 0.71.0
docker run --rm --env-file test.env --entrypoint /opt/app/.venv/bin/python context-agent:test -c 'import main'

--entrypoint matters — start.sh otherwise eats the args.

Lingua principale
Python
Stelle
26
Fork
20
Merge medio
2g 9h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/context_agent

Tutte le issue di nextcloud/context_agent

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.