API: Allow opting out of default NS records at domain creation

Aperta
#1,168 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 14 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Start by reading api/desecapi/models/domains.py, especially Domain.update_delegation() and how domain creation invokes it. Trace the existing DEFAULT_NS behavior and check the relevant tests before deciding how to make those records optional. Done means a newly created domain can omit the default NS records, while the existing behavior and record-management flow are covered by tests.

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

Descrizione

Currently, Domain.update_delegation() enforces the DEFAULT_NS settings, which is currently set at ["ns1.desec.io.","ns2.desec.org."].

(I note that it doesn't respect the DEFAULT_NS_TTL settings, but that's for a different bug).

In the context of the introduction of alternative NS names, it would be nice for these NS records to be either:

  • configurable at creation time

    API consumers (OpenTofu/Terraform, etc) could then configure the NS records they want by updating the "domain object"

  • optional

    API consumers (OpenTofu/Terraform, etc) would then need to configure the NS records as a separate step

In terms of "separation of concern", I find the latter option better; this way all the records that one has in a zone (and which are visible in the web interface) are all separate records, known as such from the start:

  • create the domain
  • add records
  • update records
Lingua principale
Python
Stelle
678
Fork
74
Merge medio
7g 23h
PR unite (30g)
1

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 desec-io/desec-stack

Tutte le issue di desec-io/desec-stack

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.