Remove hardcoded personal Auth0 tenant and live AUDIENCE from committed .env.development template

Aperta Adatta ai principianti
#538 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
92/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
security

Direzione di ricerca

Inizia leggendo le righe 61–62 di .env.development e confronta lo stile dei segnaposto in .env.production. Sostituisci l’audience e il dominio di sviluppo con segnaposto e aggiungi un breve commento che indichi agli sviluppatori dove trovare i valori del tenant e dell’audience del team nell’archivio delle credenziali. Il lavoro è terminato quando questi due valori non contengono più il tenant personale né l’ID client attivo; l’issue specifica anche controlli con git grep.

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

Descrizione

enhancement ready-for-agent

This was generated by AI during triage.

Problem

.env.development is the documented onboarding template for this repo ("copy this to .env", CONTRIBUTING), so the committed development defaults currently seed every new dev machine with the maintainer's personal Auth0 tenant and a live client ID. No shipped source is affected, but the template file is the delivery mechanism — it should carry placeholders the way .env.production already does.

Verified evidence (re-read on origin/main, 2026-11-20)

  • .env.development:61 — AUDIENCE = bBugFMWHUo1OhnSZMpYUXxi3Y1UJI7Kl (live client ID)
  • .env.development:62 — DOMAIN = cubap.auth0.com (personal tenant)
  • .env.production:61 — correctly uses REPLACE_WITH_PROD_TENANT.auth0.com; this is the placeholder style to copy
  • config.env — contains no AUTH0/DOMAIN/AUDIENCE keys at all
  • Zero occurrences of the tenant or client ID in server code: the only consumers are auth/index.js:14 (audience: process.env.AUDIENCE) and auth/index.js:15 (issuerBaseURL: https://${process.env.DOMAIN}/), both reading from env

Scope (agent-sized, exactly two lines)

Replace the two development values in .env.development with placeholders in the .env.production style, e.g.:

  • AUDIENCE = REPLACE_WITH_DEV_AUDIENCE
  • DOMAIN = REPLACE_WITH_TENANT.auth0.com

Add a short comment above them pointing developers at the team tenant/audience values (from the credential store) so onboarding docs remain self-explanatory.

Do not change

  • No source files — server code is verified clean and must stay env-driven.
  • .env.production and config.env — already correct.
  • Real deployment values in any untracked .env — untouched.

Verification

  1. git grep -n "cubap.auth0.com\|bBugFMWHUo1OhnSZMpYUXxi3Y1UJI7Kl" on the default branch returns no hits.
  2. git grep -n "AUTH0\|DOMAIN\|AUDIENCE" config.env still shows no keys (unchanged).
  3. App boots with a locally-populated .env exactly as before (behavior depends only on env values, auth/index.js:14-15).

Out of scope / external

Swapping to a TPEN-owned Auth0 tenant is tracked externally: rerum_server_nodejs #164, TPEN-Users #32, and the matching TPEN3 ticket being filed 2026-11-20. This ticket is about placeholder-izing the committed template only, so it is closable independently of that tenant decision.

Lingua principale
JavaScript
Stelle
2
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 CenterForDigitalHumanities/TPEN-services

Tutte le issue di CenterForDigitalHumanities/TPEN-services

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.