Remove hardcoded personal Auth0 tenant and live AUDIENCE from committed .env.development template
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
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 usesREPLACE_WITH_PROD_TENANT.auth0.com; this is the placeholder style to copyconfig.env— contains noAUTH0/DOMAIN/AUDIENCEkeys 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) andauth/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_AUDIENCEDOMAIN = 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.productionandconfig.env— already correct.- Real deployment values in any untracked
.env— untouched.
Verification
git grep -n "cubap.auth0.com\|bBugFMWHUo1OhnSZMpYUXxi3Y1UJI7Kl"on the default branch returns no hits.git grep -n "AUTH0\|DOMAIN\|AUDIENCE" config.envstill shows no keys (unchanged).- App boots with a locally-populated
.envexactly 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CenterForDigitalHumanities/TPEN-services
-
enhancement ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
CenterForDigitalHumanities/TPEN-services#525 · 4 commenti ·
-
enhancement needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
CenterForDigitalHumanities/TPEN-services#500 · 1 commento ·
-
core-functionality enhancement ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CenterForDigitalHumanities/TPEN-services#481 · 1 commento ·
-
pending fixes are not taggedForse di nuovo libera @cubap l’ha presa 145 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement ready-for-human
CenterForDigitalHumanities/TPEN-services#532 · 2 commenti · 2 reazioni · 2 assegnatari ·
Tutte le issue di CenterForDigitalHumanities/TPEN-services
Issue simili
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
oscarbol09/thesisforge#61 ·
-
bug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mastra-ai/mastra#31093 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
osmlab/name-suggestion-index#13165 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ReduxISU/Redux_Frontend#327 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
product-os/flowzone#2048 ·
I maintainer di solito rispondono entro 1 giorno