[idea] Docker 10/14: Password and allowed hosts

Chiusa
#2,110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, docker-compose, yaml

Direzione di ricerca

First check #2109, which this step depends on, and read the linked Docker proposal section on Caddy and access. Then inspect docker/local/caddy/access-password.caddy, the headless entry point, Compose, and .env.example; identify the relevant tests before changing anything. Done means the stated LAN login, unauthenticated refusal, streaming/live-update, and secret-handling checks pass.

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

Descrizione

docker enhancement help wanted security

Which part? Desktop app

What would you like?

Step 10 of 14 of #2100: running SurfSense in Docker. Depends on #2109; start once it is merged.

Reach the app from other machines, behind a password.

Design: Docker proposal, Caddy and access

What to change

  • docker/local/caddy/access-password.caddy: basic_auth, answering the hosts in SURFSENSE_ALLOWED_HOSTS, or any when it is empty.
  • The headless entry hashes SURFSENSE_PASSWORD with caddy hash-password at start and picks the access file: password set means access-password, otherwise access-local.
  • Compose and .env.example gain SURFSENSE_PASSWORD, SURFSENSE_ALLOWED_HOSTS and SURFSENSE_BIND.

Done when

  • With a password and SURFSENSE_BIND=0.0.0.0, another machine on the LAN gets a login prompt, and after it the app, chat streaming and live updates work.
  • Without a password, the same request is refused.
  • The password never appears in logs or in the generated config on disk.

Scope: code and tests only. Don't edit docs/ or AGENTS.md, except to fix a link this change breaks; the maintainers update the docs when the Docker work ships.

Why would it help?

Each step leaves something that runs, so the Docker image is built and reviewed one piece at a time.

Lingua principale
Python
Stelle
16.3k
Fork
1.6k
Merge medio
18h 52m
PR unite (30g)
218

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 MODSetter/SurfSense

Tutte le issue di MODSetter/SurfSense

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.