Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

appsettings.Production.yml ships hosted-service values that self-hosted instances inherit

Aperta Adatta ai principianti
#2,698 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, kubernetes, yaml
Ambito
backend, cloud

Direzione di ricerca

Leggi le impostazioni di produzione in src/Exceptionless.Web/appsettings.Production.yml e src/Exceptionless.Job/appsettings.Production.yml, quindi controlla k8s/ex-prod-values.yaml e le impostazioni di Staging. Sposta i valori dell’ambiente hosted nella configurazione del deployment hosted, mantenendo i valori predefiniti per l’auto-hosting privi di tali valori. Il lavoro è completato quando l’avvio dell’auto-hosting richiede BaseURL e le integrazioni e gli URL hosted sono forniti solo dal deployment hosted.

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

Descrizione

bug

appsettings.Production.yml in both the web and job projects contains values specific to the hosted service at exceptionless.io. Production is the default app mode when EX_AppMode is unset, so every self-hosted instance (Docker images included) loads them unless each one is overridden.

Where

Hosted values in those files:

Setting Value Effect on a self-hosted instance
BaseURL https://be.exceptionless.io If EX_BaseURL is forgotten, startup succeeds instead of failing with "BaseURL is a required configuration setting", and links in emails (verification, password reset, notifications), webhook payloads, the Slack redirect URI and the OAuth issuer all point at the hosted site.
ConnectionStrings:OAuth hosted GitHubId, GoogleId, SlackId The server treats GitHub, Google and Slack as configured; the startup log reports "Google OAuth, GitHub OAuth, Slack" as enabled integrations even though no secrets are set and none of them work.
ExceptionlessServerUrl https://collector.exceptionless.io If an operator sets EX_ExceptionlessApiKey to log the server's own errors but not the server URL, those errors are sent to the hosted collector. It is also added to the UI's Content-Security-Policy connect-src, as is BaseURL.
InternalProjectId hosted project id Harmless, but meaningless outside the hosted service.

Steps to reproduce

  1. Run the exceptionless/exceptionless image with Elasticsearch configured but without EX_BaseURL or EX_ConnectionStrings__OAuth.
  2. The startup log lists Startup optional integrations/auth providers: Google OAuth, GitHub OAuth, Slack.
  3. Sign up and request a password reset. The email link points to https://be.exceptionless.io/....

Expected

Self-hosted instances start with no third-party client IDs or hosted URLs. A missing BaseURL fails fast at startup.

Suggested fix

Remove BaseURL, ConnectionStrings:OAuth, ExceptionlessServerUrl and InternalProjectId from the appsettings.Production.yml files (leave them as comments if useful as examples) and supply the hosted values through the hosted deployment's own configuration (k8s/ex-prod-values.yaml / environment). Check the Staging files for the same pattern.

Lingua principale
C#
Stelle
2.5k
Fork
508
Merge medio
2g 17h
PR unite (30g)
40

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 exceptionless/Exceptionless

Tutte le issue di exceptionless/Exceptionless

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.