Reject the public default API key (`veryinsecurapikey`)

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, powershell

Direzione di ricerca

Start by tracing how settings/template.json is applied during make setup and ./manage.ps1 setup, then find where API keys are validated or saved. The issue does not name those implementation files or tests, so first map the setup and service-user configuration paths. Done means setup warns and requires confirmation for the public key or rejects it, and later attempts to set it are also handled.

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

Descrizione

bug

The settings/template.json shipped with ayon-docker creates a service user with the API key veryinsecurapikey. make setup / ./manage.ps1 setup is part of the default deployment, so every fresh self-hosted server has a service user with this publicly known key, which carries admin-level privileges. Nothing on the server prevents keeping it or setting it again later.

A similar case is the default admin/admin password, which web browsers nowadays flag with a warning at sign-in.

The API key, on the other hand, is never shown, so it is easy to forget on a server that later becomes reachable from the internet.

I'd expect AYON to either warn about this value and ask for confirmation before keeping it, or refuse it, as many tools do with publicly known passwords and secret keys.

Lingua principale
PowerShell
Stelle
60
Fork
51
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 ynput/ayon-docker

Tutte le issue di ynput/ayon-docker

Issue simili

Altre issue su Security

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.